Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javascript child window

 
Richard Ellison
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have a javascript related question.Following is the function of the JSP:
Each row in the JSP has a text field and a button.On clicking the button,a pop-up window is opened.This pop-up window
presents the user with a list.The user may choose one by clicking on the appropriate radio button.The text box
in the parent window should be populated with the row selected.My problem is,the child window does not know the row on which
the button(to show the pop-up) was pressed.

I tried to pass the rownumber as a parameter in the window.open() event of the parent window.But the child window
was not able to read this parameter-says that it is undefined.Is there a way for the row number of the parent window to be passed
to the child window so that upon selection,the correct text field in the parent window is populated?

I look forward to hearing from you.

Thanks
Richard
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65223
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rather than doing this in a popup window, why not just use a positioned div to float a faux dialog on top of the rest of the controls? That way, you don't have to deal with more than one window.

Or, within the child window, the parent is available via the predefined parent variable.

If it's the request parameter you are having trouble with, you're going to have to do a much better job explaining what the issue is.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic