Forum LAMS for Tech-Heads - General Forum: Gradebook grid is not shown in Firefox 4


 
You may request notification for Gradebook grid is not shown in Firefox 4.
Search: 

1: Gradebook grid is not shown in Firefox 4
03/23/11 05:53 AM
[ Reply | Forward ]
When using Firefox 4 the gradebook page doesn't display the grid. Debugging with firebug i can see two errors:

- $.jgrid is undefined
- jQuery("#userView").jqGrid is not a function


I'm using LAMS 2.3.4, and the gradebook works fine with Firefox 3.6.x. and Internet Explorer 8 and 9.

Any ideas on the problem or how it can be solved?

Posted by Helder Sousa

2: Re: Gradebook grid is not shown in Firefox 4
In response to 1 03/23/11 07:26 AM
[ Reply | Forward ]
Hi Helder,

It doesn't seem that the Jqgrid people have fix this yet (see here).

However, once that they have a fix and given that Firefox 4 is just out (yesterday) they will have to look at this and fix it shortly.

I have added a dev task for us to get this fix as soon as the jqgrid guys do:

http://bugs.lamsfoundation.org/browse/LDEV-2663

Thanks,

Ernie

Posted by Ernie Ghiglione

3: Re: Re: Gradebook grid is not shown in Firefox 4
In response to 2 03/23/11 11:51 AM
[ Reply | Forward ]
Hi Ernie, thanks for the quick reply.

I've just tested the demo site of jqgrid and all the examples work fine with Firefox 4. So if there was a problem, it is fixed already.

All the best,
Helder

Posted by Helder Sousa

4: Re: Re: Re: Gradebook grid is not shown in Firefox 4
In response to 3 03/23/11 12:03 PM
[ Reply | Forward ]
Hi Helder,

Let me see if I get this right then: Firefox 4 has been fixed now... but then do you mean that LAMS implementation of jqgrid in Gradebook doesn't work with FF 4?

Thanks,

Ernie

Posted by Ernie Ghiglione

5: Re: Re: Re: Re: Gradebook grid is not shown in Firefox 4
In response to 4 03/23/11 12:32 PM
[ Reply | Forward ]
Nevermind. I've got it.

It seems that the issue is not FF 4 or jqgrid but instead: the firebug extension.

You have two options, turn it off to see this page or as it says here:

"Please try with Firebug > Console > mini-menu > Show XMLHttpRequests OFF."

Thanks,

Ernie

Posted by Ernie Ghiglione

6: Re: Re: Re: Re: Re: Gradebook grid is not shown in Firefox 4
In response to 5 03/23/11 12:38 PM
[ Reply | Forward ]
Here's how it works once you disable the Show XMLHttpRequests option in Firebug:

Thanks,

Ernie

Posted by Ernie Ghiglione

7: Re: Re: Re: Re: Re: Gradebook grid is not shown in Firefox 4
In response to 5 03/23/11 12:57 PM
[ Reply | Forward ]
Whatever the problem i'm having is, it can't be related with firebug because my test machines don't have firebug installed and they don't render the gradebook in FF4, but they do in FF3.6, only my development machine has it.

Test machines:
#1: Windows7 + FF4 (no plugins)
#2: Windows XP Professional SP3 + FF4 (no plugins)

Server:
Linux + LAMS 2.3.4

Thanks,
Helder

Posted by Helder Sousa

8: Re: Re: Re: Re: Re: Re: Gradebook grid is not shown in Firefox 4
In response to 7 03/23/11 01:12 PM
[ Reply | Forward ]
Hi Helder,

It works for me as you can see in the pic. Can you clear your cache just in case?

Thanks,

Ernie

Posted by Ernie Ghiglione

9: Re: Re: Re: Re: Re: Re: Re: Gradebook grid is not shown in Firefox 4
In response to 8 03/24/11 06:38 AM
[ Reply | Forward ]
It's not cache related.

In the mean time i've noticed that if i refresh the gradebook page it will eventually load ok, but it's like in 10 refresh will work twice. It really strange, seams something around the load timings of the js files. But this only happens with FF4, all other versions of FF and IE work ok.

Do you have an online demo version of LAMS where i can test gradebook? Or else i'll need to fresh install a new server to try to replicate this.

Thanks,
Helder

Posted by Helder Sousa

10: Re: Re: Re: Re: Re: Re: Re: Re: Gradebook grid is not shown in Firefox 4
In response to 9 03/24/11 06:54 AM
[ Reply | Forward ]
Hi Helder,

Try http://translations.lamscommunity.org/lams

u: test1
p: test1

Thanks,

Ernie

Posted by Ernie Ghiglione

11: Re: Gradebook grid is not shown in Firefox 4
In response to 10 03/24/11 10:41 AM
[ Reply | Forward ]
Thanks Ernie.

I've made the test and got the exact same problem, but with a little variation, which makes my suspicion about load timings even stronger.

Here's the test case:
1. Using FF4 goto http://translations.lamscommunity.org/lams and login
2. Select "Mark" in one of the lessons.
Result: Most of times will open correctly but sometimes grid doesn't show (in my case 1 failed out of 10).

3. Press F5 (refresh)
R: The grid will not open.

Why this makes me think on a problem with the load timings (maybe the order of js load) is because, when the page loads slow (in my case using your site.) it works when it loads fast (F5 will use cache) it fails. In my scenario fails more times because i'm connected locally in the server, so it loads really fast... Well it's just a guess.

This doesn't happen in IE or FF3.6

Thanks,
Helder

Posted by Helder Sousa

12: Re: Gradebook grid is not shown in Firefox 4
In response to 1 04/07/11 05:13 PM
[ Reply | Forward ]
Hi Helder,

As more people are upgrading to Firefox 4, this is becoming an issue. Our Norwegian translators Erik Engh has also reported it.

Given that is so random, I get the feeling that it might be something to do with the way the browser loads the .js files.

I have added this task for it:

http://bugs.lamsfoundation.org/browse/LDEV-2666

Thanks,

Ernie

Posted by Ernie Ghiglione

13: Re: Re: Gradebook grid is not shown in Firefox 4
In response to 12 04/07/11 10:48 PM
[ Reply | Forward ]
OK, this is fixed now with some help from the jqgrid community. Really simple fix.

There's a patch for this now.

As usual, just unzip the patch in your lams.ear directory and it will copy the files appropriately. (see further instructions in the patches page).

Thanks Helder and Erik for reporting this!

Ernie

Posted by Ernie Ghiglione

14: Re: Re: Re: Gradebook grid is not shown in Firefox 4
In response to 13 04/14/11 04:10 AM
[ Reply | Forward ]
Hi Hernie,
thanks for the fix. I've already applied it to my system and it's now working without issues.

All the best,
Helder

Posted by Helder Sousa

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum