February 25, 2013
I'm creating a generic web form with jQuery Mobile that will allow users to manually post values to a Thingspeak channel provided they know the URL of the installation and the channel's write key. I've got a working prototype, but I'm having a little trouble making the posting AJAXy. Since the chances are strong that the Thingspeak install will be in a different domain than the web form, AJAX will not load the response to the update POST (which is just the ID of the newly created data entry)
If the response to an update were optionally wrapped in a callback (if one is provided), then the returned ID number could be seen as an integer, and processed via AJAX. Does this kind of addition make sense to folks, or would it get in the way of the primary intended clients (things)?
February 21, 2014
January 18, 2011
Whoops, looks like we missed an old forum topic. But, JSONP was and is support since day 1 of ThingSpeak.
Every API command can include a "callback" parameter. What ever value gets sent, will be wrapped around the response.
Here's an example:
I hope that helps!
Most Users Ever Online: 166
Currently Browsing this Page:
Guest Posters: 1
Newest Members:tran, huldacormier, bogart, estebanmateo93, mikewrite, onlinebusiness
Moderators: cstapels: 460
Administrators: Hans: 405, lee: 457