[Javascript] Form submission problem

TomMallard mallard at serv.net
Mon Aug 20 12:36:26 CDT 2001


----- Original Message -----
From: "Lau" <lau at goldenweb.com.au>
To: <javascript at LaTech.edu>
Sent: Monday, August 20, 2001 8:17 AM
Subject: Re: [Javascript] Form submission problem


> I'm using the <a
href="javascript:window.document.generate.submit();">submit</a> format in a
framed
> page without any problems.
>

The original had <a href="javascript:document.generate.submit();">submit</a>

Small point, but, that's the code that'll give you problems at times if it's
nested in things. Lau is using window.document, just using document is an
implicit to "window" but that's not always what you want in nests of
objects. Using this.document works to scope to the page in these cases.

tom mallard
seattle




More information about the Javascript mailing list