As mentioned in @NewToDB, you cannot cancel the jsonp request (for example, tell the browser that it stops trying to load the src tag), but you can implement a mechanism that effectively ignores the returned data of the old call. Define a global variable that is incremented each time you are about to make a jsonp call and pass the value of this variable to the server as a parameter. You also need to pass the counter back to it from the server (I assume you also have the server code). If the current value of your counter is not equal to the returned value of the counter, then you know that another server call has already been made, so you can ignore the returned data.
...
$.getJSON("http://long-polling.com/some.fcgi?callCounter=" + (++callCounter) + "&jsoncallback=?" function(data){ if(data.items[0].rval == 1 && data.callCounter == callCounter) {
PPrice
source share