Win a copy of Clojure in Action this week in the Clojure forum!
    Bookmark Topic Watch Topic
  • New Topic

Java Script

 
Shrikumar Vadivelu
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
I have 2 text fields. In the first text field i m entering 100. After pressing TAB button my Cursor comes to 2nd Text Field. In this case, First Text filed Value 100 should be updated into database. Samething for others Text fields. Previos Text filed value has to be updted. How can i do this in Java Script?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Shrikumar,
Welcome to JavaRanch!

You can't do this completely in JavaScript. You could use JavaScript to submit the form to the server. Then you would have to go to a servlet and do the JDBC to update the database. After that, you would repaint the page.
 
Makarand Parab
Ranch Hand
Posts: 121
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi
Have you read about AJAX [Aysnchronous Javascript and XML]technology, that can help you out.

Regards
Makarand Parab
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64182
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Shrikumar, please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Please continue any discussion of this topic in the HTML forum.
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic