2

I am using html pages at front. I send information from html page to jquery for authentication to controller. Controller send back regarding information to jquery. How can i send this information to another html page. my script is written in separate js file. Please help how can i solve this. Thanks

Muhammad Ali Hassan
  • 960
  • 2
  • 12
  • 29

2 Answers2

2

I would use ajax to post the data to the server, and save the data in a session.

Kevin Seifert
  • 3,494
  • 1
  • 18
  • 14
2

If it is small pieces of information you wish to send to to another page, you could use querystring

You can then use it by checking for them with javascript (link)

If you don't know what a querystring is, it is the information you get in the form of:

www.website.com/somefolder/somepage?ID=124

where the part after the ? is the querystring.

(NOTE: This is only useful for single page value passes, and not safe for sensitive information)

Community
  • 1
  • 1
Amber
  • 812
  • 8
  • 21