[Javascript] script source problem

Filipiak, Bob (Contractor) filipiab at atsc.army.mil
Thu Apr 26 08:40:17 CDT 2001


Create a variable that get a value assigned by the code in myscript.js and
then test for the value before using any code that is in the myscript.js. If
the myscript.js did not load you can skip using the code or throw an alert.
Just a thought.

Bob Filipiak (Contractor)
MCP 

-----Original Message-----
From: Greg Merritt [mailto:greg at merrittgroup.com]
Sent: Thursday, April 26, 2001 9:19 AM
To: javascript at LaTech.edu
Subject: [Javascript] script source problem


I'm having a tricky problem calling my javascript source in the <script>
tag.

The problem is, I'm calling the source from another server (and the
javascript has to be on this other server).

What can I do if that other server goes down?

I don't want users to experience errors or strange behavior. At the very
least, it would be nice to give them an error message.

I've read all the documentation, and nothing worked (supposedly code placed
between the script tags will execute on error, but it doesn't work if the
other web server is down). I'm hoping someone on this list has found a
workaround.

Thanks,

Greg Merritt

<script language=Javascript src=http://anotherserver/myscript.js>
</script>



_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
http://www.LaTech.edu/mailman/listinfo/javascript
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010426/cae038f8/attachment.htm>


More information about the Javascript mailing list