WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Accessing document inside a frameset from another frame, Scott Blanchard, October 23, 2003
     Re:Accessing document inside a frameset from another frame, Guilherme Blanco, October 24, 2003

Subject: Accessing document inside a frameset from another frame From: Scott Blanchard Date: October 23, 2003
I have a frameset that looks like this:  <FRAMESET rows=27,* border="0" FRAMESPACING="0" TOPMARGIN="0" LEFTMARGIN="0"  MARGINHEIGHT="0" MARGINWIDTH="0">   <FRAME name="x8toolbar" src="x8toolbar.html" scrolling="no" border="0"  frameborder="no" noresize TOPMARGIN="0" LEFTMARGIN="0" MARGINHEIGHT="0"  MARGINWIDTH="0"></FRAME>      <FRAMESET id="x8main" name="x8main" bordercolor="silver" cols="250,*"  border="1" frameborder="1" FRAMESPACING="2" TOPMARGIN="0" LEFTMARGIN="0"  MARGINHEIGHT="0" MARGINWIDTH="0">       <FRAME id="x8menus" name="x8menus" src="x8menus.html" TOPMARGIN="0"  LEFTMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0" FRAMEBORDER="0" BORDER="0"  scrolling="no"></FRAME>       <FRAME id="contentFrame" name="contentFrame"  src="../scripts/x8webtop_scripts/x8splash.htm" FRAMEBORDER="no" BORDER="0"  BORDERCOLOR="#CCCCCC" scrolling="no"></FRAME>     </FRAMESET> </FRAMESET>   And I want to have a function located in "x8menus.html" (which is in the frame whose id is "x8menus") that will insert  some code into a document contained inside the "contentFrame" frameset. But  no matter what I do, I cannot access anything that is located in that  document. Specifically, there is an iframe element in that document that contains a designMode editor. I want to get a pointer to that iframe element so that I can paste some code into it from the other frame.  Here is the alert I am trying to execute to no avail:  alert(top.parent.document.getElementById('contentFrame').window.document.edit_object.document.body.innerHTML);  Mozilla says ...  top.parent.document.getElementById('contentFrame').window HAS NO PROPERTIES


Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.

View All Messages
Back to WebFX