haha... see cfsavecontent I discovered a while ago and started using it to develop all my static content page from database because it was so fun... wow - sound like a loser there.. anyhow - thanks again.. and enjoy that <cfquery> tag - pretty useful ;)
Charlie Griefer wrote: > Hi Jason: > > I wouldn't worry too much about replacing your 'nutty' replace functions, as > jstringFormat() is really just a built-in replace function itself. Well, > actually *I* would worry about it...but I'm really anal. A sane person > wouldn't worry about it :) > > As far as the function escaping you...yeah, i know that feeling too. I've > been using CF since 1996, and I just recently (like 3 months ago recently) > found out about the <cfsavecontent> tag. Wow. > > charlie > (dying to try out this new '<cfquery>' tag that he's just recently heard > about too) > > > -----Original Message----- > From: Jason Miller [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 25, 2003 5:15 PM > To: CF-Talk > Subject: Re: Single Quotes in Field value throwing error outputing in > javascript on cf page > > > Well - that was an uncontested 5 suggestions for jsStringFormat() - and > it worked wonderfully. How did that little function escape me so long. > > My toughest decision is now do I go back through old project cleaning up > my nutty replace functions I previously dreamed up and replace with > jsStringFormat() ! :) > > Thanks everyone - I knew posting to the list would help. > jay miller > > charlie griefer wrote: > >>there is a jsStringFormat() function which will escape the 'dangerous' >>javascript characters :) >> >>hth, >>charlie >> >>Jason Miller writes: >> >> >> >>>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

