• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

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
[email protected]
Good Luck :-)
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic