Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Frames

Posted on 1999-07-28
10
Medium Priority
?
193 Views
Last Modified: 2010-04-09
I have made a page built of frames and need to change the contents of a certain frame when loading a .html file into another. I know it can be done by adding something to the body tag but I don't remember what...
0
Comment
Question by:jonassondaniel
[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
  • 5
  • 4
10 Comments
 
LVL 4

Expert Comment

by:siabod
ID: 1852530
In your <A HREF=".." ....> tag you can place the command TARGET="framename"

<A HREF="next.html" TARGET="content">Click</A>

Is that what you are looking for ?
0
 

Author Comment

by:jonassondaniel
ID: 1852531
I know this but I'm looking to load a .html file (file2.htm) into a frame when opening another .html file (file1.htm). I did this a couple months ago by adding something inside the body tag of the file1.htm file... Hmmm I really don't know how to explain it in another way :-( I hope that someone will understand what I mean.
0
 
LVL 4

Expert Comment

by:siabod
ID: 1852532
You mean this ?

<SCRIPT LANGUAGE="JavaScript">
<!--
   parent.FRAMENAME.location='file2.htm';
//-->
</script>

within the <BODY>..</BODY> tags, then file2.htm will be loaded at the place of FRAMENAME

0
Industry Leaders: 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!

 
LVL 4

Expert Comment

by:siabod
ID: 1852533
Forgot to add...this must be done in file1.htm

<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!--
   parent.FRAMENAME.location='file2.htm';
//-->
</script>

...whatever code you have more....

</BODY>
0
 

Author Comment

by:jonassondaniel
ID: 1852534
I want to do this without using a java script...
In the body tag of file1.htm, something like:
load(file2.htm) target(MySecondFrame)...
0
 

Expert Comment

by:julio_exp
ID: 1852535
Reload parent Frame.

0
 

Author Comment

by:jonassondaniel
ID: 1852536
I want to do this without using a java script...
In the body tag of file1.htm, something like:
load(file2.htm) target(MySecondFrame)...
0
 
LVL 4

Expert Comment

by:siabod
ID: 1852537
in frame1.htm :
<BODY OnLoad="parent.FRAMENAME.location='file2.htm';">

perhaps?
0
 

Author Comment

by:jonassondaniel
ID: 1852538
that was exactly what I was looking for!
propose answer again so that I can reward you!
0
 
LVL 4

Accepted Solution

by:
siabod earned 200 total points
ID: 1852539
The answer is 42
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Find out what you should include to make the best professional email signature for your organization.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

715 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