• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can javascript talk with sessions?

 
Gaurav Chikara
Ranch Hand
Posts: 412
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have to popup a window which wants some values to be displayed in its input fields from some session variables
In other words suppose I enter some values in popup page first time and second time if i want to open the same popup page i want to retrive the values stored in session variables in the same pop up page for editing?
for me it seems totally unfeasibla and impossible to me as how can a javascript retrive a session variable
forget JSP's i m using a simple HTML?
Moderators will you throw some light on it?
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only way you can access a session variable in any sort of browser window is to generate the window contents dynamically on the server each time it is requested, and build it to contain the correct data from the session. Once some HTML is built it is essentially static and cannot access any server-side data.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic