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_Related Related Topics sp_TopicIcon
Problem with jquery1.5rc1 and column names with periods
27/01/2011
21:54
Avatar
camilo
Argentina
New Member
Members
Forum Posts: 1
Member Since:
27/01/2011
sp_UserOfflineSmall Offline

Hi!

I've been checking out the new jQuery 1.5rc1 (to escape from another period-related bug in 1.4.4), and it seems that it also causes some problems with the way jqGrid handles column names with periods in them.

Specifically, when using toolbar search, I get the following error:

Error: uncaught exception: Syntax error, unrecognized expression: [name=rol.rolId]

Looking into the code, it seems that this has to do with jQuery no longer allowing attribute selectors where the value has periods and is unquoted, thus code like this always fails: $("select[name="+nm+"]") when nm contains periods. Code like this can be found in several places, for example grid.custom.js line 265.

Now, I'm not sure if this would be considered a bug in jQuery or it's something they just decided not to allow anymore, but a workaround I did in jqGrid was simply to quote the attribute value with single quotes: $("select[name='"+nm+"']")

Whether this should be logged as a bug in jQuery or this workaround or another should be used in the next version, I just wanted to report this as I'd prefer not to diverge from the main version of jqGrid. This being my first post, I'll also just congratulate you and thank you for the component, great stuff really!

Hope this is useful!

Camilo

01/03/2011
00:32
Avatar
stormlifter
Member
Members
Forum Posts: 4
Member Since:
29/09/2010
sp_UserOfflineSmall Offline

Your quote thing worked perfect. Thank you! Awesome workaround.

01/03/2011
22:37
Avatar
stormlifter
Member
Members
Forum Posts: 4
Member Since:
29/09/2010
sp_UserOfflineSmall Offline

Actually looks like this issue is still an issue. Having to put up the quotes causes issues with jqGrid and it seems to ignore that field and make it so it won't format the address properly.

03/03/2011
15:33
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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:
35 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