Hi all below is my code
$.ajax({
'url': 'myUrl',
'dataType': 'jsonp',
crossDomain: true,
'data': {
// sample daa
},
'success': function (data) {
alert("here::");
},
'error': function (jqxhr, status, errorThrown) {
alert("Failure, Unable to recieve content : " + status)
alert(jqxhr.responseText);
})
})
I am using the jsonp as my url belongs to other domain and i am able to get the response code as 200 and i can able to see the data in response (Checcked in Firebug) but none of the success or error methods are executing.
Please help me on this
Update response(copied from firebug)
{"documents":[{"trans":"sdsd","orig":"How","translit":"Elā","src_translit":""}],"dict":[{"pos":"unknown","terms":["dgssdg","sgsd"],"entry":[{"word":"gsdg","reverse_translation":["method","treatment","recipe","attitude","how","retro"],"score":0.000305442198},{"word":"మార్గము","reverse_translation":["way","route","road","entry","how","impasse"],"score":0.000305442198}],"base_form":"how","pos_enum":20}],"src":"en","server_time":12}