ColdFusion Tutorial

Automatic submit a form without pressing enter button.

This example will automatically submit a form to another page without pressing enter button.

The JavaScript must be at the end in your form.

Name in your form action, must be the same as the JavaScript document.'name of form'.submit();

Example code:

<form action="test.cfm" NAME="Add_Update" METHOD="post">
<input name="first_name" type="hidden" value="Your first name">
<input name="last_name" type="hidden" value="Your last name">
<script language="JavaScript">
<!--
document.Add_Update.submit();
//--
</script>
</form>

test.cfm file:

<cfoutput>
#Form.first_name#<br>
#Form.last_name#
</cfoutput>

ColdFusion Tutorial test

Automatic submit a form without pressing enter button.

No test is available or implemented for this ColdFusion Tutorial.

No User Comments.

No User Comments, be the first one to write your comments?

Add your comments

Your Name*:
Your Email:
Site URL:
Site Name:
Comemt Title*:
Your Comment*:
Key Phrase*:
5uX
Your IP Address: 38.103.63.62
 

ScandicWeb is own by Scandic Systems LTD [UK] Company No. 5984000. All other trademarks and copyrights are the property of their respective holders.

[Home [Site Map [Privacy Statement [Site Feedback] [About ScandicWeb]


[ColdFusion [Flash [Search Engine Optimization [Graphics [Cascading Style Sheets (CSS) [JavaScript (JS) [Software]

Partner sites: ScandicSoft


Server time: 19. November 2008 Wednesday