hip_hop_x
Regular Member
- Aug 27, 2009
- 305
- 65
Hey there so i got into abit of trouble
The problem i am facing is that it never get's to the function(data,status)... and bugzilla reports that the call to that page is being made, also that response status is 200, and that there is a response.
So why $.getJSON doesn't recognize it (also did try with $.ajax, same crap), i mean why it doesn't go to the function (data,status) when it is supposed to get there?
If anyone has clue/fix let me know, thank you!
The problem i am facing is that it never get's to the function(data,status)... and bugzilla reports that the call to that page is being made, also that response status is 200, and that there is a response.
So why $.getJSON doesn't recognize it (also did try with $.ajax, same crap), i mean why it doesn't go to the function (data,status) when it is supposed to get there?
PHP:
function suggest(kw){
console.log("Logging!");
$.getJSON('http://suggestqueries.google.com/complete/search?output=firefox&client=firefox&hl=en-US&callback=?&q='+kw,
function(data,status){
$.each(data, function(i,item){alert(item.x);});
});
}
If anyone has clue/fix let me know, thank you!