"invalid label" error in FF from ajax jsonp call
Must be something fundamental i'm missing. I've tried this with a relatively stripped down ajax request (below -- the "success" callback empty tho it fails with or without the success callback, so it's happening b4 success callback is called) and with getJSON. Same error.
$.ajax({
url:temp_HOST + API,
data:{ id:reqId, url:url },
dataType:"jsonp",
type: 'GET',
timeout: 10000,
success:function(resultdata){}
});
It successfully makes the request to my api. I used fiddler to confirm that the api is returning
{'id':'1','count':'5'}
So, that json is (i assume) returning to the "resultdata" object in the jquery ajax call.
Errors in FF and IE6: In FF (via firebug) is giving me a "invalid label" error on the json. And in IE6, i get an error on the page saying: Error: ';' expected.
Any thoughts appreciated... I'm prepared to feel stupid.
thx