Re: Opening a page & submitting a form at same time, Lo-tech style
by "Paul Roberts" <roberts_paul(at)bigfoot.com>
||Sun, 2 Dec 2001 12:31:37 -0000
||"HWG Techniques" <hwg-techniques(at)hwg.org>
OK lateral thinking
<.form action=".http://localhost/test.html" method="get"> <.input
will take you to the next page so either
1. add an onclick js to the submit button
2. write the form action with a js and have the plain redirect form tag as a
----- Original Message -----
From: "Complex" <complex_hwg(at)yahoo.com>
To: "HWG Techniques" <hwg-techniques(at)hwg.org>
Sent: Thursday, November 29, 2001 8:38 PM
Subject: Opening a page & submitting a form at same time, Lo-tech style
> I am trying to open a page and submit a form with one click of a submit
> button or link.
> That would be easy, but I am also making the following restrictions:
> 1) Don't use the CGI to open the web page, because the ISP's server
> has had problems in the past and not returned the "load this page"
> result in a reasonable amount of time.
> running into some weird JS problem that I haven't identified.
> required, but only if I really really have to.
> This is my failed attempt (I changed the file names for brevity):
> < a href="destination.html"
> onClick="Trade_Info4Downloads.submit(); return true;">
> < img src="arrow4.gif">< /a>
> That will open the destination page, but it doesn't submit the form.
> You can see the above script at:
> It seems like the link is acting before the onClick handler can act. I
> also tried putting the submit method in the body tag's onUnload
> Hmmmm, I can't tell if submit() is working at all!
> Ugh. Can someone please tell me how I should go about this? (Assuming
> there's a way other than telling the user what I require of them)
> Do You Yahoo!?
> Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA