Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
    Bookmark Topic Watch Topic
  • New Topic

Java Script

 
Shrikumar Vadivelu
Greenhorn
Posts: 14
  • 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
Sheriff
Posts: 35977
422
Eclipse IDE Java VI Editor
  • 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
  • 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
Posts: 65660
129
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!