This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to request a javascript var. for use in db query

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In an employe creation form, the user need to type in his/hers postalcode. I have defined a table where I store postalcodes and its associated cities.
When the user type in the postalcode, the textfield "city" should automaticly update itself to the appropiate city.
At the moment I'm apple to copy the postalcode typed in "postalcode", to the field "city", by the use of a javascript. This is run when the user exits the field "postalcode" (onBlur).
As I see it I need to create a variable to use in .jsp, then run my Postalcode query whit this appropiate variable value.
How do I make the query update itself without submitting the form (creating the user) ???
I would really appriciate the help, or inspiration anyone could add :-)
Best regards
I would challenge you to a battle of wits, but I see you are unarmed - shakespear. Unarmed tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!