<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2614.3500" name=GENERATOR></HEAD>
<BODY
style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; BORDER-RIGHT: medium none; BORDER-TOP: medium none; FONT: 10pt verdana">
<DIV><SPAN class=710013920-08042001>Thanks Bekim, my problem was that I was
having </SPAN></DIV>
<DIV><SPAN class=710013920-08042001>to mix ASP code with Javascript</SPAN></DIV>
<DIV><SPAN class=710013920-08042001>
<P><FONT color=#800000>response.write "clientn<SPAN
class=710013920-08042001>ame</SPAN>["& x &"]='<SPAN
class=710013920-08042001>O'Reilly'" &vbcrlf</SPAN></FONT></P>
<P><FONT color=#800000><SPAN class=710013920-08042001>I solved it by using a
couple of prewritten strings and parsed it that way.</SPAN></FONT></P>
<P><FONT face=verdana><SPAN class=710013920-08042001>Thanks again Jeff and
Bekim.</SPAN></FONT></P>
<P><FONT face=verdana><SPAN
class=710013920-08042001>Andrew</SPAN></FONT></P></SPAN></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px">
<DIV align=left class=OutlookMessageHeader dir=ltr><FONT
face=Tahoma>-----Original Message-----<BR><B>From:</B>
javascript-admin@LaTech.edu [mailto:javascript-admin@LaTech.edu]<B>On Behalf
Of </B>BEKIM BACAJ<BR><B>Sent:</B> Monday, April 09, 2001 12:45
AM<BR><B>To:</B> javascript@LaTech.edu<BR><B>Subject:</B> Re: [Javascript]
apostropes... '<BR><BR></DIV></FONT>
<DIV>That was a correct answer, but it doesn't work 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> </DIV>
<DIV>Write a function that change's the value of variable
- mymame,</DIV>
<DIV>and read you're value, for instance some input and say:</DIV>
<DIV>{myname=the_ID_of_the_input.value}</DIV>
<DIV>and refer to 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> </DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
<DIV style="FONT: 10pt Arial">----- Original Message -----</DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt Arial; FONT-COLOR: black"><B>From:</B> Andrew
Gibson</DIV>
<DIV style="FONT: 10pt Arial"><B>Sent:</B> Sunday, April 08, 2001 7:44
AM</DIV>
<DIV style="FONT: 10pt Arial"><B>To:</B> javascript@LaTech.edu</DIV>
<DIV style="FONT: 10pt Arial"><B>Subject:</B> 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>> > How do I deal with ' in a person name<BR>>
><BR>> > eval ("var myname='ORelly'")<BR>> > is ok<BR>>
> but what about<BR>> ><BR>> > eval ("var
myname='O'Relly'")<BR>><BR>> eval ("var
myname='O\'Relly'")<BR>><BR>> Jeff<BR>><BR>>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR>> Jeff
Walters (314) 962-4024<BR>><BR>> Cybermill
Communications<BR>> 8616 Joseph Ave<BR>> St. Louis, MO 63144<BR>>
Jeff@cybermill.com<BR>> http://www.cybermill.com/<BR>><BR>><BR>>
_______________________________________________<BR>> Javascript mailing
list<BR>> Javascript@LaTech.edu<BR>>
http://www.LaTech.edu/mailman/listinfo/javascript<BR>><BR><BR>_______________________________________________<BR>Javascript
mailing
list<BR>Javascript@LaTech.edu<BR>http://www.LaTech.edu/mailman/listinfo/javascript<BR>
<DIV></DIV></BLOCKQUOTE>
<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></P></DIV></BLOCKQUOTE></BODY></HTML>