Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access parent page from child page (inserted by OBJECT tag)

Status
Not open for further replies.

EugenePaliev

Programmer
Jul 18, 2001
537
UA
Hi everybody.

Situation: I'm using IFRAME tag for inserting one HTML page (child) into another page (parent). It works and can be programmed in both directions well (parent > child; child > parent).

However I want to use STRICT doctype which doesn't allow IFRAME tag, but OBJECT instead. I can do it easy, and can access child page from parent page by JS, BUT...

PROBLEM: I can't access parent page from child page using JavaScript in IE6. In non IE browsers - easy - "top" or "parent" represent parent page. But in IE it still represents child page. And no way to reach parent page and its objects, functions, etc... :(

Please, if you know any way how to achieve this - your help would be GREATLY appreciated! If you even know it's not possible at all - that would be helpful too (I'll just stay with IFRAMEs).

Good Luck! :)
 
Hi

Some time ago I read an article mentioning a problem with the Explorer + [tt]object[/tt] + XHTML combination. If you use XHTML, maybe changing to HTML Strict will be enough.

Feherke.
 
Hi Eugene,

did you manage to figure this one out, because I'm trying to do something similar. I'm trying to use an <object> as like a frame and basically want to load a page into another <object> from a link inside the first <object> on the same page, and am having a lot of trouble trying to reference another object on the same page.

Thanks
 
Hi tjw,

I've spent a lot of time fighting with loading page thru OBJECT tag but finally IFRAME won... I could manage HTML file loaded by OBJECT tag in most browsers (FF, Opera, Chrome) in both ways: Parent > Child and Child > Parent. But in IE6 (and I'm sure IE7, IE5, IE4) I could only access Child page from Parent, but COULD NOT access Parent from Child...

So I'm still using IFRAME tag...

If don't need to access Parent page's properties, objects and functions - I think you may use OBJECT tag.

Good Luck! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top