Solved

Is it possible to set frames equal to each other?

Posted on 2004-10-01
9
153 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
JQuery conflicts/syntax issue 4 32
Anyone familiar with PhotoSwipe? 3 42
Html using "Or" in condition 3 42
center text in div with CSS3 2 30
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

751 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