Sorry I didn't explain that very well at all.

Page 1 - Form with 3 xfa's

x1 - save - write to the db
x2 - Preview - Just show what it's going to look like, has an 'edit' button
and a 'save' button
x3 - Upload a file

x1 and x3 are just fine the way they are.  However when we do the preview
and then they hit the edit button I need to repopulate the form again. The
only way we have to pass that info back (it can be some huge text with some
funky characters) is to write it to the client scope and then pull it out
back on the form page.

Now for writing to the db, and uploading the file we have no problems.  when
I write it to the db I do <cfqueryparam
value="#htmlEditFomat(attributes.whatever)#" cfsqltype="whatever"> and have
no problems.

Now when we are looping through the attributes scope and writing these
values into the client scope we do cient.whatever =
htmlEditFormat(attributes[i]); (it's in a function).  However when I display
these values in the textarea on the form page the " say quot; whatever, even
though I am not using htmlEditFormat on the form field.

Does that make more sense?

Tim

> -----Original Message-----
> From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 27, 2005 5:57 PM
> To: CF-Community
> Subject: Re: Annoying Client/Quotes issue
>
>
> > So we have no access to the session scope on this
> > application, so we are
> > writing everything to the client scope.
>
> > We have a page that writes junk, and another page reads
> > it.  If someone
> > puts in " and we wrap it in htmlEditFormat() we get the
> > ascii version on
> > the page output, however this is exactly what we do when
> > it is written
> > to the db.
>
> > Anyone have a freaking work around for this because I am
> > getting super
> > annoyed :)
>
> Say what?
>
> I don't want to offend you but it sounds like you're mis-using
> htmleditformat()... It should never be used on a value going into a
> database, only coming out -- or coming directly from a user-provided
> input scope (form, url or potentially data from a gateway like SMS)
> and going directly to the output buffer to deliver an html page.
> Basically, don't ever use it anywhere except in a cfoutput.
>
> If I'm off, or you want more specific advice, throw me some p-code. :)
>
>
> s. isaac dealey     954.522.6080
> new epoch : isn't it time for a change?
>
> add features without fixtures with
> the onTap open source framework
>
> http://www.fusiontap.com
> http://coldfusion.sys-con.com/author/4806Dealey.htm
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:5:166858
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to