! HELP REQUEST

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • louisianne

    #1

    ! HELP REQUEST

    This is robably old hat to you guys, but I am new to using Javascript,
    so please bear with me:

    I am trying to add a search box to a page and use my own button,
    rather than the one from the form tag. However, I'm not having a lot
    of luck in doing so.

    Would someone be kind enough to help me overcome my own ignorance?

    Thanks.

  • louisianne

    #2
    Re: ! HELP REQUEST

    On Wed, 27 Aug 2003 01:38:22 -0700, "klhaines" <klhaines@cox.n et>
    wrote:
    [color=blue]
    >You can use the HTML element like so:
    >
    ><input TYPE="image" SRC="http://www.siteaddress .com/submitimage.gif "
    >NAME="imagesub mit1" ALIGN="top" HEIGHT=50 WIDTH=50>
    >
    >This will cause the form to be submitted (to the form action) when clicked.
    >
    >Is that what you're asking?
    >[/color]
    Sort of ... I think. Bear in mind that I am so new to Javascript as
    to give new meaning to the word "green."

    Would it help if I provide a couple of lines of code? Here is what I
    have, thus far:

    <td height="31" width="45" valign="middle" align="center"
    bgcolor="#99999 9">
    <img border="0" src="IMAGES/search.png" width="45" height="31"></td>

    <td height="31" width="160" valign="middle" align="center"
    bgcolor="#99999 9">
    <input type="text" name="searchbox " size="20" class="forminpu t"></td>

    What I want to occur is, for the search string to be submitted when
    the user clicks on the search.png graphic.

    Maybe a better example of what I am trying to achieve would be to
    direct you to www.linux.org -- I want to click on my search.png
    "button" graphic the same as how this site uses the "login" button
    graphic to submit the form data.

    I tried to emulate their code, but I don't seem to have done it
    correctly.

    BTW, I want to thank you for the help.

    Comment

    Working...