Hey All,

I'm posting this for a friend.  It seems that in CF 7, instead of the 
validation function being called in the onSubmit() of CFFORM, there is a direct 
referenece to a form element's properties referenced i the onSubmit().

Here's some code:

FUNCTION FROM CF MX 6 GENERATED BY CFFORM
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--

function  _CF_checkCFForm_1(_CF_this)
{

        if  (!_CF_checkinteger(_CF_this.menuid.value))
        {
                if  (!_CF_onError(_CF_this, _CF_this.menuid, 
_CF_this.menuid.value, "menu ID must be an integer value"))
                {
                        return false;
                }
        }
document.forms[0].cmdNext.disabled = true; return CheckDefaults();

        return true;
}


//-->
</SCRIPT>

GENERATED FORM TAG IN CFMX 6 (see onSubmit())

....
<FORM NAME="CFForm_1" ACTION="../common/taskStepUpd.cfm" METHOD="POST" 
onSubmit="return _CF_checkCFForm_1(this)" TARGET="">
-------------------------------------------

GENERATED FORM TAG IN CFMX 7 (see onSubmit())

CF7 generates the javascript code (although it's different), but doesn't place 
the call to _CF_checkCFForm_1() in the onsubmit event text:

<form name="CFForm_1" action="../common/taskStepUpd.cfm" method="POST" 
onsubmit="document.forms[0].cmdNext.disabled = true; return CheckDefaults(); ">



Any ideas?


Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208037
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to