File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Disable form submit on carriage return in a text box for MAC systems

 
sripal jain
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have a problem that is specific to MAC systems . The problem is when i press enter button(carriage return ), when the focus is on text box the form gets submitted. Is there any way in which i can handle it not to submit and gets submitted only when the Submit button is clicked.
This is very urgent and important and if any body knows the solution do not delay and send that to me.
Thanks in Advance...
Sripal
 
Randall Twede
Ranch Hand
Posts: 4353
2
Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, you can use type="button" instead of type="submit"

<input type="button" on_click="document.myform.submit">

i believe that is the proper syntax where "myform" is the name of your form (remove the underscore).
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic