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 |
 |
 |
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
|
|
|
 |
|