<!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>Apostrophise in JavaScript Functions (ASP created)</TITLE>

<META content="MSHTML 6.00.2462.0" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=188254113-03072001><FONT face=Arial color=#0000ff 
size=2>Hello</FONT></SPAN></DIV>
<DIV><SPAN class=188254113-03072001><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=188254113-03072001><FONT face=Arial color=#0000ff size=2>try 
the asp function server.urlencode, like</FONT></SPAN></DIV>
<DIV><SPAN class=188254113-03072001><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=188254113-03072001><FONT 
size=2>&lt;%=server.urlencode(emergency_name)%&gt;</FONT></SPAN></DIV>
<DIV><SPAN class=188254113-03072001><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=188254113-03072001><FONT face=Arial color=#0000ff size=2>when 
you retrieve it with request.querystring I think it "decodes" it for 
you.</FONT></SPAN></DIV>
<DIV><SPAN class=188254113-03072001></SPAN>&nbsp;</DIV>
<DIV><SPAN class=188254113-03072001><FONT face=Arial color=#0000ff 
size=2>Cheers</FONT></SPAN></DIV>
<DIV><SPAN class=188254113-03072001><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=188254113-03072001><FONT face=Arial color=#0000ff 
size=2>Mark</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> Phil Winstanley 
  [mailto:p_winstanley@creations.co.uk]<BR><B>Sent:</B> 03 July 2001 
  13:41<BR><B>To:</B> 'javascript@LaTech.edu'<BR><B>Subject:</B> [Javascript] 
  Apostrophise in JavaScript Functions (ASP created)<BR><BR></FONT></DIV><BR>
  <P><FONT size=2>I have an iccle problem.</FONT> </P>
  <P><FONT size=2>People should be banned from having apostrophise in their 
  names ...</FONT> </P>
  <P><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> </P>
  <P><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> 
  </P>
  <P><FONT size=2>&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="delete" 
  onClick="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;');" 
  id="email/delete.asp?id=&lt;%=emergency_emergencyID%&gt;&amp;amp;tabsheet=Emergency"&gt;</FONT></P>
  <P><FONT size=2>&lt;IMG SRC="<A href="http://intranet/images/delete.gif" 
  target=_blank>http://intranet/images/delete.gif</A>" title="Delete the 
  Emergency record for &lt;%=emergency_name%&gt;."&gt;</FONT> </P>
  <P><FONT size=2>&lt;/span&gt;</FONT> </P>
  <P><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> </P>
  <P><FONT size=2>&lt;span class="delete" 
  onClick="confirmdelete('emergency/delete.asp?id=76&amp;amp;tabsheet=Emergency&amp;amp;EmpID=1028','Emergency 
  Contact','Mrs Margaret D'Souza');" 
  id="email/delete.asp?id=76&amp;amp;tabsheet=Emergency"&gt;</FONT></P>
  <P><FONT size=2>&lt;IMG SRC="<A href="http://intranet/images/delete.gif" 
  target=_blank>http://intranet/images/delete.gif</A>" title="Delete the 
  Emergency record for Mrs Margaret D'Souza."&gt;</FONT> </P>
  <P><FONT size=2>&lt;/span&gt;</FONT> </P>
  <P><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>"A 
  Computer Games Developer with Balls!"</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>"We don't do 
  Duvets, Leather or JavaScript." </FONT></P></BLOCKQUOTE></BODY></HTML>