This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting stored values from form

 
Venkat Aditya
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is there any way that we can get form values back to same page from navigated page. ie parent page values + (opens pop up) pop values to parent values
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can do this with JavaScript. When a popup window is opened from a parent window, you can get a reference to the parent window with the vairable window.opener. Once you have this reference, you can use it to transfer values from the popup to the parent. For example, suppose I have a hidden field named foo in my parent window and I have a text field named bar on my popup window. I can set the value of foo by executing the following JavaScript code in my popup window:

[ September 13, 2007: Message edited by: Merrill Higginson ]
 
Venkat Aditya
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes i tried the same way but i need to save the values from the form bean but not thru the fields ie i can set these values to some fields from page 2 to page 1 but i am not useing any textbox or fields this is simple collection from form which will write to page
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vld,

Please check your private messages. You can do so by clicking on My Profile
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm afraid you've lost me. At this point, I have no idea what it is you're trying to accomplish. Could you try and explain it again as clearly as possible?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic