Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
This versus document.forms
Message
From
12/07/2001 11:52:52
 
 
To
12/07/2001 11:36:58
General information
Forum:
Internet
Category:
Javascript
Miscellaneous
Thread ID:
00529433
Message ID:
00529769
Views:
7
>You can still use the syntax, even if you do not submit that particular form. Using "ONSUBMIT='return Go(this)'" will allow you to do any work you want (validation, field value changes, submit other forms, etc.) in the function being called. If you submit another form from within the Go function, then the submittal of the original form (the 'caller' of Go) will not happen, because the page will have lost its focus as soon as you submit another form. You can still avoid the submittal of the caller form even if you do not submit another form in Go by simply having the function Go return 'false'.
>
>function Go(frm){
> //do your work here, and submit another form
> document.form2.submit(); //this page is over once you call this
> return false; //just in case, to cancel original form submission
>
> //if you choose NOT to submit another form, for some reason...
> return false; //<- will cancel submission of original form
>}
>
Ok, I understand now. Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform