T
tattslotto1
Hi,
I'm am newbie trying to learn javascript/forms/php and I've
encountered this problem under gecko based browsers (mozilla, ns7).
basically I have this page which contains a form which is partly
generated by php code.
the form code is
<form onsubmit="return savedata();" name="frmLoc" method="POST"
enctype="multipart/form-data"
action="/locations.php">
The following is php generated with 41 being the record id:
<input type="image" align="middle" alt="Delete this record"
src="images/cancel.gif" onclick="return verifyDelete('41');">
and at the end of the form code I have
<input type="text" tabindex=1 name="txtLocation">
Now the problem is that when I press Enter at the txtLocation field,
on gecko browsers, I get the verifyDelete function called as if I have
clicked on the input image control. The strange thing is that it is
always the event for the first record that is being launched.
This doesnt happen under ie6 or Konqueror. The javascript console does
not show any messages at all.
Any ideas what I am doing wrong?
Thanks
T.
I'm am newbie trying to learn javascript/forms/php and I've
encountered this problem under gecko based browsers (mozilla, ns7).
basically I have this page which contains a form which is partly
generated by php code.
the form code is
<form onsubmit="return savedata();" name="frmLoc" method="POST"
enctype="multipart/form-data"
action="/locations.php">
The following is php generated with 41 being the record id:
<input type="image" align="middle" alt="Delete this record"
src="images/cancel.gif" onclick="return verifyDelete('41');">
and at the end of the form code I have
<input type="text" tabindex=1 name="txtLocation">
Now the problem is that when I press Enter at the txtLocation field,
on gecko browsers, I get the verifyDelete function called as if I have
clicked on the input image control. The strange thing is that it is
always the event for the first record that is being launched.
This doesnt happen under ie6 or Konqueror. The javascript console does
not show any messages at all.
Any ideas what I am doing wrong?
Thanks
T.