CFFORM validation issue in CFMX 7

2005-05-31 Thread Bryan Stevenson
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


CFFORM validation issue in CFMX 7

2005-05-31 Thread Larry White
Yeah, prior to 7, CFFORM used to include a call to whatever function
you specified in the form onsubmit event after it did it's validation.
Now it just calls your onsubmit event and skips the validation. One way 
to get around it is in the form onsubmit:

return CheckDefaults(this); 

function CheckDefaults(x){

//Do whatever you want
//On the last line of CheckDefaults put
return _CF_check(x);
}

Where  has to be the form name.


~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208122
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


RE: CFFORM validation issue

2002-10-08 Thread Les Mizzell

I don't have access to the CF Administrator on the remote server, but I take
it you mean that there's a mapping problem that can be fixed on the remote,
right?

Thanks...

Les

: -Original Message-
: From: Mike Townend [mailto:[EMAIL PROTECTED]]
: Sent: Monday, October 07, 2002 6:16 AM
: To: CF-Talk
: Subject: RE: CFFORM validation issue
:
:
: Is there a virtual directory so that cfide/scripts exists as the CFForm
: javascript is now referenced rather than being included in the page like
: previous versions...
:
: HTH:

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



RE: CFFORM validation issue

2002-10-08 Thread Mike Townend

Yes... In CF5 when a CFForm function was called then all the javascript
was set to the top of the page..

Now it is referenced with the following by default...

SCRIPT LANGUAGE=JavaScript TYPE=text/javascript
SRC=/CFIDE/scripts/cfform.js/SCRIPT

So for it now to work you need an IIS virtual directory pointing to the
scripts directory from where the CFAdministrator is installed...

However if you wish to move where this file is... Move the js to
whereever you wish to reference it and then call the CFForm tag
something like...


CFFORM scriptSrc=/homer.js

/CFFORM


HTH

Mikey

-Original Message-
From: Les Mizzell [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, October 8, 2002 15:10
To: CF-Talk
Subject: RE: CFFORM validation issue


I don't have access to the CF Administrator on the remote server, but I
take it you mean that there's a mapping problem that can be fixed on the
remote, right?

Thanks...

Les

: -Original Message-
: From: Mike Townend [mailto:[EMAIL PROTECTED]]
: Sent: Monday, October 07, 2002 6:16 AM
: To: CF-Talk
: Subject: RE: CFFORM validation issue
:
:
: Is there a virtual directory so that cfide/scripts exists as the
CFForm : javascript is now referenced rather than being included in the
page like : previous versions... : : HTH:


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk
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



RE: CFFORM validation issue

2002-10-08 Thread Les Mizzell

: Now it is referenced with the following by default...
:
: SCRIPT LANGUAGE=JavaScript TYPE=text/javascript
: SRC=/CFIDE/scripts/cfform.js/SCRIPT


I had to get my ISP to actually put a COPY of the cfform.js script in the
directory along with my files, and then reference it in the form tag to get
it to work:

cfform action=loanApp_logic.cfm method=POST name=Survey
scriptSrc=cfform.js


Thanks for your assistance with this!

Les

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm



CFFORM validation issue

2002-10-07 Thread Les Mizzell

CFFORM validation testing great locally (Cold Fusion MX)

Once files are placed out on the server, validation is ignored.  I don't see
anything in the CFADMIN that would control this.


Ideas?

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



RE: CFFORM validation issue

2002-10-07 Thread Mike Townend

Is there a virtual directory so that cfide/scripts exists as the CFForm
javascript is now referenced rather than being included in the page like
previous versions...

HTH



-Original Message-
From: Les Mizzell [mailto:[EMAIL PROTECTED]] 
Sent: Monday, October 7, 2002 11:03
To: CF-Talk
Subject: CFFORM validation issue


CFFORM validation testing great locally (Cold Fusion MX)

Once files are placed out on the server, validation is ignored.  I don't
see anything in the CFADMIN that would control this.


Ideas?


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com