Re: onClick vs Enter Key



On Jun 4, 3:33 pm, sheldonlg <sheldonlg> wrote:
Mtek wrote:
On Jun 4, 10:28 am, sheldonlg <sheldonlg> wrote:
a...@xxxxxxxx wrote:
Hi,
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!
If this is inside a form where the action is specified as where you
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?- Hide quoted text -

- Show quoted text -

I am using MySQL. After the first execution, the database record is
changed. However, after that, even though the script passes through
the code and tells me that it has been changed, and it displays the
result of the select statement which checks the record, the records
has not been changed.

If I clear the temporary files and then try again, it will work again,
for the first time only......

.



Relevant Pages

  • Re: onClick vs Enter Key
    ... Mtek wrote: ... update on the first time. ... although I've put echo statements in ... Are you using a MySQL database or are you using one like Oracle that requires and explicit commit? ...
    (comp.lang.javascript)
  • Re: onClick vs Enter Key
    ... Mtek wrote: ... although I've put echo statements in ... Are you using a MySQL database or are you using one like Oracle that ... for the first time only...... ...
    (comp.lang.javascript)
  • Re: How to Distribute a New Version
    ... about preserving the test data that your users have already entered. ... The agency stuck me> with doing this project even though I am a legal assistant, not a database> developer! ... > Looks like I am stuck spending hours on the phone doing it the hard way> having users import tables, do append queries to add the data to the new> tables and then deleting the old tables. ... Front end has a "first time run" routine that>> establishes the links to the back end file automatically when first run. ...
    (microsoft.public.access.gettingstarted)
  • Re: SetOption "Default Database Directory"
    ... As I said it works except for the first time the database opens and is set ... even with the rowsource problem solved. ... Database and reopen it and the form, ...
    (microsoft.public.access.formscoding)
  • Re: Storing Password
    ... allow to create their password the first time they use the program. ... file, the Registry, etc.) there's always a chance a user could delete it. ... could store the password in the database itself, ... you could save the file to a network folder for ...
    (microsoft.public.vb.general.discussion)