Just wanted to hear your opinion on this weird bug.

I'm in an iframe and want to call

parent.$.toJSON()

on an array like [1,2,3]

var someArray = [1,2,3];
parent.$.toJSON(someArray)

returns '{"0":1, "1":2, "2":3}'

If I load jQuery and jqjson.js in the iframe directly and call

$.toJSON(someArray)

it returns '[1,2,3]' as expected.

Weird, isnt it? Any idea what is wrong? We rely heavily on iframes and it is scary that these things fail :-(

Cheers

Christoph
_______________________________________________
Mapbender_dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapbender_dev

Reply via email to