Any idea how to use either GET or POST directly from within a processing.js app

edited April 2014 in JavaScript Mode

I am usinging thingspeak with talkback so not bothered about actually loading any data. I just want to send a url to thingspeak using either GET or POST

Answers

  • Ask questions once, I deleted the duplicate.

  • Moved to this category, as it is about PJS.

    Try loadStrings(), to make a GET request. If it works in JS, it should do the trick.

  • If only I could use loadStrings in js mode it would make matters so much simpler, but for security reasons the documentation says loadStrings() only works if you are accessing data on the same domain as the javascript is accessing.

  • Ah, yes, I forgot this. Take a look at the JsonP concept, or CORS, or similar.

Sign In or Register to comment.