in jquery 1.3.2
for jsonp requests i used to this
var _options = {
url: 'someexternal_url',
type: 'GET',
dataType: 'jsonp',
success:_aSucFnToHandle,
error: _anErrFnToHandle
};
$.ajax(_options);// this ignores any error if occurs on url
so i added below script and changed my ajax request
<script type="text/javascript"
src="http://jquery-jsonp.googlecode.com/files/jquery.jsonp-1.0.4.min.js">
</script>
$.jsonp(_options); // with this i can handle error if any occurs on url
My questions are:
- is there any improvement in jquery 1.4.2 to handle error in jsonp request or how do u handle error if occurs while making jsonp request
- list of security loop holes in jsonp request