The example I am working with can be found on this link.
My JSONP content looks like so:
myRun (
{
"Status": "SUCCESS",
"Name": "Apple Inc",
"Symbol": "AAPL",
"LastPrice": 106.82,
"Open": 106.62
}
)
The code I am using below does not work. And I am not sure how to reorganize it to use JSONP.
var selfish = this;
$.getJSON('http://dev.markitondemand.com/MODApis/Api/v2/Quote/jsonp?symbol=AAPL&callback=myRun', function(data){
console.log(selfish.data.Symbol);
});
somecallback=?
as a search string in the URL ... the?
being literally a?
andsomecallback
depends on the API you are calling