<HTML><BODY STYLE="font:10pt verdana; border:none;"><DIV>That was a correct answer, but it doesn't work&nbsp;with strigs,</DIV> <DIV>because strings are interpreted literaly, there are other ways to work that out.</DIV> <DIV>Why don't you try another aproach?</DIV> <DIV>Make you're VAR global by declaring it as </DIV> <DIV>var myname="" </DIV> <DIV>outside of any function,</DIV> <DIV>&nbsp;</DIV> <DIV>Write&nbsp;a function that change's&nbsp;the value of&nbsp; variable -&nbsp;mymame,</DIV> <DIV>and&nbsp;read you're value, for&nbsp;instance some input and say:</DIV> <DIV>{myname=the_ID_of_the_input.value}</DIV> <DIV>and&nbsp;refer to&nbsp;it, with:</DIV> <DIV>eval(myname)</DIV> <DIV>this way the myname variable will allways have an updated name, the most recently entered in the field.</DIV> <DIV>Regards!</DIV> <DIV><BR>&nbsp;</DIV> <BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt Arial">----- Original Message -----</DIV> <DIV style="BACKGROUND: #e4e4e4; FONT: 10pt Arial; FONT-COLOR: black"><B>From:</B>&nbsp;Andrew Gibson</DIV> <DIV style="FONT: 10pt Arial"><B>Sent:</B>&nbsp;Sunday, April 08, 2001 7:44 AM</DIV> <DIV style="FONT: 10pt Arial"><B>To:</B>&nbsp;javascript@LaTech.edu</DIV> <DIV style="FONT: 10pt Arial"><B>Subject:</B>&nbsp;RE: [Javascript] apostropes... '</DIV> <DIV><BR></DIV>Thanks Jeff, I tried this though and it didn't<BR>work.....<BR><BR>eval ("var myname='O\'Relly'");<BR>alert (myname);<BR><BR>&gt; &gt; How do I deal with ' in a person name<BR>&gt; &gt;<BR>&gt; &gt; eval ("var myname='ORelly'")<BR>&gt; &gt; is ok<BR>&gt; &gt; but what about<BR>&gt; &gt;<BR>&gt; &gt; eval ("var myname='O'Relly'")<BR>&gt;<BR>&gt; eval ("var myname='O\'Relly'")<BR>&gt;<BR>&gt; Jeff<BR>&gt;<BR>&gt; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR>&gt; Jeff Walters&nbsp;&nbsp; (314) 962-4024<BR>&gt;<BR>&gt; Cybermill Communications<BR>&gt; 8616 Joseph Ave<BR>&gt; St. Louis, MO 63144<BR>&gt; Jeff@cybermill.com<BR>&gt; http://www.cybermill.com/<BR>&gt;<BR>&gt;<BR>&gt; _______________________________________________<BR>&gt; Javascript mailing list<BR>&gt; Javascript@LaTech.edu<BR>&gt; http://www.LaTech.edu/mailman/listinfo/javascript<BR>&gt;<BR><BR>_______________________________________________<BR>Javascript mailing list<BR>Javascript@LaTech.edu<BR>http://www.LaTech.edu/mailman/listinfo/javascript<BR> <DIV></DIV></BLOCKQUOTE></BODY></HTML><DIV><BR><br clear=all><hr>Get Your Private, Free E-mail from MSN Hotmail at <a href="http://www.hotmail.com">http://www.hotmail.com</a>.<br></p></DIV>