Unless you remove the script tag after the 'timeout', of couse.

On Jan 27, 9:59 am, Mike Alsup <mal...@gmail.com> wrote:
> > ah .... and there is no way to simulate that?
>
> You can simulate a timeout in your code by using setTimeout, but it's
> not the same as when the XHR is used for the request.  With XHR jQuery
> can invoke the abort fn to cancel the request.  There is no such
> option for the jsonp script injection method.  So you can not close
> the connection or do anything particularly useful other than assume
> your timeout is being called because the request failed.  But then
> you're only guessing, and the response may return the moment after you
> time it out.

Reply via email to