I'm just wondering if there's a point to having a callback function on success in jQuery's getJSON function if I'm using JSONP.
From the documentation:
http://api.jquery.com/jQuery.getJSON/
jQuery.getJSON( url [, data] [, success(data, textStatus, jqXHR)] )
The "success" function is triggered after a successful JSON response.
However, if we use JSONP where the function callback is in the JSONP response, is there a need for the "success" function?
I'm guessing no, but I can't find any information on the page to confirm it. I just don't want to overlook some sort of security issue if there is a reason to use the "success" function.
Thanks!