• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Tim Cooke
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
Saloon Keepers:
  • Piet Souris
Bartenders:

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

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Sheriff
Posts: 67762
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic