Here's one suggestion:

Create a hidden field in your page eg. hdSubmit. Then in your javascript
code where you want to do the submit, do this

        // assuming the submit button is called btSubmit
        document.pgFormName.hdSubmit.name="btSubmit_onWebEvent(btSubmit)"

before you do your

        document.pgFormName.submit()  

ND looks in the submitted name-value pairs for the web event to trigger.
When you click on the submit button, a separate name-value pair with the
name of the submit button is generated. But if you submit the form through
javascript, this extra name-value pair is not generated and therefore you
need to create the hidden field to help you generate the extra name-value
pair.

You only need to set the name of the hidden field because ND only look at
the name and ignores the value.

> -----Original Message-----
> From: Mary Dignam [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, July 16, 1999 9:42 AM
> To:   DARREN KHOO, CUSD
> Cc:   'NetNewGroup'
> Subject:      RE: [ND] How to create a new session only on successful
> login?
> 
> Hi Darren
> 
> You sound like your ND knowledge is good.
> 
> I wanted my Javascript client-side code to activate a click event (based
> on a 30 secs timeout)
> on an ND submit button,
> 
> ND named the button something like onSubmitWeb(Submit, ....)
> 
> How do I reference this in Javascript?
> Normally it would just be document.pgFormName.submit()  or
> document.pgFormName.Button.click()
> 
> Thanks
> Mary
> 
> 
_________________________________________________________________________

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