> What versions of CF are you guys running? I am running
> CF5 and have problems sometimes when I populate a
> form field so I correct it with htmleditformat() but just out
> of curiosity, are you all running MX or 5?
> Perhaps they fixed the problems in MX.

This isn't actually a problem with ColdFusion or really a bug of any kind.
It has to do with the nature of the webserver -> browser interraction ...
The browser never sees anything until after the CF Server is long since
through with it, so to the browser, it's as though you typed in

<input type="text" name="mytextfield" value=" John "Lefty" McGruder ">

Obviously this can't work if you were to type it straight into an html page,
because "Lefty would break the text field value. The web wasn't originally
intended as a platform for applications, so there wasn't the antiscipation
that people would be entering form info which would later be updated the way
we commonly do now. So the only 2 ways to update this info in a form field
are to either modify the data using htmleditformat() or by replacing
double-quotes with left-and-right double quotes ( or pairs of single quotes
) or to use a client-side scripting language like javascript or vbscript to
populate the form _after_ the browser has already been given a set of blank
input fields. Neither solution is particularly attractive because you wind
up either requiring javascript ( which is usually okay but is a problem
occasionally because of paranoid people ) or altering the user's data (
which is usually okay, but you can never be too sure )...

Isaac

www.turnkey.to
954-776-0046

______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
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