I am using onvalidate to do some extra client side validation of a form before 
it gets submitted. It's a fairly complex set of criteria involving the 
relationship among several fields so I need to do it in a JavaScript function 
rather than just giving ColdFusion a rule. So I set up a hidden cfinput 
(visibility: hidden and height: 1px) and created a meaningful error message and 
do my field checking there.

It works great on Firefox, Chrome, etc. but stumbles on IE7. It seems that if 
the field is hidden, IE7 runs the javascript which produces the error alert 
box, but after you click OK, it goes on to the posted page anyway! 

Has anyone else run across this? Do you know any way to force IE7 to run this 
properly? I'm really struggling to find a way to make this work because so many 
users are on IE7. 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327577
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to