Loading...
Logo
Processing Forum
Hi,

I have no idea about these things. I notice that thingspeak gives a link to their crossdomain.xml file

I understand this instructs the browser that its ok to load files from their domain.

I plan to let my processing.js sketch load strings like this

loadstrings("api.thingspeak.com/blah blah blah")

But will it work.

Do I need to do anything special with the http://api.thingspeak.com/crossdomain.xml link they provide?

Replies(2)

it might not actually.  in PJS, loadStrings()  requires that the file be on the same server for security reasons. I'd like a little clarification on the matter myself so I asked over at the PJS googlegroup.  you can follow it here:

Apparently, the crossdomain.xml file is telling the browser it is OK to do such cross request, but from my quick browsing, I haven't found evidence it works for pure JavaScript, seems strongly tied to Flash and other Adobe products.