Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Major problems with jqGrid and IE8 (IE9 is fine)
23/07/2012
18:08
Avatar
ssaccone
Member
Members
Forum Posts: 5
Member Since:
25/06/2010
sp_UserOfflineSmall Offline

Help!

jqGrid tables fail to load when using IE8.  The problem occurs with IE8 running on Windows XP, and in IE9 running on Windows 7 when "Document Mode: IE8 stanadards" or "Document Mode: IE7 stanadards" is selected in the developer tools window (F12). The console error from IE9 is:

SCRIPT438: Object doesn't support property or method 'jqGrid' 

The error from IE8 in Win7 is similar.

The code producing the error is a basic table:

$('#dbDocDatabaseTable-jqgrid').jqGrid({url: 'dbdoc/jqgrid_query_db.php', ... });

The site is http://bioq.saclab.net.

I'm mainly using jqGrid 4.3.3 and jQuery 1.7.2.  The problem also occurs with jqGrid 4.3.3/jQuery 1.4.3 and with jqGrid 4.4.0/jQuery 1.7.2.

Everything works fine in IE9 (Document Mode: IE9 stanadards).

Any suggestions?

23/07/2012
21:15
Avatar
DierbergsGuy
New Member
Members
Forum Posts: 1
Member Since:
23/07/2012
sp_UserOfflineSmall Offline

Hello

I don't know if this could be the problem or not but I noticed there is a syntax error in that site in IE8 that does not show up in IE9.   You can try and use Firebug or Chrome to see what the error is.

We are also using IE8 at our company so I have had this kind of thing happen to me as well.   It can be pretty painful.   One of the things I have noticed is that IE9 is more forgiving of mismatched html than IE8.

In the past, I have had sites work in IE9 that don't in IE8.  And I saw the same thing (ie, the Syntax error on the lower left in the status bar) in IE8.  In those cases, it was usually something I accidentally did by either having too many "}" or "<" or forgetting a tick in the page.   What I had to do was to make a backup of the site and strategically remove blocks/sections of my html and keep reloading the page until the error went away.   Basically having to isolate what was causing the error.

The error message I would get would come from our 3rd party library (and it would appear initially to be a problem with the 3rd party library) but after doing the above steps, it would be caused by my own page (either in my html/javascript).    The error message would be completely misleading.

Try making a backup of your site and then strategically commenting out (or removing) small sections of your page and reloading the page during each iteration until your syntax error goes away.   Then slowly add back portions of the very last section (you deleted) while reloading until the error comes back.   Then see if you have a block of javascript and/or html code that is mismatched.

Hope this helps!

23/07/2012
21:52
Avatar
ssaccone
Member
Members
Forum Posts: 5
Member Since:
25/06/2010
sp_UserOfflineSmall Offline

DierbergsGuy said:

Hello

I don't know if this could be the problem or not but I noticed there is a syntax error in that site in IE8 that does not show up in IE9.   You can try and use Firebug or Chrome to see what the error is.

We are also using IE8 at our company so I have had this kind of thing happen to me as well.   It can be pretty painful.   One of the things I have noticed is that IE9 is more forgiving of mismatched html than IE8.

In the past, I have had sites work in IE9 that don't in IE8.  And I saw the same thing (ie, the Syntax error on the lower left in the status bar) in IE8.  In those cases, it was usually something I accidentally did by either having too many "}" or "<" or forgetting a tick in the page.   What I had to do was to make a backup of the site and strategically remove blocks/sections of my html and keep reloading the page until the error went away.   Basically having to isolate what was causing the error.

The error message I would get would come from our 3rd party library (and it would appear initially to be a problem with the 3rd party library) but after doing the above steps, it would be caused by my own page (either in my html/javascript).    The error message would be completely misleading.

Try making a backup of your site and then strategically commenting out (or removing) small sections of your page and reloading the page during each iteration until your syntax error goes away.   Then slowly add back portions of the very last section (you deleted) while reloading until the error comes back.   Then see if you have a block of javascript and/or html code that is mismatched.

Hope this helps!


Thanks for pointing out the syntax error (didn't find it yet – will look), but I don't think that's it. I created a new bare bones page here:

http://saclab.net/jqgrid/test.php

The code is taken straight from the jqgrid demos page. The problem persists.  You can change versions by editing the URL (append ?jqgrid=4.4.0&jquery=1.7.2&jquery_ui=1.8.18 – couldn't post the entire link for some reason). Haven't found a combination that works. The jqgrid demos page does work in IE8/IE7 mode, so there must be a solution.  My page include a custom jQuery UI .css file, but the problem persists even without that.  

Suggestions welcome!!!

23/07/2012
22:53
Avatar
ssaccone
Member
Members
Forum Posts: 5
Member Since:
25/06/2010
sp_UserOfflineSmall Offline

Think I solved it: replace <script ... type="application/javascript"> with "text/javascript". See also http://tinyurl.com/d2taj34. Wasn't a jqgrid issue.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
53 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information