Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / September 2007



Tip: Looking for answers? Try searching our database.

coldfusion with javascript alert problem with apostrophe

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nick201 - 17 Sep 2007 15:08 GMT
Hi

I have alert ("thanks for sing up  #fname# - #lname# ")

but  fname='Charles's
lanme ='Charles's'

so javascript is not interpret with  apostrophe . how can i resolve it thanks
GArlington - 17 Sep 2007 15:25 GMT
> Hi
>
> I have alert ("thanks for sing up  #fname# - #lname# ")

Here CF is outputting the values of fname and lname inside your
string, so as long as you do not have double quotes ( " ), it will
work.

> but  fname='Charles's

what is the "s" after " ' "?

> lanme ='Charles's'

I suspect you mean
lname ="Charles's"

> so javascript is not interpret with  apostrophe . how can i resolve it thanks

Javascript WILL run OK, as soon as you fix other problems.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.