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
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top