Alf Stockton wrote:
I have created an HTML form that contains an input type text field coded
as:-
<input type=text name="CardNumber" id="CardNumber"
onBlur="sendRequest('.$ClientData.",".$Event.',this.value)">
This calls an Ajax script that populates the rest of the HTML form.
This fields event is currently activated, in Firefox, via the TAB but
the user has requested that the activation be altered to Enter.
The problem I have is that Enter is the default action for the form and
I cannot think of a way to achieve what the user requires.
Suggestions please.
This means that not only do I want to "Prevent Enter From Submitting
Form" but also cause enter to call Ajax.
In Ajax I can then
if (windows.event.keyCode != 13) return; or similar.
--
Regards,
Alf Stockton www.stockton.co.za
Don't worry so loud, your roommate can't think.
My email disclaimer is available at www.stockton.co.za/disclaimer.html
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php