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

How can I pass Javascript array object to child window

 
Serene Chow
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic