jQuery 1.4.2 error

1 view
Skip to first unread message

Samuel Deering

unread,
Aug 9, 2011, 12:33:51 AM8/9/11
to We love jQuery
Hey guys, I'm seeing this error has anyone seen it before??!?

a is null
[Break On This Error] a))();else c.error("Invalid JSON: "+a)...
(d)if(i)for(f in a){if(b.apply(a[f],
jquery....min.js (line 29)

Cheers
Sam

Samuel Lee Deering

unread,
Aug 9, 2011, 12:34:30 AM8/9/11
to We love jQuery
attached is a screenshot!
jquery.1.4.2-error.PNG

Chris Johnson

unread,
Aug 9, 2011, 12:44:17 AM8/9/11
to we-love...@googlegroups.com

Why are you debugging with the minified version?

Samuel Lee Deering

unread,
Aug 9, 2011, 12:44:53 AM8/9/11
to We love jQuery
I think it might have something to do with this line!

$.each(rawData.match(secureQueryRegex), function(index, currentQuery)

If the match returns null it poo's itself!

Samuel Lee Deering

unread,
Aug 9, 2011, 12:46:52 AM8/9/11
to We love jQuery
Yeah good point, but even if I did want to make changes to the core, we are still using 1.4.2!!! We're pushing for an update but takes time with such a large infrastructure. Maybe it's fixed in 1.6.2? who knows?!

Chris Johnson

unread,
Aug 9, 2011, 12:52:59 AM8/9/11
to we-love...@googlegroups.com

Is it actually a problem with jquery though? It says theres an error in the json.

Samuel Lee Deering

unread,
Aug 9, 2011, 12:58:16 AM8/9/11
to we-love...@googlegroups.com
Yeah i'm not using json! It's just html. I think it might have something to do with the string length used on the match statement. It's 69,443 characters long! I'm going to chop it up and try that.

Samuel Lee Deering

unread,
Aug 9, 2011, 1:50:51 AM8/9/11
to we-love...@googlegroups.com
I was thinking it may have been the size of data as it was 69,443 characters long

But I eventually found out it was bad characters inside the data string (which was grabbed directly from HTML)

rawData =  rawData.replace(/[^<>a-zA-Z 0-9]+/g,'');  /* clean up for match() statement */
Reply all
Reply to author
Forward
0 new messages