Bing search API using Jsonp not working, invalid label
Posted
by Blankman
on Stack Overflow
See other posts from Stack Overflow
or by Blankman
Published on 2010-05-13T19:39:01Z
Indexed on
2010/05/13
20:04 UTC
Read the original article
Hit count: 362
Struggling with Bing's json request (bing search, not map), I am getting an error back that says 'Invalid Label'
My query url is:
var bingurl="http://api.search.live.net/json.aspx?Appid=##APIKEY##&query=Honda&sources=web";
$.ajax({
type: "GET",
url: bingurl,
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "jsonp",
success: function(data) {
$callBack(data);
},
error: function(msg) {
alert("error" + msg);
}
});
Firebug reports 'invalid label' and then dumps the json response.
No idea what is wrong? help appreciated.
© Stack Overflow or respective owner