<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>RE: [Javascript] Problem changing link's href property...</TITLE>
<META content="MSHTML 5.50.4134.600" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=099181314-13072001><FONT face=Arial color=#800000 size=2>Still
saying it's null or not an object.</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Filipiak, Bob (Contractor)
[mailto:filipiab@atsc.army.mil]<BR><B>Sent:</B> Friday, July 13, 2001 9:47
AM<BR><B>To:</B> 'javascript@LaTech.edu'<BR><B>Subject:</B> RE: [Javascript]
Problem changing link's href property...<BR><BR></FONT></DIV>
<P><FONT size=2>Try document.JumpTo.href</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: Chris
Nafziger [<A
href="mailto:CNafziger@sauder.com">mailto:CNafziger@sauder.com</A>]</FONT>
<BR><FONT size=2>Sent: Friday, July 13, 2001 9:41 AM</FONT> <BR><FONT
size=2>To: 'javascript@LaTech.edu'</FONT> <BR><FONT size=2>Subject: RE:
[Javascript] Problem changing link's href property...</FONT> </P><BR>
<P><FONT size=2>It didn't help.</FONT> </P>
<P><FONT size=2>-----Original Message-----</FONT> <BR><FONT size=2>From:
Anthony E. [<A
href="mailto:apwebdesign@yahoo.com">mailto:apwebdesign@yahoo.com</A>]</FONT>
<BR><FONT size=2>Sent: Thursday, July 12, 2001 7:38 PM</FONT> <BR><FONT
size=2>To: javascript@LaTech.edu</FONT> <BR><FONT size=2>Subject: Re:
[Javascript] Problem changing link's href property...</FONT> </P><BR>
<P><FONT size=2>try </FONT></P>
<P><FONT size=2>document.link.jumpTo.href = '/newpath/file.html';</FONT>
</P><BR><BR>
<P><FONT size=2>--- Chris Nafziger <CNafziger@sauder.com> wrote:</FONT>
<BR><FONT size=2>> I'm having a problem with the function below.
The</FONT> <BR><FONT size=2>> first two lines do what</FONT> <BR><FONT
size=2>> they are supposed to do just fine. The third line</FONT>
<BR><FONT size=2>> does manage to change the</FONT> <BR><FONT size=2>>
URL of the link, however it only works if I use the</FONT> <BR><FONT
size=2>> ID of zero that you see.</FONT> <BR><FONT size=2>> If I replace
the the zero with the value assigned to</FONT> <BR><FONT size=2>> the
link's name</FONT> <BR><FONT size=2>> property, 'JumpTo', similar to the
first two</FONT> <BR><FONT size=2>> function lines, the error</FONT>
<BR><FONT size=2>> 'document.links.JumpTo' is null or not an object</FONT>
<BR><FONT size=2>> comes up. Why can't I use</FONT> <BR><FONT
size=2>> the link's name property value for the reference</FONT> <BR><FONT
size=2>> like I did with the images?</FONT> <BR><FONT size=2>>
</FONT><BR><FONT size=2>> </FONT><BR><FONT size=2>> // Function that
swaps two images and changes the</FONT> <BR><FONT size=2>> link URL
</FONT><BR><FONT size=2>> // when one of the swatch image's onMouseover
event</FONT> <BR><FONT size=2>> fires.</FONT> <BR><FONT size=2>>
</FONT><BR><FONT size=2>> function imageOn(i)</FONT> <BR><FONT
size=2>> { </FONT><BR><FONT
size=2>> document.images["Unit"].src =
UnitImages[i].src;</FONT> <BR><FONT size=2>>
document.images["UnitNumber"].src =</FONT> <BR><FONT size=2>>
UnitNumberImages[i].src;</FONT> <BR><FONT size=2>>
document.links[0].href = Page[i] </FONT><BR><FONT
size=2>> }</FONT> <BR><FONT size=2>>
</FONT><BR><FONT size=2>> <a href="LinkToPage.asp" name="JumpTo"</FONT>
<BR><FONT size=2>> id="JumpTo">Link</a></FONT> <BR><FONT
size=2>> </FONT><BR><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 target=_blank
href="http://www.LaTech.edu/mailman/listinfo/javascript">http://www.LaTech.edu/mailman/listinfo/javascript</A></FONT>
</P><BR>
<P><FONT size=2>__________________________________________________</FONT>
<BR><FONT size=2>Do You Yahoo!?</FONT> <BR><FONT size=2>Get personalized email
addresses from Yahoo! Mail</FONT> <BR><FONT size=2><A target=_blank
href="http://personal.mail.yahoo.com/">http://personal.mail.yahoo.com/</A></FONT>
</P>
<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 target=_blank
href="http://www.LaTech.edu/mailman/listinfo/javascript">http://www.LaTech.edu/mailman/listinfo/javascript</A></FONT>
</P>
<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 target=_blank
href="http://www.LaTech.edu/mailman/listinfo/javascript">http://www.LaTech.edu/mailman/listinfo/javascript</A></FONT>
</P></BLOCKQUOTE></BODY></HTML>