Possible Duplicate:
JQuery won't get json?
<script type="text/javascript">
var url = "http://local.yahooapis.com/LocalSearchService/V3/localSearch?appid=YahooDemo&query=pizza&zip=10504&results=2&output=json&callback=?";
jQuery.getJSON(url, function (data) {
alert(data);
});
var url1 = "http://services.odata.org/OData/OData.svc/Products?$format=json&callback=?";
jQuery.getJSON(url1, function (data) {
alert(data);
});
</script>
By running the above code I am able to see first alert but not second. Can someone let me know the mistake over here ? The error I am receiving is "invalid label" in FF & expected ; in IE 8