[Javascript] Apostrophise in JavaScript Functions (ASP create d)

Phil Winstanley p_winstanley at creations.co.uk
Tue Jul 3 08:38:51 CDT 2001


on a side note

http://www.evil-norman.com/ASP/CharacterSet/index.asp

there are all 255 characters and there HTML codes.


__________________________________________

Phil Winstanley
Software Creations (Holdings) Ltd

"The client will change their minds. Its not because they are lower forms of
life, they just are never clear on what they want."
___________________________________________
ICQ: 29163700
http://www.creations.co.uk/
phil.winstanley at creations.co.uk

-----Original Message-----
From: Rees, Mark (TWIi London) [mailto:mrees at twii.net] 
Sent: Tuesday, July 03, 2001 2:43 PM
To: 'javascript at LaTech.edu'
Subject: RE: [Javascript] Apostrophise in JavaScript Functions (ASP create
d)


Hello

try the asp function server.urlencode, like

<%=server.urlencode(emergency_name)%>

when you retrieve it with request.querystring I think it "decodes" it for
you.

Cheers

Mark
-----Original Message-----
From: Phil Winstanley [mailto:p_winstanley at creations.co.uk]
Sent: 03 July 2001 13:41
To: 'javascript at LaTech.edu'
Subject: [Javascript] Apostrophise in JavaScript Functions (ASP created)




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/6262c82f/attachment.htm>


More information about the Javascript mailing list