• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How can I pass Javascript array object to child window

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic