<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Apostrophise in JavaScript Functions (ASP created)</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2462.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Phil,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> I don't see why using
JavaScript's built-in escape character (\) won't work. This is an
established function of the JS engine and has been for several versions
now...</FONT></DIV>
<BLOCKQUOTE dir=ltr
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>
<A title=p_winstanley@creations.co.uk
href="mailto:p_winstanley@creations.co.uk">Phil Winstanley</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=javascript@LaTech.edu
href="mailto:'javascript@LaTech.edu'">'javascript@LaTech.edu'</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, July 03, 2001 7:41
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Javascript] Apostrophise in
JavaScript Functions (ASP created)</DIV>
<DIV><BR></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>&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></BLOCKQUOTE></BODY></HTML>