By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,285 Members | 1,601 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,285 IT Pros & Developers. It's quick & easy.

Document Elements across Frames

P: n/a
Hello,

I am trying to write a page that displays a PDF document in right site
of the page and a navigation bar on the left side. The only way I
know to do this is using frames or iFrames and I am trying to be as
browser independent as possible. Here is what my frame page looks
like.

<HTML>
<HEAD>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> </HEAD>
<form id=frmBookViewVPDF name=frmBookViewVPDF>
<frameset FRAMEBORDER="0" FRAMESPACING="0" BORDER="0"
COLS="200,*">
<frameset FRAMEBORDER="0" FRAMESPACING="0" BORDER="0"
Rows="*,1">
<frame name="fraToolBar" src="BookViewVPDFToolbar.asp">
<frame name="fraControl" src="BookViewVPDFControl.asp">
</frameset>
<frame scrolling="no" name="fraImage" src="blank.htm">
</frameset>
</form>
</HTML>

The javasciprt for BookViewVPDFControl.asp

function ControlWindow_onload()
{
var cellPrev =
window.parent.fraToolBar.document.getElementById(' tdPrevImage');
var newCell = document.createElement('td');
var objParent = cellPrev.parentNode;
newCell.innerHTML = sPrevImage
objParent.replaceChild(newCell, cellPrev);
}

I've tried all kinds of combinations to do this but none have worked
does anybody have an suggestions? What I am trying to do is update
links from hidden frame to the other two frames without all three
frames making trips back to the server.

Thanks

David Logan
Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Gazing into my crystal ball I observed ib*********@yahoo.com (David Logan)
writing in news:d3**************************@posting.google.c om:
Hello,

I am trying to write a page that displays a PDF document in right site
of the page and a navigation bar on the left side. The only way I
know to do this is using frames or iFrames and I am trying to be as
browser independent as possible. Here is what my frame page looks
like.

<HTML>
<HEAD>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> </HEAD> <form
id=frmBookViewVPDF name=frmBookViewVPDF>
<frameset FRAMEBORDER="0" FRAMESPACING="0" BORDER="0"
COLS="200,*">
<frameset FRAMEBORDER="0" FRAMESPACING="0" BORDER="0"
Rows="*,1">
<frame name="fraToolBar" src="BookViewVPDFToolbar.asp">
<frame name="fraControl" src="BookViewVPDFControl.asp">
</frameset>
<frame scrolling="no" name="fraImage" src="blank.htm">
</frameset>
</form>
</HTML>

The javasciprt for BookViewVPDFControl.asp

function ControlWindow_onload()
{
var cellPrev =
window.parent.fraToolBar.document.getElementById(' tdPrevImage');
var newCell = document.createElement('td');
var objParent = cellPrev.parentNode;
newCell.innerHTML = sPrevImage
objParent.replaceChild(newCell, cellPrev);
}

I've tried all kinds of combinations to do this but none have worked
does anybody have an suggestions? What I am trying to do is update
links from hidden frame to the other two frames without all three
frames making trips back to the server.

Thanks

David Logan


What you're doing is basically illegal, and no wonder it does not work.
The form element _must_ be inside of a body element. You could put the
form element in one of the frame documents, which would mean there would
only be one trip to the server.

--
Adrienne Boswell
Please respond to the group so others can share
http://www.arbpen.com
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.