This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Form validation  RSS feed

 
Yatin Shah
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am trying to validate my html form using javascript. It is validating properly. after validation I am calling servlet page on that basis of that html page. My problem is, it is showing alert message is there is any field is missing and calling servlet page too with error. I want to be on html page if there is any field is missing. Can any one help me? Please find my code as follow:

[Edit: the code that was originally here has been removed by the author.]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which alert message is showing? There are many in your script.
 
Yatin Shah
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It showing message corresponding missing filed. and after clicking on ok button it execute servlet. I want it should be on same html page focusing that missing filed.
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Which alert message is showing? There are many in your script.


What script? I don't see any script posted. I think your eyes are going. ;)

Mark
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The original poster has removed the code from his original post.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!