a javascript http response timer

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
rehfeld
Forum Regular
Posts: 741
Joined: Mon Oct 18, 2004 8:14 pm

a javascript http response timer

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

hint: timer.
Post Reply