Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run CFfunction after clicking "submit" form button 1

Status
Not open for further replies.

edwilli

Programmer
May 22, 2003
33
US
I would like to run an embedded cold fusion function after the user clicks the "submit" button on a form. I tried listing the function name in the onSubmit attribute of the Input tag, but that merely causes the function to run as the page is loaded.

Is there any way to run the function short of placing it on a separate page and then calling that page?

Thank you in advance,

Eric
 
Eric,

ColdFusion functions don't run on the client. You have to call a CFM page with the function, or, if you absolutely must have it happen on the client side, write the function in Javascript.

Good luck,

Phil Hegedusich
Senior Web Developer
IIMAK
-----------
Boy howdy, my Liberal Studies degree really prepared me for this....
 
Thank you for the tip. You saved me from days of fruitless searching and nagging doubts.

Eric
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top