> > > Is it possible to mix html form fields and <cfinput> fields
> > > in a page and use JavaScript to validate the html form fields
> > > while still using <cfform> validation for <cfinput> fields?
> >
> > You can certainly do this. Here's an example:...
>
> That doesn't work if you include a <cfinput> field like Paul 
> originally asked. I just tested (see http://hksi.net/test-cfform.cfm) 
> on CF4.5.1, and CF just writes the "return validateme(this)" at the 
> end of it's auto-generated script that is triggered by the onsubmit 
> event. The reference to "this", in that case, has no meaning to the 
> script, and passes validation even with no value in IE5 SP1.

True enough. This is a good point.

Unfortunately, when I occasionally throw together a code sample, it's easy
for me to forget some of the subtle issues that it might raise. I should
have used a specific reference, instead of using the "this" reference.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to