One slightly crooked solution I can think of (we settle for crooked
solutions if the functionality is important and if there is no elegant
alternative):
To have a hidden variable say hdSubmit in the form, set it to some value
like:
function doTheSubmit(form) {
form.hdSubmit = "Y";
form.submit();
return;
}
Inside this_onBeforeLoad() look at the value of hdSubmit to see if the
request was the result of a Submit and do here whatever needs to be done in
button_onSubmit.
Aby
TeamND
> -----Original Message-----
> From: Maite Lazaro Portugal [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 22, 1999 3:05 AM
> To: [EMAIL PROTECTED]
> Subject: [ND] JavaScript submit with NetDymanics 4
>
>
> Due to security issues we need to (we would like to) change the submit
> process to stop non-javascript browsers/users to do the
> submit and allow
> javascript enabled browsers to do it.
>
> We have tried to change the "<input type" from SUBMIT to
> BUTTON and then
> add the onClick event in "ExtraHTML". This works when the browsers is
> not javascript enabled 'cos the submit is never done, but when
> javascript is enabled again the submit is done and it returns to the
> same page.
>
> Here is the implementation:
>
> ...
> <script language="javascript">
> function doTheSubmit(form) {
> form.submit();
> return;
> }
> ...
> ...
> <input type=button name="button_onWebEvent(button1)" value="submit"
> onClick="doTheSubmit(this.form)">
> ...
>
> The other test was to left the "<input type" as SUBMIT and to add the
> onClick event, but with this solution the submit is done automatically
> by NetDynamics.
>
> Is there any other way to implement this?
>
> Thanks in advice.
>
_________________________________________________________________________
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]