• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

How can 2 html pages communicate?

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I've a parent HTML page from which i'm invoking a child window (html) and i need to both these pages to communicate with each other. The child window has a certain set of codes which when selected should populate a combo box in my parent html window.
How do i go abt doing this? plz help me
Thanking you in advance...
Aman Rustogi
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One way you could do it is make the child a <DIV> or a <SPAN> and hide it until you need to use it. That way all of your code is in the same page and you can access various elements just by referencing their names or IDs.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Aman Rustogi:
Hi,
I've a parent HTML page from which i'm invoking a child window (html) and i need to both these pages to communicate with each other. The child window has a certain set of codes which when selected should populate a combo box in my parent html window.
How do i go abt doing this? plz help me
Thanking you in advance...
Aman Rustogi


Hi there
If your using javascript, couldn't you just use the
opener object to target the parent window?
Jaime
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jamie
You can use the opener.windowname.document.all(nameofcontrol).additem theitem
to populate your combo box one at the time.
if for some reason this doesnt work let me know
luchirodri@earthlink.net
Good Luck :-)
 
He puts the "turd" in "saturday". Speaking of which, have you smelled this tiny ad?
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic