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
jqGrid 3.4.1 + jquery 1.3.2 + JSON Data Fails
25/02/2009
09:52
Avatar
rtordable
Member
Members
Forum Posts: 15
Member Since:
24/02/2009
sp_UserOfflineSmall Offline

Hi,

here you are an example of JSON Data that I use with jQgrid table:

{"total":8,"rows":[[1,"Tarifa 1","SASNProv1\\/SASNCategoryPrice","111","Suscripcion Internacional","devCategoryFather"
],[2,"Tarifa 2","SASNProv1\\/SASNSuscriptionPrice","12","Suscripcion NBA 22",""],[3,"Tarifa 3","@0,9"
,"","",""],[4,"Tarifa suscripción a devCategory","@2,5","","",""],[5,"Tarifa Mitad Precio 1","\\/prov1
\\/t4\\/t5","","Suscripcion NBA3",""],[6,"Tarifa Mitad Precio 6","\\/prov1\\/t4\\/t6","","Suscripcion NBA4"
,""],[7,"Tarifa Gratis","\\/prov1\\/t1\\/t2","", "5x1en10devCategory20080611",""]],
"records":72,"page":1}

jqGrid 3.3.1 + jQuery 1.2.6 -> Works fine

jqGrid 3.4.1 + jQuery 1.3.1 -> Fails

jqGrid 3.4.1 + jQuery 1.3.2 -> Fails

jqGrid 3.4.1 + jQuery 1.2.6 -> Works fine

I think the bug is in jQuery 1.3.* in the Sizzle selector.  FireBug shows the following message:

uncaught exception: Syntax error, unrecognized expression: “rows”:[[1,"Tarifa 1","SASNProv1\\/SASNCategoryPrice","111","Suscripcion Internacional","devCategoryFather"],[2,"Tarifa 2","SASNProv1\\/SASNSuscriptionPrice","12","Suscripcion NBA 22",""],[3,"Tarifa 3","@0,9","","",""],[4,"Tarifa suscripción a devCategory","@2,5","","",""],[5,"Tarifa Mitad Precio 1","\\/prov1\\/t4\\/t5","","Suscripcion NBA3",""],[6,"Tarifa Mitad Precio 6","\\/prov1\\/t4\\/t6","","Suscripcion NBA4",""],[7,"Tarifa Gratis","\\/prov1\\/t1\\/t2","","5x1en10devCategory20080611",""]]

Have you had similar problems with JSON Data?.

Thanks.

Ramón

25/02/2009
13:16
Avatar
rfinner
Member
Members
Forum Posts: 3
Member Since:
13/02/2009
sp_UserOfflineSmall Offline

My JSON data is also not loading - but only when i set  var minver = true;

The non minified version is working fine for jqGrid 3.4.1 and JQuery 1.3.2

26/02/2009
03:13
Avatar
rtordable
Member
Members
Forum Posts: 15
Member Since:
24/02/2009
sp_UserOfflineSmall Offline

FireBug says that the error is in jquery-1.3.2.js in the line 3633 line of the ajax method -xhr.send(s.data); - .  jQuery 1.3.2 receives the JSON data but fails when parses it.

26/02/2009
04:47
Avatar
rtordable
Member
Members
Forum Posts: 15
Member Since:
24/02/2009
sp_UserOfflineSmall Offline

Sorry, it was an error of mine.

I was doing with the response of an AJAX request with JSON Data -the previous one- the following expresion:

$(request.responseText)

jQuery 1.3.x -Sizzle- does not detect that is JSON Data and fails saying that it's an invalid expression.  jQuery 1.2.6 accepts it without errors.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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