[Javascript] Apostrophise in JavaScript Functions (ASP created)

Phil Winstanley p_winstanley at creations.co.uk
Tue Jul 3 07:41:01 CDT 2001


I have an iccle problem.

People should be banned from having apostrophise in their names ...

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 ?

I have tried replacing a single apostrophise with a double apostrophise
without luck.

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-

&nbsp;&nbsp;&nbsp;<span class="delete"
onClick="confirmdelete('emergency/delete.asp?id=<%=emergency_emergencyID%>&a
mp;tabsheet=Emergency&amp;EmpID=<%=EmpID%>','Emergency
Contact','<%=emergency_name%>');"
id="email/delete.asp?id=<%=emergency_emergencyID%>&amp;tabsheet=Emergency">

<IMG SRC="http://intranet/images/delete.gif" title="Delete the Emergency
record for <%=emergency_name%>.">

</span>

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-

<span class="delete"
onClick="confirmdelete('emergency/delete.asp?id=76&amp;tabsheet=Emergency&am
p;EmpID=1028','Emergency Contact','Mrs Margaret D'Souza');"
id="email/delete.asp?id=76&amp;tabsheet=Emergency">

<IMG SRC="http://intranet/images/delete.gif" title="Delete the Emergency
record for Mrs Margaret D'Souza.">

</span>

___________________________________________
Phil Winstanley
MIS Database Support
Software Creations (Holdings) Ltd
"A Computer Games Developer with Balls!"
140 Cheetham Hill Road
Manchester
M8 8PZ
England
Tel: +44(0)161 839 2239
fax: +44(0)161 832 0412 ___________________________________________
ICQ: 29163700
http://www.creations.co.uk/
phil.winstanley at creations.co.uk
"We don't do Duvets, Leather or JavaScript." 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010703/480de92f/attachment.htm>


More information about the Javascript mailing list