jQuery JSONP (JSON with padding) - success method not called
Possible reasons for JSONP success method not getting called*In jQuery.getJSON method check if you are adding the
callback=? param to your URL
*Check if your server code serving JSONP request is returning proper JSONP response,
For example sample server JSONP java code and response taken from IBM Developerworks article given below, Java code
To get a good understanding of JSONP you can read this IBM Developerworks article http://www.ibm.com/developerworks/library/wa-aj-jsonp1/
Categories :
jQuery
JavaScript