Hi, I just wasted a number of hours due to my copying features/core/json.js to javascript/container/json.js and adjusting it to support the gadgets.JSON and JSON prefixes.
Turns out that on Firefox quotes were not getting stripped/evaluated
properly which resulted in ifpc call breakage.
For example ifpc calls for
resize_iframe
were instead trying to use
"resize_iframe"
All of the arguments had quotes surrounding them..
The functional difference between the two json.js files is this:
return !(/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(
- text.replace(/"(\\.|[^"\\])*"/g, ''))) &&
+ text.replace(/("(\\.|[^"\\])*")|('(\\.|[^'\\])*')/g,
''))) &&
eval('(' + text + ')');
Why is this?
Also, how does this implementation compare against the public domain
json library here?
http://www.json.org/json2.js
--
Paul Lindner
hi5 Architect
[EMAIL PROTECTED]
pgpTPhTQOVYYW.pgp
Description: PGP signature

