Firefox and Submit()

Domino Server 6.5.3FP1 with an application that works in IE but not Firefox.

Simply put, I have an action hotspot with the following code for the web (no code in the Client section).

submit()

Pretty straight-forward, huh? Works like a champ in IE but it’s a no-go in Firefox. What am I missing?

Subject: Firefox and Submit()

May be it needs the complete script

this.document.forms[0].submit();

HTH

Keshava

Subject: RE: Firefox and Submit()

Just tried that - didn’t work either.

Subject: RE: Firefox and Submit()

Skip “this” or skip “document”:

document.forms[0].submit();

or

this.form.submit();

The second one will only work if the button/link appears within the form to be submitted. The first depends on the form to submit being the first on the HTML document.

Subject: RE: Firefox and Submit()

Stan, thanks!

The document.forms[0].submit(); worked for me in IE and FF.

Funny how stuff that “always worked” in IE has issues in FF…

Subject: RE: Firefox and Submit()

A lot of the stuff that “always worked” in IE should never have worked – IE forgives a lot of mistakes, like not specifying what you want to submit. An HTML document can have multiple forms, so a bare submit() is really meaningless.