<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2652.35">
<TITLE>RE: [Javascript] Apostrophise in JavaScript Functions (ASP create d)</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>on a side note</FONT>
</P>

<P><FONT SIZE=2><A HREF="http://www.evil-norman.com/ASP/CharacterSet/index.asp" TARGET="_blank">http://www.evil-norman.com/ASP/CharacterSet/index.asp</A></FONT>
</P>

<P><FONT SIZE=2>there are all 255 characters and there HTML codes.</FONT>
</P>
<BR>

<P><FONT SIZE=2>__________________________________________</FONT>
</P>

<P><FONT SIZE=2>Phil Winstanley</FONT>
<BR><FONT SIZE=2>Software Creations (Holdings) Ltd</FONT>
</P>

<P><FONT SIZE=2>&quot;The client will change their minds. Its not because they are lower forms of life, they just are never clear on what they want.&quot;</FONT></P>

<P><FONT SIZE=2>___________________________________________</FONT>
<BR><FONT SIZE=2>ICQ: 29163700</FONT>
<BR><FONT SIZE=2><A HREF="http://www.creations.co.uk/" TARGET="_blank">http://www.creations.co.uk/</A></FONT>
<BR><FONT SIZE=2>phil.winstanley@creations.co.uk</FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Rees, Mark (TWIi London) [<A HREF="mailto:mrees@twii.net">mailto:mrees@twii.net</A>] </FONT>
<BR><FONT SIZE=2>Sent: Tuesday, July 03, 2001 2:43 PM</FONT>
<BR><FONT SIZE=2>To: 'javascript@LaTech.edu'</FONT>
<BR><FONT SIZE=2>Subject: RE: [Javascript] Apostrophise in JavaScript Functions (ASP create d)</FONT>
</P>
<BR>

<P><FONT SIZE=2>Hello</FONT>
</P>

<P><FONT SIZE=2>try the asp function server.urlencode, like</FONT>
</P>

<P><FONT SIZE=2>&lt;%=server.urlencode(emergency_name)%&gt;</FONT>
</P>

<P><FONT SIZE=2>when you retrieve it with request.querystring I think it &quot;decodes&quot; it for you.</FONT>
</P>

<P><FONT SIZE=2>Cheers</FONT>
</P>

<P><FONT SIZE=2>Mark</FONT>
<BR><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Phil Winstanley [<A HREF="mailto:p_winstanley@creations.co.uk">mailto:p_winstanley@creations.co.uk</A>]</FONT>
<BR><FONT SIZE=2>Sent: 03 July 2001 13:41</FONT>
<BR><FONT SIZE=2>To: 'javascript@LaTech.edu'</FONT>
<BR><FONT SIZE=2>Subject: [Javascript] Apostrophise in JavaScript Functions (ASP created)</FONT>
</P>
<BR>
<BR>
<BR>

<P><FONT SIZE=2>I have an iccle problem. </FONT>
<BR><FONT SIZE=2>People should be banned from having apostrophise in their names ... </FONT>
<BR><FONT SIZE=2>Below is some HTML code, notice the 3rd passed parameter when calling the onClick and it contains a text string ... With an apostrophise I need to keep the apostrophise visually but lose it to code - what did people come up with ?</FONT></P>

<P><FONT SIZE=2>I have tried replacing a single apostrophise with a double apostrophise without luck. </FONT>
<BR><FONT SIZE=2>ASP -o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o- </FONT>
<BR><FONT SIZE=2>&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;delete&quot; onClick=&quot;confirmdelete('emergency/delete.asp?id=&lt;%=emergency_emergencyID%&gt;&amp;amp;tabsheet=Emergency&amp;amp;EmpID=&lt;%=EmpID%&gt;','Emergency Contact','&lt;%=emergency_name%&gt;');&quot; id=&quot;email/delete.asp?id=&lt;%=emergency_emergencyID%&gt;&amp;amp;tabsheet=Emergency&quot;&gt;</FONT></P>

<P><FONT SIZE=2>&lt;IMG SRC=&quot;<A HREF="http://intranet/images/delete.gif" TARGET="_blank">http://intranet/images/delete.gif</A>&quot; title=&quot;Delete the Emergency record for &lt;%=emergency_name%&gt;.&quot;&gt; </FONT>
<BR><FONT SIZE=2>&lt;/span&gt; </FONT>
<BR><FONT SIZE=2>Rendered HTML -o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o- </FONT>
<BR><FONT SIZE=2>&lt;span class=&quot;delete&quot; onClick=&quot;confirmdelete('emergency/delete.asp?id=76&amp;amp;tabsheet=Emergency&amp;amp;EmpID=1028','Emergency Contact','Mrs Margaret D'Souza');&quot; id=&quot;email/delete.asp?id=76&amp;amp;tabsheet=Emergency&quot;&gt;</FONT></P>

<P><FONT SIZE=2>&lt;IMG SRC=&quot;<A HREF="http://intranet/images/delete.gif" TARGET="_blank">http://intranet/images/delete.gif</A>&quot; title=&quot;Delete the Emergency record for Mrs Margaret D'Souza.&quot;&gt; </FONT>
<BR><FONT SIZE=2>&lt;/span&gt; </FONT>
<BR><FONT SIZE=2>___________________________________________ </FONT>
<BR><FONT SIZE=2>Phil Winstanley </FONT>
<BR><FONT SIZE=2>MIS Database Support </FONT>
<BR><FONT SIZE=2>Software Creations (Holdings) Ltd </FONT>
<BR><FONT SIZE=2>&quot;A Computer Games Developer with Balls!&quot; </FONT>
<BR><FONT SIZE=2>140 Cheetham Hill Road </FONT>
<BR><FONT SIZE=2>Manchester </FONT>
<BR><FONT SIZE=2>M8 8PZ </FONT>
<BR><FONT SIZE=2>England </FONT>
<BR><FONT SIZE=2>Tel: +44(0)161 839 2239 </FONT>
<BR><FONT SIZE=2>fax: +44(0)161 832 0412 ___________________________________________ </FONT>
<BR><FONT SIZE=2>ICQ: 29163700 </FONT>
<BR><FONT SIZE=2><A HREF="http://www.creations.co.uk/" TARGET="_blank">http://www.creations.co.uk/</A> </FONT>
<BR><FONT SIZE=2>phil.winstanley@creations.co.uk </FONT>
<BR><FONT SIZE=2>&quot;We don't do Duvets, Leather or JavaScript.&quot; </FONT>
</P>

</BODY>
</HTML>