Tuesday, 15 February 2011

javascript - Can't load jqgrid in IE7 -



javascript - Can't load jqgrid in IE7 -

i got follow error:

script1028: expected identifier, string or number recruit.html;jsessionid=1f7j1qesicu7u, line 646 character 56

var pagerprevtd = $('<td>', {class: "mypager"}), prevpagesincluded = 0, pagernexttd = $('<td>', { class: "mypager"}), nextpagesincluded = 0, totalstyle = grid[0].p.pginput === false, startindex = totalstyle? this.p.page-max_pagers*2: this.p.page-max_pagers;

i suppose should replace {class: "mypager"} to

{"class": "mypager"}

because old version of net explorer interpret class reserved word can't used property without quoted.

you can rewrite $('<td>', {class: "mypager"}) $("<td>").addclass("mypager") or utilize $("<td class='mypager'></td>").

javascript jquery jqgrid

No comments:

Post a Comment