This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin for Android App Development and have Peter Sommerhoff on-line!
See this thread for details.
Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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

 
Marshal
Posts: 67226
169
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.
 
Do not set lab on fire. Or this tiny ad:
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!