Disclaimer: although I have a good deal of experience with various programming and scripting languages, I am diving headfirst into AJAX and therefore have little to no idea what I am doing.
So the general idea I want to pursue is that of a web UI that lives on the company intranet and helps keep track of tasks and assets. A big part of this is integrating with Deadline. In theory, the REST API provides an excellent way of doing so, but in practice I have hit some roadblocks that I could use some help with.
The main issue seems to be that most browsers have a same-origin policy when it comes to sending HTTP traffic cross-site. This complicates things, since as far as I can tell it requires that all interaction be carried out by way of JSONP. To simplify this, I am currently using jQuery to handle requests to Pulse.
When I feed the jQuery.getJSON() or jQuery.ajax() with a text file containing the JSON, it behaves as expected. However, when I try and get it from Pulse directly via JSONP, a parser error is thrown; what comes back is valid JSON, but the callback is never called. It looks to me like Pulse isn’t built to issue JSONP responses (i.e. the JSON data wrapped in a callback function). Is that correct? If so, is there any way to work around it?