Convert array to JSON

Script for backward-compatibility: https://github.com/douglascrockford/JSON-js/blob/master/json2.js And call: Note: The JSON object is now part of most modern web browsers (IE 8 & above). See caniuse for full listing. Credit goes to: @Spudley for his comment below

Reload an iframe with jQuery

If the iframe was not on a different domain, you could do something like this: But since the iframe is on a different domain, you will be denied access to the iframe’s contentDocument property by the same-origin policy. But you can hackishly force the cross-domain iframe to reload if your code is running on the iframe’s parent page, … Read more

jQuery – Illegal invocation

I think you need to have strings as the data values. It’s likely something internally within jQuery that isn’t encoding/serializing correctly the To & From Objects. Try: Notice also on the lines: You don’t need the jQuery wrapper as To & From are already jQuery objects.