RE: How to make submit buttons work in text format
by Klaas De Waele <klaas(at)gracegraphics.be>
|
| Date: |
Mon, 14 May 2001 09:30:33 +0200 |
| To: |
"'cbirds(at)earthlink.net'" <cbirds(at)earthlink.net>, "'HWG'" <hwg-techniques(at)mail.hwg.org> |
| |
todo: View
Thread,
Original
|
|
- You don't have a name defined in your <.form>
- Don't think you need this.document... only document.formname.submit();
Just some guesses, if it don't help, I'll look it up.
- Kayjey -
-----Oorspronkelijk bericht-----
Van: owner-hwg-techniques(at)hwg.org
[mailto:owner-hwg-techniques(at)hwg.org]Namens cbirds(at)earthlink.net
Verzonden: zondag 13 mei 2001 1:29
Aan: HWG
Onderwerp: How to make submit buttons work in text format
Hello,
I have multiple search forms on one page. They all work perfectly, but
ONLY when the return key is hit....
I have them set up for TEXT as the submit buttons with a bit of
javascript.
Here is an example of the onClick I found that doesn't seem to work:
<FORM method=GET action="http://www.google.com/search">
<A HREF="http://www.google.com/"><IMG SRC="images/google.gif" border="0"
ALT="Google" align="absmiddle"></A><br>
<input type="hidden" value="btnG">
<INPUT TYPE=text name=q size=15 maxlength=255 value=""><a
href="http://www.google.com/search"
onClick="this.document.form_name_here.submit();"><font
color="#990000"><b>.: Search :.</b></a>
</FORM>
The problem is that pressing the text only works part way...the browser
goes to the page but no results show. The ordinary google button has a
name="btnG" tag in it but I wasn't quite sure where that would
go....doesn't work if substituted in form_name_here.
Google code is available on the web if you want to check for accuracy...
thanks
********************
Claris Emailer 2.0v3
********************
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.