#1  
Old 10th December 2011, 17:21
flycast flycast is offline
Junior Member
 
Join Date: Dec 2011
Posts: 4
Default Problem with livestatus API 2.0

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?
Reply With Quote
  #2  
Old 10th December 2011, 17:23
flycast flycast is offline
Junior Member
 
Join Date: Dec 2011
Posts: 4
Default

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.
Reply With Quote
  #3  
Old 10th December 2011, 20:06
flycast flycast is offline
Junior Member
 
Join Date: Dec 2011
Posts: 4
Default

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);
},
});
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump