HighDots Forums  

Dumb Post of the Day - Where Have I Gone Wrong?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Dumb Post of the Day - Where Have I Gone Wrong? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
stephen_t
 
Posts: n/a

Default Dumb Post of the Day - Where Have I Gone Wrong? - 06-28-2004 , 10:08 AM






This is quite possibly an idiotic post, with the answer to my question right
under my nose. However, I have looked and cannot figure out what I've done
wrong (admittedly, I know little about these particular things), so I seek YOUR
help:

Please go to http://www.mcaronline.com

See the search button in the upper right? The search feature works if you hit
the "Enter" key on your keyboard, but the button does not work if you click it.

Why is that and how do I fix it?


Reply With Quote
  #2  
Old   
Nicky_B
 
Posts: n/a

Default Re: Dumb Post of the Day - Where Have I Gone Wrong? - 06-28-2004 , 10:30 AM






Make sure the action for your button is submit and that it is within the same form as the textfield it's a simple small mistake to make and could be the problem.

Reply With Quote
  #3  
Old   
kim
 
Posts: n/a

Default Re: Dumb Post of the Day - Where Have I Gone Wrong? - 06-28-2004 , 10:33 AM



I think it's because your submit button is outside the form.

<form method="get" action="http://search.atomz.com/search/">
<input name="sp-q" size="15" maxlength="25">
<input type="hidden" name="sp-a" value="sp10027d50">
<input type="hidden" name="sp-p" value="all">
<input type="hidden" name="sp-f" value="ISO-8859-1">
</form>
</td>
<td width="71" align="right">

and here is your submit button... out side the form.

<input name="submit" type="image" value="Search"
src="images/search_bt.gif" alt="Search" align="middle" width="65"
height="27" border="0">
</td></tr>

HTH
Kim

stephen_t wrote:

Quote:
This is quite possibly an idiotic post, with the answer to my question right
under my nose. However, I have looked and cannot figure out what I've done
wrong (admittedly, I know little about these particular things), so I seek YOUR
help:

Please go to http://www.mcaronline.com

See the search button in the upper right? The search feature works if you hit
the "Enter" key on your keyboard, but the button does not work if you click it.

Why is that and how do I fix it?


Reply With Quote
  #4  
Old   
stephen_t
 
Posts: n/a

Default Re: Dumb Post of the Day - Where Have I Gone Wrong - 06-28-2004 , 11:37 AM



Well, that really seems like the culprit. But here's a bit of a curveball:

I placed the "search" button in a separate cell in order to make the form
field and the button align properly horizontally. I couldn't have these two
elements in the same cell; one or the other always wants to be on top. I could
NOT get them aligned like I have them now.

So, how do I sneak the submit action and/or search button into the form? I
tried moving the "</form>" tag AFTER the cell that contains the search button,
but that didn't work. Tried a few other things, as well (playing around with
table arrangement, etc.). No luck.

Any ideas?


Reply With Quote
  #5  
Old   
kim
 
Posts: n/a

Default Re: Dumb Post of the Day - Where Have I Gone Wrong - 06-28-2004 , 12:09 PM



Hi stephen,

You could use a nested table something like this:

<form method="get" action="http://search.atomz.com/search/">
<table width="141px" border="0">
<tr><td><input name="sp-q" size="10" maxlength="25"></td>
<td><input name="submit" type="image" value="Search"
src="images/search_bt.gif" alt="Search" align="middle" width="65"
height="27" border="0"></td></tr>
</table>
<input type="hidden" name="sp-a" value="sp10027d50">
<input type="hidden" name="sp-p" value="all">
<input type="hidden" name="sp-f" value="ISO-8859-1">
</form></td>
<td width="30" align="right">&nbsp;
</td>

I also changed the max width from 15 to 10...

Kim

stephen_t wrote:
Quote:
Well, that really seems like the culprit. But here's a bit of a curveball:

I placed the "search" button in a separate cell in order to make the form
field and the button align properly horizontally. I couldn't have these two
elements in the same cell; one or the other always wants to be on top. I could
NOT get them aligned like I have them now.

So, how do I sneak the submit action and/or search button into the form? I
tried moving the "</form>" tag AFTER the cell that contains the search button,
but that didn't work. Tried a few other things, as well (playing around with
table arrangement, etc.). No luck.

Any ideas?


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.