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
"undefined" when going to last page in IE7, works in Firefox
15/02/2010
00:56
Avatar
orion
New Member
Members
Forum Posts: 1
Member Since:
14/02/2010
sp_UserOfflineSmall Offline

I have an urgent issue. I am populating my brid like below. The first time my page loads, it builds the grid fine. If I click "next page" to go to page 2, it works fine. If I click next page again (only 3 pages total), it actually pulls the data and you can see it but the "Loading..." image stays up and I can see I have a Javascript error, it says "'undefined' is null or not an object'" and none of the buttons on the grid work anymore.

I tried using Visual Studio to debug the JS error and it is in the jqGrid's Javascript (but its minified) and it's something on the line , maybe 36 and it looks like

n=P[c];C=n[G];

Here, apparently n is undefined after the assignment (for some reason when this happens, "c" is equal to 3). This part may be wrong, it's just what I gathered trying to debug it.

This WORKS in Firefox 3.0.17.

---------------------------------------------------------------------

jQuery(

"#list2").jqGrid({

url:

'/Location/GetJSON/', mtype: "GET",

datatype:

"json",

colNames:[

'Name', 'Company', 'State', 'StreetAddress1'],

colModel:[

{name:

'LocationName',index:'LocationName', width:200},

{name:

'CompanyId',index:'CompanyId', width:200 },

{name:

'StateId',index:'StateId', width:200 },

{name:

'StreetAddress1',index:'StreetAddress1', width:200}

],

jsonReader: {

repeatitems:

false

},

height:

'auto',

rowNum:10,

rowList:[10,20,30],

pager:

'#pager2',

sortname:

'LocationName',

viewrecords:

true,

sortorder:

"desc",

caption:

"JSON Example"

});

jQuery(

"#list2").jqGrid('navGrid','#pager2',{edit:false,add:false,del:false});

17/02/2010
12:38
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Try to debug, not javascript code, but your response from the last page. Also check your server code again

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
70 Guest(s)

Currently Browsing this Page:
1 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