File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Java Script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Reply locked New topic

Java Script

Shrikumar Vadivelu

Joined: Sep 14, 2005
Posts: 14
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

Joined: May 26, 2003
Posts: 32820

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.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Makarand Parab
Ranch Hand

Joined: Dec 10, 2004
Posts: 121
Have you read about AJAX [Aysnchronous Javascript and XML]technology, that can help you out.

Makarand Parab
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63548

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.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Java Script
It's not a secret anymore!