jsonp

Hi,

I need to be able to support both json and jsonp. For straight json I can use the zhtml json() function and that works fine.

For jsonp, what you have to do is take a ‘callback’ or ‘jsonp’ parameter as described here:

http://en.wikipedia.org/wiki/JSONP

The request will come in the form of a query parameter:

GET /mydata.json?callback=chrisp

this should return something like:

chrisp({“Name”: “Foo”, “Id”: 1234, “Rank”: 7});

Can I somehow do that in a single step using zhtml?

–Chris

Please email tech suipport at tech.support@digi.com, more research needs to be done