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
Possible bug? Anyone seen problems with setPager in IE
24/08/2009
09:22
Avatar
lynn
Member
Members
Forum Posts: 8
Member Since:
08/07/2009
sp_UserOfflineSmall Offline

I've started having IE 7 complain (but only intermittently so it seems like possibly a timing issue????) if I use a jQuery object as the value of the grid's pager attribute.   The docs indicate you can use either   

pager: jQuery('#nameOfMyPager')   OR  

pager: '#nameOfMyPager'

But if I use the jQuery version IE 7 complains some of the time on the pginp = line in setPager of grid.base.js:

setPager = function (){
var sep = "<td class='ui-pg-button ui-state-disabled' style='width:4px;'><span class='ui-separator'></span></td>",
pgid= $(ts.p.pager).attr("id") || 'pager',
pginp = (ts.p.pginput===true) ? "<td>"+$.jgrid.format(ts.p.pgtext || "","<input class='ui-pg-input' type='text' size='2' maxlength='7' value='0' role='textbox'/>","<span id='sp_1'></span>")+"</td>" : "",

giving "Error: object doesn't support this property or method".

I can (without changing anything in the page/code) hit Ctrl-Refresh and sometimes have it load fine without that error and other times get the error which does prevent loading of the grids.  I've experienced it on lots of different grids with different configurations.   But fortunately if I just change it to use the string version of setting pager attribute, it doesn't seem to ever give the error. 

Just wondering if anyone else has ever seen this or would have any ideas on it's cause.  If I can get time I'll try to replicated it with a simple test cased based on one of the demos. 

Lynn

30/08/2009
09:37
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Lynn. This is a very strange. Is this only in IE7? Also does this occur in IE6 or IE8?

Bets 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.

08/09/2009
12:15
Avatar
vpatil
Member
Members
Forum Posts: 7
Member Since:
18/06/2009
sp_UserOfflineSmall Offline

I am seeing this issue in IE8 as well.. I use the jQuery object for pager.. I am going to try and see if changing the jQuery object to just string will get rid of the problem

Update: changing to the string did not solve the problem

09/09/2009
05:07
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Could you provide a test case. A link to the problem will be very helpfull.

Best 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.

09/09/2009
09:06
Avatar
vpatil
Member
Members
Forum Posts: 7
Member Since:
18/06/2009
sp_UserOfflineSmall Offline

Unfortunately I cannot give you a link as it is not accessible outside the intranet..

It seems the function for setPager is not able to make a call to $.jgrid.format.. so as an experiment I tried putting in the string directly instead of the call to format.. so that solved the issue but I see similar issue at different places. everynow and then the calls to other functions like striphtml fails and give the error “Error: object doesn't support this property or method”.

Not sure why..

FYI: I am using the noConflict on my page.

also my i have 4 grids each on a different tab inside the jQuery tab control

09/09/2009
09:23
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Could you please load landuage file before jqGrid and test.

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.

09/09/2009
12:04
Avatar
vpatil
Member
Members
Forum Posts: 7
Member Since:
18/06/2009
sp_UserOfflineSmall Offline

as per your suggestion this is what I did changed  { include: false, incfile:'i18n/grid.locale-en.js'}, // jqGrid translation from true to false and include the file in my html page.

This seems to have fixed the issue.. wil continue testing..

Thanks!!!

Vaishali

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
91 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