Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fiasco of Frames - HTML Continued 2

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Continued from the previous post. This is what the mainpage (homepage) is coded:

Sara,

<HTML>

<HEAD><TITLE>Bank One</TITLE></HEAD>

<FRAMESET ROWS=&quot;30,220,*&quot; BORDER=0>

<FRAME SRC=&quot;bluehelp.html&quot; SCROLLING=no>

<FRAME SRC=&quot;digit.html&quot; SCROLLING=no>

<FRAME SRC=&quot;bluedrop.html&quot; SCROLLING=AUTO>

</FRAMESET><noframes></noframes>

</HTML>

As you can see, there are three frames on the main page, and when I click on a link in one of them, a new page is loaded but only in that specific frame. We are all aware of this fiasco with frames, so are there any new codes (c'mon we're in 2001 already) that will make the whole mainpage change once the link inside the specific frame is clicked upon?

HTML at its best.
joel

 
I know there is a way to do it. I've seen it. I swear I've seen it done.

Oh yeah, bmgmusic.com does it! 2 frames, left and right, and when you click on the member center, it loads 2 NEW frames. ~Javrix

If you gave an infinate number of rednecks, an infinate number of shotguns to shoot at an infinate number of street signs, they would eventually write Romeo and Juliet in braille.
 
Try adding target=&quot;_parent&quot; or target=&quot;_top&quot; to your links. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Hey, I've got a piece of information that might solve the puzzle. I clicked on a link that goes to and the whole page changes. This is what I'm looking for!!!! Perhaps its not the mainpage, but a code for the page you link upon, like Dynamicdrive.com! Also, even for example will load its entire page without it being locked in my frames! Sara, or others, tell me a bit about this great discovery. Because obviously there is a code that overcomes this fiasco.

html at its best
joel
 
come on this is like basic html here..no offence I just can't believe that people at an html forum don't know frames you need this:

Code:
<html>
<head>
<title>My Page</title>
</head>
<frameset cols=20%,80%>
<frame src=&quot;left.html&quot; name=&quot;leftside&quot;>
<frame src=&quot;right.html&quot; name=&quot;rightside&quot;>
</frameset>
<body>
</body>
</html>

this is your frameset, make this your home page

then in your left side links you put
Code:
<a href=&quot;whatever.htm&quot; target=&quot;rightside&quot;>click me</a>


-Greg
 
She wants the entire page to load, not just the left side. ~Javrix

If you gave an infinate number of rednecks, an infinate number of shotguns to shoot at an infinate number of street signs, they would eventually write Romeo and Juliet in braille.
 
hi guys,

how about alittle javascript to add to the fun...try this

function updateframe()
{
parent.main.location.href=&quot;ReportStatus1.asp&quot;
parent.idx1.location.href=&quot;Blank_ndx.htm&quot;
}
Where main is the name of the frame, idx1 is the name of a frame and the file in quotes is the file that loads inthe frame...this runs off of a link to another page like below...

<A href=&quot;javascript:updateframe()&quot;>Status Report</a>

this load the two pages simultaneously into the two frames...you should be able to convert this to add the third frame easily...

Bastien
 
no she said the frame was loading in the one that you click the link in, she wanted to know how to get it to load somewhere else...
 
Is anyone paying attention ?!!
Tsdragon already gave the answer ! TARGET=&quot;_TOP&quot; will load any document you link to in the entire browser window. If you specifically want to load into a part of your screen, make sure that part is a frame and it has a unique name. Use that for a target and you're done.
TARGET=&quot;_PARENT&quot; will load into the parent frame of the frame the link contains; if you have nested framesets, this will be the next frame that encompasses your current one; if you have only one single frameset, the browser window is the parent.

Regards,
Ronald.
 
Maybe the problem is that what I said was too short and simple, so it was just overlooked. I should have taken two paragraphs to say it! :) Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
what do you think the javascript does??? In my page I have three frames:

When I click the link in one frame theother two frames are loaded with other pages than what currently sit in the browser....
 
oh...there is an easier way to do this but it might help other more skilled people relize what you need to do...

make your link <a href=&quot;#&quot; onClick=&quot;break()&quot;>click to load new frames</a>

then in the head put:

Code:
<script language=&quot;javascript&quot;>

function break() {

     //break frames

     top.location.href = self.location.href
 
     //new frameset

     window.location = &quot;new framset.htm&quot;
}
</script>

like I said there is an easier and smoother way to do that..but that might help someone figure it out...

-Greg :-Q



 
Bastien,

i'm sure it does; i'm a yutz at javascript. That's why i focused on a simple, non-javascript application of standard HTML.

Regards,
Ronald.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top