Re: onClick vs Enter Key
- From: sheldonlg <sheldonlg>
- Date: Wed, 04 Jun 2008 16:33:12 -0400
Mtek wrote:
On Jun 4, 10:28 am, sheldonlg <sheldonlg> wrote:a...@xxxxxxxx wrote:Hi,If this is inside a form where the action is specified as where you
I have a form with an image button like this:
<td><input type='text' name='search' id='search' value=''
size=30><BR><span class=body><center>Enter Email Address</span><BR></
td>
<td><a href='#'><img src='./images/search.gif' border=0
onclick='return getCustomer(search.email.value);'></a><BR><BR></td>
Problem is that the mouse click works fine. The enter key, once you
enter data and hit enter, nothing happens. I want it to work with
both the enter key AND the mouse......
Can someone help me out here?
Thanks!
really want the # to be, what happens if you change <img> to <input
type="image">?- Hide quoted text -
- Show quoted text -
If I change it to type = image, and no go. IE only performs the MySQL
update on the first time. And, although I've put echo statements in
the code and it looks like everything is updating, the actual values
in the database are never changed. I even do a COUNT(*) afterwards to
check and echo that result, and it says it changed, but never any
changes occus after the first time.......totally stumped on this one.
Are you using a MySQL database or are you using one like Oracle that requires and explicit commit?
.
- Follow-Ups:
- Re: onClick vs Enter Key
- From: Mtek
- Re: onClick vs Enter Key
- References:
- onClick vs Enter Key
- From: art@xxxxxxxx
- Re: onClick vs Enter Key
- From: sheldonlg
- Re: onClick vs Enter Key
- From: Mtek
- onClick vs Enter Key
- Prev by Date: Re: comp.lang.javascript FAQ - META 2008-06-04
- Next by Date: Re: Need JavaScript based drawing/signature box
- Previous by thread: Re: onClick vs Enter Key
- Next by thread: Re: onClick vs Enter Key
- Index(es):
Relevant Pages
|