On 1/27/03 2:25 PM, "Gyrus" <[EMAIL PROTECTED]> wrote:

> 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!
> 
No, that is the recommended treatment for form fields if you want them to
work on Macs.  Trim everything.

> Anyone have any similar experience or ideas on this?
> 
Yep.  Exactly what you found.  Trim all fields -- except type=file


> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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