! HELP REQUEST

L

louisianne

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.
 
L

louisianne

You can use the HTML element like so:

<input TYPE="image" SRC="http://www.siteaddress.com/submitimage.gif"
NAME="imagesubmit1" 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?
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="#999999">
<img border="0" src="IMAGES/search.png" width="45" height="31"></td>

<td height="31" width="160" valign="middle" align="center"
bgcolor="#999999">
<input type="text" name="searchbox" size="20" class="forminput"></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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top