aspose file tools
The moose likes JSP and the fly likes How can I pass Javascript array object to child window Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "How can I pass Javascript array object to child window" Watch "How can I pass Javascript array object to child window" New topic
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How can I pass Javascript array object to child window
 
Similar Threads
java to javascript communication
How to close a child window through the servlet?
Netui, Javascript, and child windows
Get and pass parameter between multi jsp
parameter from jsp to javascript function?