0

When I try to make a getJSON call, get an error:

Origin ... is not allowed by Access-Control-Allow-Origin

This script works with jQuery 1.4.2 but not with 1.9.1:

<!-- language: lang-js -->
var nyc = "http://search.twitter.com/search.json?q=%22hello%20kitty%22";

$.getJSON( nyc , function(data) {  
    $('.nyc').text("abcd"); 
});

Searching on this site, this is clearly a jQuery specific error. Here is something to fiddle with: http://jsfiddle.net/mrcactu5/5yscM/2/

john mangual
  • 7,718
  • 13
  • 56
  • 95

0 Answers0