<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2652.35">
<TITLE>RE: [Javascript] script source problem</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>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.</FONT></P>

<P><FONT SIZE=2>Bob Filipiak (Contractor)</FONT>
<BR><FONT SIZE=2>MCP </FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Greg Merritt [<A HREF="mailto:greg@merrittgroup.com">mailto:greg@merrittgroup.com</A>]</FONT>
<BR><FONT SIZE=2>Sent: Thursday, April 26, 2001 9:19 AM</FONT>
<BR><FONT SIZE=2>To: javascript@LaTech.edu</FONT>
<BR><FONT SIZE=2>Subject: [Javascript] script source problem</FONT>
</P>
<BR>

<P><FONT SIZE=2>I'm having a tricky problem calling my javascript source in the &lt;script&gt;</FONT>
<BR><FONT SIZE=2>tag.</FONT>
</P>

<P><FONT SIZE=2>The problem is, I'm calling the source from another server (and the</FONT>
<BR><FONT SIZE=2>javascript has to be on this other server).</FONT>
</P>

<P><FONT SIZE=2>What can I do if that other server goes down?</FONT>
</P>

<P><FONT SIZE=2>I don't want users to experience errors or strange behavior. At the very</FONT>
<BR><FONT SIZE=2>least, it would be nice to give them an error message.</FONT>
</P>

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

<P><FONT SIZE=2>Thanks,</FONT>
</P>

<P><FONT SIZE=2>Greg Merritt</FONT>
</P>

<P><FONT SIZE=2>&lt;script language=Javascript src=<A HREF="http://anotherserver/myscript.js" TARGET="_blank">http://anotherserver/myscript.js</A>&gt;</FONT>
<BR><FONT SIZE=2>&lt;/script&gt;</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>Javascript mailing list</FONT>
<BR><FONT SIZE=2>Javascript@LaTech.edu</FONT>
<BR><FONT SIZE=2><A HREF="http://www.LaTech.edu/mailman/listinfo/javascript" TARGET="_blank">http://www.LaTech.edu/mailman/listinfo/javascript</A></FONT>
</P>

</BODY>
</HTML>