Thank you for your help! I guess I had been staring at it for too long, and didn't notice the extra line. Although in my generated page, the custom function is executed first, not last. Not that that causes any problems for me, I just thought that you'd
want to know.
       ...Damien

________________________________________
From: Pascal
Sent: Tuesday, June 15, 2004 10:51 PM
To: CF-Talk
Subject: RE: cfform and onSubmit

This is how to do it, but you can't use "this". Use
checkForm(document.LoadForm);

The generated page will still look like that, but you can see that
_CF_checkLoadForm(this) executes "return checkForm(document.LoadForm);"
as last command.

Pascal

> -----Original Message-----
> From: Bargiacchi, Damien [mailto:[EMAIL PROTECTED]
> Sent: woensdag 16 juni 2004 4:38
> To: CF-Talk
> Subject: cfform and onSubmit
>
> Hello,
>
> I am trying to get a cfform to use my onSubmit _javascript_.
> Currently the generated page has cf's own onSubmit. I have
> been trying to figure this out for a couple of hours now. Any ideas?
>
> Code:
> <cfform action="" name="LoadForm"
> checkForm(this);">
>
> Generated Page:
> FORM NAME="LoadForm" ACTION="" METHOD="POST"
> _CF_checkLoadForm(this)">
>
>
> Thanks,
> Damien
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to