Unfortunately that's the way Mac IE works ... it's particularly nice
when dealing with file uploads. IE shoves a space at the end of every
formfield entry for some unbeknownst reason.

Your approach to clean all form submissions is the best approach ... Not
really a bad idea anyway if you think about it. If you already use a
custom tag to validate data you could just place it in that tag as a
catch all.

Joshua Miller
Head Programmer / IT Manager
Garrison Enterprises Inc.
www.garrisonenterprises.net
[EMAIL PROTECTED]
(704) 569-9044 ext. 254
 
************************************************************************
*************
Any views expressed in this message are those of the individual sender,
except where the sender states them to be the views of 
Garrison Enterprises Inc.
 
This e-mail is intended only for the individual or entity to which it is
addressed and contains information that is private and confidential. If
you are not the intended recipient you are hereby notified that any
dissemination, distribution or copying is strictly prohibited. If you 
have received this e-mail in error please delete it immediately and
advise us by return e-mail to [EMAIL PROTECTED]
************************************************************************
*************


-----Original Message-----
From: Matthew Walker [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 27, 2003 5:32 PM
To: CF-Talk
Subject: RE: hidden form fields and Macs


I recall having similar problems, and I think getting carriage returns
jammed in there too. I would vote for the brute force approach you
describe. It's not really that bad though, Fusebox code does similar
things to the form scope. 

> -----Original Message-----
> From: Gyrus [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 28 January 2003 11:26 a.m.
> To: CF-Talk
> Subject: SOT: hidden form fields and Macs
> 
> 
> Anyone have any problems with hidden form fields and Macs?
> I've got someone
> using a CF site I've done, they're using Mac OS9 & IE5 (I think).
> 
> Problem seems to be that boolean hidden fields (values set to
> "TRUE" or
> "FALSE") seem to be getting spaces added to them abitrarily. 
> At least, when
> I use
> 
> <cfif Trim(form.hiddenField)>
> 
> rather than
> 
> <cfif form.hiddenField>
> 
> I don't get the "cannot convert to boolean" error. Instead of fiddling

> around with every hidden boolean in the app (it's quite complex), I'm 
> considering just running a custom tag to loop through the Form scope 
> every time one's submitted and Trim everything regardless. But this
> seems like
> worse than a hack, just flailing blindly!
> 
> Anyone have any similar experience or ideas on this?
> 
> Gyrus
> [EMAIL PROTECTED]
> work: http://www.tengai.co.uk
> play: http://norlonto.net
> PGP key available
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Get the mailserver that powers this list at http://www.coolfusion.com

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

Reply via email to