Forum
21:54
27/01/2011
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
15:33
Moderators
30/10/2007
Hello,
Fixed
https://github.com/tonytomov/jqGrid/commit/2eddefb49b1b6f2d6ed8e4ca2345a097559c2cb8
Regards
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.
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66