Page 1 of 1

a javascript http response timer

Posted: Wed Feb 16, 2005 5:45 pm
by rehfeld
not sure what to call it, but is there a way to use javascript to for example, try and load an external image, but if the server where the image is located takes too long to respond, abort loading the image? so that if i were to try and load an image from another server, and the download of data didnt begin within 2 seconds, i could just abort loading the image altogether.

a nudge in the right direction would be appreciated.

Posted: Wed Feb 16, 2005 5:49 pm
by feyd
hint: timer.