Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Using data with a single quote in a Javascript open
- From: javascript@xxxxxxxxxx (David Chance)
- Subject: [Javascript] Using data with a single quote in a Javascript open
- Date: Fri, 28 Sep 2001 15:59:44 +1200 (NZST)
How can I use data with a single quote in a Javascript open
window statement??
I'm retreiving data from Access using asp, and I'm then using an
on click window.open to open a window that loads up RealPlayer
content:
<a href="#"
onClick="javascript:window.open('radiopopupgenerator.htm?MP3=<%=Server.HTMLEncode(rs.Fields("FileName").Value)%>&title=<%=Server.HTMLEncode(rs.Fields("StoryName").Value)%>','Audio','width=240,height=190,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=yes');">
The problem happens when some of my data has single quotes in
it. The page chokes.
I'm assuming I need to be place the recordset value in a
variable and parse for the ' and add a second one to it, but I'm
having problems doing this.
Any ideas??
Thanks a lot!!!
http://travel.yahoo.com.au - Yahoo! Travel
- Got Itchy feet? Get inspired!
- Prev by Date: [Javascript] Email problem on Win2000 (outlook2000) and NT4.0(outlook97)
- Next by Date: [Javascript] Re: HELP!!!! - Passing <CFDIRECTORY results to another template using Hiermenus (www.dhtml.com)
- Previous by thread: [Javascript] Email problem on Win2000 (outlook2000) and NT4.0(outlook97)
- Next by thread: [Javascript] Re: HELP!!!! - Passing <CFDIRECTORY results to another template using Hiermenus (www.dhtml.com)
- Index(es):