CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 Submitting Multiple Forms with One Submit Button

Print topic Send  topic

Author Message
sgadson

Posts: 45
Posted: 10/29/2005, 2:12 PM

Hi,

Does any one know that javascript that is needed to submit multiple forms on a page using one submit button? In other words I would like one button to fire the Update event for multiple forms on one page.

.NET (VB)


_________________
Shawn :-)
View profile  Send private message
Stan
Posted: 10/31/2005, 6:58 AM

ASP.NET has only one form on the page. When you press submit, browser will send all controls to the server. You should call in server (not client) On Click event all desired handlers for other forms .

Stan
Napoleon N. Valdez
Posted: 12/22/2005, 3:49 PM

If you want to use javascript, you can make it so that when they click on the submit button, it will call a function that will submit all the forms. This works for IE. Not sure for any other browser.

<script>
function submitallforms() {
setTimeout('document.forms[0].submit()',100);
setTimeout('document.forms[1].submit()',200);
setTimeout('document.forms[2].submit()',300);
}
// End -->
</script>

<input type=button value="Submit" onclick="submitallforms();">

Napoleon N. Valdez
Senior Web Database Developer
Caspio, Inc.
Toll-free: (877) 820-9100 ext. 703
Local or International: +1.408.970.0500 ext. 703
Fax: 1.408.516.9925
Email:nvaldez@caspio.com
http://www.caspio.com

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.