Document Elements across Frames

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David Logan

    Document Elements across Frames

    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=frmBookViewV PDF name=frmBookVie wVPDF>
    <frameset FRAMEBORDER="0" FRAMESPACING="0 " BORDER="0"
    COLS="200,*">
    <frameset FRAMEBORDER="0" FRAMESPACING="0 " BORDER="0"
    Rows="*,1">
    <frame name="fraToolBa r" src="BookViewVP DFToolbar.asp">
    <frame name="fraContro l" src="BookViewVP DFControl.asp">
    </frameset>
    <frame scrolling="no" name="fraImage" src="blank.htm" >
    </frameset>
    </form>
    </HTML>

    The javasciprt for BookViewVPDFCon trol.asp

    function ControlWindow_o nload()
    {
    var cellPrev =
    window.parent.f raToolBar.docum ent.getElementB yId('tdPrevImag e');
    var newCell = document.create Element('td');
    var objParent = cellPrev.parent Node;
    newCell.innerHT ML = sPrevImage
    objParent.repla ceChild(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
  • Adrienne

    #2
    Re: Document Elements across Frames

    Gazing into my crystal ball I observed ibflyfishin@yah oo.com (David Logan)
    writing in news:d3af388a.0 405301301.12863 5fa@posting.goo gle.com:
    [color=blue]
    > 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=frmBookViewV PDF name=frmBookVie wVPDF>
    > <frameset FRAMEBORDER="0" FRAMESPACING="0 " BORDER="0"
    > COLS="200,*">
    > <frameset FRAMEBORDER="0" FRAMESPACING="0 " BORDER="0"
    > Rows="*,1">
    > <frame name="fraToolBa r" src="BookViewVP DFToolbar.asp">
    > <frame name="fraContro l" src="BookViewVP DFControl.asp">
    > </frameset>
    > <frame scrolling="no" name="fraImage" src="blank.htm" >
    > </frameset>
    > </form>
    ></HTML>
    >
    > The javasciprt for BookViewVPDFCon trol.asp
    >
    > function ControlWindow_o nload()
    > {
    > var cellPrev =
    > window.parent.f raToolBar.docum ent.getElementB yId('tdPrevImag e');
    > var newCell = document.create Element('td');
    > var objParent = cellPrev.parent Node;
    > newCell.innerHT ML = sPrevImage
    > objParent.repla ceChild(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
    >[/color]

    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
    The owner of this domain has not yet uploaded their website.

    Comment

    Working...