I'm trying to pull down some list data from listdata.svc using the standard method as documented in the msdn:
var listUrl = 'http://development.contoso.com/_vti_bin/ListData.svc/Contacts';
$.ajax({
'type': 'GET',
'url': listUrl,
'dataType': 'json',
'success': function(data){ alert("hello json!") }
});
But I am not having any luck.
I am running the ajax query from a different subdomain (dev1.contoso.com to devb.contoso.com), but both machines live under the same root domain ("contoso", for arguments sake) So is the issue the sub-domain?
Since listdata.svc doesn't do JSONP, what are my options?
I have confirmed that the ListData.svc does return data normally from the browser.