Angel,

enablecab is bad. Don't place any mention of that attribute in your code. It causes 
wierd problems and is deprecated in cfmx. to quote the cfml reference book: "Do not 
use it in new applications. It might not work, ...". I don't remember why enablecab no 
longer works, I just know it's bad ;-)

What kinds of fields do you have in your form? Specifically, what kinds of cf-prefixed 
tags are you using (like cfinput, cfselect, etc...)? I'm not sure what you're using 
enablecab for, or if you even need it. So I can't say whether you need to provide a 
workaround for the functionality you are trying to provide, or if you can just remove 
the enablecab attribute and be done with it.

Good luck

Mike Mertsock
Alfred University Web Team

>Okies..
>I am totally stumped by this.
>
>This is my code:
><cfform ACTION="testval.cfm" METHOD="post" NAME="contactform"
>ENABLECAB="yes">       
><cfinput NAME="full" TYPE="text" SIZE="35" MAXLENGTH="55" REQUIRED="yes"
>MESSAGE="You must enter a correct name"> 
><input TYPE="reset" VALUE="Reset" NAME="Reset" >
><input TYPE="submit" VALUE="Submit" NAME="submit" >
></cfform>  
>
>Simple. I mean...just a CFFORM.
>
>But...it does not work. At all. It consistently throws a Javascript
>error saying object expected.
>
>This is the code when I View Source.
>
><SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"
>SRC="/CFIDE/scripts/cfform.js"></script>
>
><SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
><!--
>
>function  _CF_checkcontactform(_CF_this)
>{
>       if  (!_CF_hasValue(_CF_this.full, "TEXT" ))
>       {
>               if  (!_CF_onError(_CF_this, _CF_this.full,
>_CF_this.full.value, "You must enter a correct name"))
>               {
>                       return false;
>               }
>       }
>
>       return true;
>}
>
>
>//-->
></script>
>
></head>
>
><body>
>
><FORM NAME="contactform" ACTION="testval.cfm" METHOD="POST"
>onSubmit="return _CF_checkcontactform(this)">  
><INPUT TYPE="text" NAME="full" SIZE="35" MAXLENGTH="55"> 
><input TYPE="reset" VALUE="Reset" NAME="Reset" >
><input TYPE="submit" VALUE="Submit" NAME="submit" >
></form>  
>
>What the hell am I doing wrong?
>This is on CFMX with updater 3 installed.
>It...it just really doesn't make sense.
>
>This is all part of a much larger form of course..but I decided to just
>cut everything out..the tables..the stylesheets...all the other fields..
>And just try a basic cfform statement and see if it worked...and it
>didn't.
>
>What could be wrong??
>
>-Gel
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

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

Reply via email to