Solved

Is it possible to set frames equal to each other?

Posted on 2004-10-01
9
150 Views
Last Modified: 2010-04-09
I have a page with a couple of frames, one of them is hidden.  What I need to do is when the hidden frame get populated, write that information to the other frame.  Is there something that I could do with the onload event of the hidden frame's page?  I don't want to just change the url from the non-hidden page.

Thanks,
    Mike
0
Comment
Question by:mkottmann00
  • 4
  • 3
  • 2
9 Comments
 
LVL 33

Expert Comment

by:knightEknight
ID: 12200526
is the other (non-hidden) frame supposed to be blank until the hidden frame is loaded?
0
 

Author Comment

by:mkottmann00
ID: 12200589
It's basically blank, I'll probably put some type of "processing" term on it.
0
 
LVL 33

Expert Comment

by:knightEknight
ID: 12200616
ok ... I suggest that when the hidden frame is loaded, you hide the non-hidden frame, and un-hide the hidden one.
Stand by, I'll code it up.

Are you using iframes or a regular frameset?
0
ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

 

Author Comment

by:mkottmann00
ID: 12200660
a regular frameset
0
 
LVL 33

Expert Comment

by:knightEknight
ID: 12200680
can you show me your frameset code?
0
 

Author Comment

by:mkottmann00
ID: 12200727
I actually have more than one frameset.  I should have stated that above, but I just wanted a general idea of how to do it.  The mainFrame is the one that will contain the "processing" page, while the hidden will be the hidden frame.


<FRAMESET border=0 frameSpacing=0 rows=125,* frameBorder=NO cols=*>
      <FRAME name="topFrame" src="topPage.jsp" noResize scrolling=no>
            <FRAMESET border=0 frameSpacing=0 rows=* frameBorder=NO cols=10,129,*,10,0>
                  <FRAME src="blankSide.html" noResize scrolling=no>
                  <FRAME name="leftFrame" src="menu.html" noResize scrolling=no>
                  <FRAME name="mainFrame" src="body.html" noResize>
                                                <FRAME src="blankSide.html" noResize scrolling=no>
                                                <FRAME name="hidden" src="blankSide.html" scrolling=auto>
                                </FRAMESET>
</FRAMESET>
0
 
LVL 33

Expert Comment

by:knightEknight
ID: 12202574
sorry, i have been pulled away at work and I won't be able to get to this ... and in fact, the more I think about it the less certain I am that it can be easily done with a regular frameset.
0
 
LVL 1

Accepted Solution

by:
MMabatig earned 250 total points
ID: 12205449
Not sure idf this is the way you want to go, but you can put a <div> in the non-hidden layer and dynamically populate it using Javascript:

function changeLayerContent(divName, content)
{
      var obj;
      if (navigator.appName == "Netscape") {
            // If the brower is Netscape
            obj = document.getElementByID(divName);
      } else {
            // Else, assuming IE
            obj = document.all(divName);
      }

      // If Object 'divName' cannot be found return false
      if(obj == null) return false;

      if ((navigator.appName == "Netscape") && parseInt(navigator.appVersion)==4) {
            // If the brower is netscape version 4
            obj.document.open();
            obj.document.write(content);
            obj.document.close();
      } else {
            // If the browser is IE or Netscape (Other than ver 4)
            if(obj == null) return false;
            obj.innerHTML = content;
      }
}

Haven't fully tested it, but Hope it helps.
-Mark
0
 
LVL 1

Expert Comment

by:MMabatig
ID: 12205459
Let me elaborate a bit.  It should be possible to access and alter a <div> tag in another frameset by placing the afunction in my previous post in the non-hidden frame, and calling:

 parent.framename.changeLayerContent(divname, content);

from the hidden frame.

0

Featured Post

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question