• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to pass field value in an IFrame to its parent

 
Yani Lee
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I use an Iframe to display a table of data and there is radio buttons in this iframe. So my user can select any of the radio buttons here. Then the submit button is in the main page that has the <iframe> tag. How do I make the submit button to "carry" the selected data from the iframe to my servlet? I think JavaScript is needed here, I can pass the selected value to the javascript in the iframe using on_click event on the radio button. But I don't know how to set this value to an input field of the outside/main page. Please help.
Thanks very much,
Yani Lee
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic