You can get a reference to the nd submit button either by number, or by
using the hash table:

If there are 22 fields in your form:

document.forms.pgMyPage.elements[22].submit()

or

document.forms.pgMyPage.elements["btnSave_onWebEvent(btnSave)"].submit()



Brendan Johnston
TeamND

                -----Original Message-----
                From:   Cho Cho Aung [mailto:[EMAIL PROTECTED]]
                Sent:   Wednesday, February 02, 2000 8:25 PM
                To:     [EMAIL PROTECTED]
                Subject:        [ND] Java Script and ND Submit button


                I'd like to know how to trigger the click event of
NetDynamics submit button from java script.
                With ND Reset button, all it requires is to call a method -
btnSave.click(). But
                         it cannot be done the same way with ND submit
button.  When I view the source of
                         HTML, for the ND Submit button it is referred to as

                'btnSave_onWebEvent(btnSave)' instead of just 'btnSave'.
                Is there a way to trigger the click event of the ND Submit
button from java script?


                Cho Cho Aung

        
_________________________________________________________________________

                For help in using, subscribing, and unsubscribing to the
discussion
                forums, please go to:
http://www.netdynamics.com/support/visitdevfor.html

                For dire need help, email: [EMAIL PROTECTED]

_________________________________________________________________________
To unsubscribe from this mailing list please send an email to:
[EMAIL PROTECTED]
Please remember to use the same email address you subscribed with.

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to