|
#1
|
|||
|
|||
|
The following cross domain request works:
$.getJSON('http://services.digg.com/stories/top?appkey=http%3A%2F%2Fmashup.com&type=javascript &callback=?', function(json) { alert("Hello"); }); This one doesn't: $.getJSON('http://xhopecommunitychurchx.api.channel.livestream.com/2.0/livestatus.json?callback=', function(json) { alert("Hello"); }); The only difference is the url. I have tested with various other urls (not livestream) and they seem to work. IS there a problem with the livestream 2.0 API or is it my code? |
|
#2
|
|||
|
|||
|
By the way...when I visit the url http://xhopecommunitychurchx.api.channel.livestream.com/2.0/livestatus.json?callback= directly I get a result from the server. It looks to me like a cross domain issue.
|
|
#3
|
|||
|
|||
|
This is what it took:
$.ajax({ url: 'http://xhopecommunitychurchx.api.channel.livestream.com/2.0/info.json', dataType: 'jsonp', success: function (data){ alert(data.channel.isLive); }, }); |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|