Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

How can I pass Javascript array object to child window

 
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
 
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.
 
Paddy spent all of his days in the O'Furniture back yard with this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic