jsStringFormat() should take care of you.  It's been around since CF4.5 at
least, and makes any kind of javascript interaction MUCH easier.

---
Barney Boisvert, Senior Development Engineer
AudienceCentral (formerly PIER System, Inc.)
[EMAIL PROTECTED]
voice : 360.671.8708 x12
fax   : 360.647.5351

www.audiencecentral.com

> -----Original Message-----
> From: Jason Miller [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 25, 2003 2:14 PM
> To: CF-Talk
> Subject: Single Quotes in Field value throwing error outputing in
> javascript on cf page
>
>
> Hello list -
> I have an access database - it already has text in a  memo field riddled
> with ' quotes. Like - "Woman's" and "it's" and all sorts of words.
>
> Problem is it is creating an issue with my javascript event - which is
> onMouseOver="tip.show('#Trim(LinkDesc)#')"
>
> Do I need to do a replace function each time? Or do I have to run a
> filter on all existing fields and re-insert the info with a
> PreserveSingleQuotes?
>
> It throws cf errors on page rendered - it explains a mystery -
> "Expected )" issue. Also - it prevents any tip's from showing that have
> a single quote.
> I tested it to be sure this was the problem and in the mouseover -
> temporarily changed it to urlencodedformat and it fixed all issues.. but
> obviously for readability -that's not a solution.
>
> What's the best, quickest and easiest way to go here? Advice? I tried a
> few things but nothing worked for me 100% or was effective (not spaghetti)
>
> thanks!
> jay
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to