Click to See Complete Forum and Search --> : Page with external javascript hangs up


rrcn
01-04-2007, 10:01 AM
I'm using a service using a javascript snippet.
The problem is that if the site of the service is down my page hangs up.
My question is this: Is there a way to tell in html that the javascript has only some x seconds to load?

A1ien51
01-04-2007, 10:15 AM
Not with clientside technology (JavaScript). The length of time for the browser to finally give up is out of your control.

If you have a serverside language you can make a request from the server to see if the file is there, if not than do not include it on the page.

Eric