[Mapbender-dev] weird bug

Christoph Baudson christoph.baudson at wheregroup.com
Fri Feb 29 08:38:23 EST 2008


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


More information about the Mapbender_dev mailing list