Javascript PopUp Issue with '
i have dynamic event page allows user click on title ,
popup description. works great when no " ' " in title,
but crashes when there is. due title's " ' "
causes statement crash.
is there work around or better method?
listed below 1 of problem titles.
javascript:location='events.cfm?orgid=8'" onclick="window.alert('jenny
bales' play group: 10 12 pm, 3543 burbank drive in chapel hill
north of law ')
thanks!
popup description. works great when no " ' " in title,
but crashes when there is. due title's " ' "
causes statement crash.
is there work around or better method?
listed below 1 of problem titles.
javascript:location='events.cfm?orgid=8'" onclick="window.alert('jenny
bales' play group: 10 12 pm, 3543 burbank drive in chapel hill
north of law ')
thanks!
<script language="javascript" type="text/javascript">
function notice()
{
alert("jenny bales' play group: 10 12 pm, 3543 burbank drive in chapel hill north of law");
}
</script>
<a href = "events.cfm?orgid=8" onclick="notice()">title</a>
function notice()
{
alert("jenny bales' play group: 10 12 pm, 3543 burbank drive in chapel hill north of law");
}
</script>
<a href = "events.cfm?orgid=8" onclick="notice()">title</a>
More discussions in ColdFusion
adobe
Comments
Post a Comment