<!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>Apostrophise in JavaScript Functions (ASP created)</TITLE>
</HEAD>
<BODY>
<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>&nbsp;&nbsp;&nbsp;<span class="delete" onClick="confirmdelete('emergency/delete.asp?id=<%=emergency_emergencyID%>&amp;tabsheet=Emergency&amp;EmpID=<%=EmpID%>','Emergency Contact','<%=emergency_name%>');" id="email/delete.asp?id=<%=emergency_emergencyID%>&amp;tabsheet=Emergency"></FONT></P>
<P><FONT SIZE=2><IMG SRC="<A HREF="http://intranet/images/delete.gif" TARGET="_blank">http://intranet/images/delete.gif</A>" title="Delete the Emergency record for <%=emergency_name%>."></FONT>
</P>
<P><FONT SIZE=2></span></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><span class="delete" onClick="confirmdelete('emergency/delete.asp?id=76&amp;tabsheet=Emergency&amp;EmpID=1028','Emergency Contact','Mrs Margaret D'Souza');" id="email/delete.asp?id=76&amp;tabsheet=Emergency"></FONT></P>
<P><FONT SIZE=2><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."></FONT>
</P>
<P><FONT SIZE=2></span></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>
</BODY>
</HTML>