well a regular replace would work as well now that I think about it:

<CFSCRIPT>
        wddx = Replace(wddx,"'","&##39;","ALL");
        wddx = Replace(wddx,'"',"&quote;","ALL");
</CFSCRIPT>


That should help some yes?

Tim Heald
ACP/CCFD :)
Application Development
www.schoollink.net 

> -----Original Message-----
> From: Timothy Heald [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 26, 2002 10:36 AM
> To: CF-Talk
> Subject: RE: WDDX Breaking Hidden Field
> 
> 
> an reReplace()?  Get a regular expression that will replace ' an " witht
> their ascii equivilents.  I may have on laying aropund let me look.
> 
> Tim Heald
> ACP/CCFD :)
> Application Development
> www.schoollink.net
> 
> > -----Original Message-----
> > From: Brad Roberts [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, April 26, 2002 10:19 AM
> > To: CF-Talk
> > Subject: WDDX Breaking Hidden Field
> >
> >
> > I know this has been asked before, but I can't find it anywhere.
> >
> > I have a textarea that allows users to type a bunch of text.  When
> > submitted, the form variables serialized to wddx and put in a 
> hidden field
> > for the next form.
> >
> > The problem is that if the user enters characters like double 
> quotes, the
> > browser thinks the hidden form field ends at the double quotes
> > and displays
> > the rest of the packet.
> >
> > What function do I need to use to "make it safe" while passing it in a
> > hidden field and then "make it normal" when I input the info into the
> > database?
> >
> > I've tried xmlFormat(), but it didn't work (I may not be using it
> > correctly).
> >
> > -Brad
> >
> > 
> 
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to