• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to save Javascript values later to use in java program?  RSS feed

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this script. I want to use this individual value later in my java program for validation of results. How to do it. Or atleast can i save these values into the database???


output:
Country Code: XXXXXXX

Country Name: XXXXXXX

City: XXXXXXXXXX

Region: XXXXXXXX

Region Name: XXXXXXXXX

Latitude: XXXXX

Longitude: XXXXXXXXX

Postal Code: XXXXXXXXX

Thanks & Regards

 
Author and ninkuma
Marshal
Posts: 66676
167
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How much later in the program? After subsequent page loads? If so, then the most common means is to save them in the server-side session. How you do that depends on how you are powering your backend code. Servlets? PHP? Something else?

If you need to save it on the client side, then cookies is the most common way. If you have the luxury of only supporting the latest browsers, there's also HTML5 local storage.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!