Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form submit cancel

Status
Not open for further replies.

dexeloper

Programmer
Oct 26, 2004
162
GB
I've built myself an Ajax framework that is working well. However I want the user to be able to hit the 'Enter' button for certain functions rather than click a button.

I'm aware of 'onsubmit' and 'return false' in classic form processing but that isn't relevant here.

Within the 'button' tag a I have an 'onclick' function but I never want to submit the form as such. All processing is done via Ajax requests. I want the form fields so I need the form.

Hope this makes sense. I want to cancel the automatic submission of the form when 'enter' is hit but there doesn't seem to be a way.
 
This is really a javascript question (rather than being AJAX specific) and would be much better resolved over there at forum216 .

Cheers,
Jeff

[tt]Jeff's Blog [!]@[/!] CodeRambler
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top