| Author |
How can I pass Javascript array object to child window
|
Serene Chow
Greenhorn
Joined: Jun 06, 2002
Posts: 4
|
|
Hi freinds, Through my client side applet I connect to Reuters server and retreive Stock names. From this applet I call javascript function and load all these Stock names into javascript array. Now I need to open a child window which should get populated with these stock names. Imean pass this javascript array to the child window to populate the stock names in a drop down select box. Can any one please help me how to do this. Thanks lot in advance, Serene
|
 |
Chris Stehno
Ranch Hand
Joined: Feb 26, 2001
Posts: 180
|
|
Hmmm.. I think you may be looking at it from the wrong angle. Try the reverse... try to get the array from the parent window. The child window has a property called opener which is a reference to the window that opened the current window. What you will want to do is create a function that returns your array in the parent window (such as getArray()) and call it from the child window using opener.getArray() which should allow you to use your array in the child window. Hope this helps.
|
- Chris Stehno, SCPJ
|
 |
 |
|
|
subject: How can I pass Javascript array object to child window
|
|
|