How to use frameset html code?

BlueYonder

Flaming panties
Aug 13, 2008
2,660
49
0
New York Metro
How is the html <frameset> code used on a site for page capture? Like if you want the pages at a site to keep inside the same domain with a top frame?

I found the code online, but don't know how to implement this:

html>

<frameset cols="25%,*,25%">
<frame src="frame_a.htm" />
<frame src="frame_b.htm" />
<frame src="frame_c.htm" />
</frameset>

</html>

One coder I work with doesn't know how to use this, and the other coder I have long worked with pretty much ignores me, so I'm kind of scraping here being code-challenged.

The first coder asked for advice on this in IM, and a coder answered he could put it up for $2,000. A second coder offered the same service for $500. You two douchebags can stay away.

Any reasonable advice?
 


Overall pretty simple stuff.

Frames are kind of old school, I mean welcome to 1995 and geocities!

I think I get what your trying to do, have an area up top and below that have a page but always keep the bar on top. With frames you'd be looking at:

Code:
<frameset rows="25%,75%">
  <frame src="[B]this will be path to your bar code[/B]" />
  <frame src="[B]this will be path to the page you want to show[/B]" />
    </frameset>
The better way to do it these days is rock it with the iframe:

Code:
<body>
[B]this will be your code for the bar, the page will show underneath[/B]
<iframe src ="[B]this will be path to the page you want to show[/B]" width="100%" height="100%">
  <p>Your browser does not support iframes.</p>
</iframe>
</body>

Get it?

If not check these two pages out:
http://www.w3schools.com/TAGS/tag_iframe.asp
http://www.w3schools.com/HTML/html_frames.asp
 
  • Like
Reactions: BlueYonder
One coder I work with doesn't know how to use this

you've got to be fucking kidding me.. are you sure you hired a coder and not a monkey or something?

a coder answered he could put it up for $2,000. A second coder offered the same service for $500

even $500 is a fucking absurd price for putting together a freaking frameset/iframe ..
 
Overall pretty simple stuff.

Frames are kind of old school, I mean welcome to 1995 and geocities!

I think I get what your trying to do, have an area up top and below that have a page but always keep the bar on top. With frames you'd be looking at:

Code:
<frameset rows="25%,75%">
  <frame src="[B]this will be path to your bar code[/B]" />
  <frame src="[B]this will be path to the page you want to show[/B]" />
    </frameset>
The better way to do it these days is rock it with the iframe:

Code:
<body>
[B]this will be your code for the bar, the page will show underneath[/B]
<iframe src ="[B]this will be path to the page you want to show[/B]" width="100%" height="100%">
  <p>Your browser does not support iframes.</p>
</iframe>
</body>
Get it?

If not check these two pages out:
HTML iframe tag
HTML Frames

Thanks. +1 rep.
 
We still need framesets out there. Without framesets, how are you gonna cater to those still using ie4 or ie5 or Netscape?
 
How is the html <frameset> code used on a site for page capture? Like if you want the pages at a site to keep inside the same domain with a top frame?

I found the code online, but don't know how to implement this:

html>

<frameset cols="25%,*,25%">
<frame src="frame_a.htm" />
<frame src="frame_b.htm" />
<frame src="frame_c.htm" />
</frameset>

</html>

One coder I work with doesn't know how to use this, and the other coder I have long worked with pretty much ignores me, so I'm kind of scraping here being code-challenged.

The first coder asked for advice on this in IM, and a coder answered he could put it up for $2,000. A second coder offered the same service for $500. You two douchebags can stay away.

Any reasonable advice?

Like the others said, someone trying to charge you $500 or $2k for this, you need not ever talk to them again because they are totally anally raping you. If you coder has no idea what frames are the only thing you need to do is fire them immediately.

Depending what you need, I'd do it for next to nothing just cuz.
 
Like the others said, someone trying to charge you $500 or $2k for this, you need not ever talk to them again because they are totally anally raping you. If you coder has no idea what frames are the only thing you need to do is fire them immediately.

Depending what you need, I'd do it for next to nothing just cuz.
It's really insane what I'm being put through over this stupid thing, and I might have to take you up on your offer.

I actually understand the code itself, but don't know exactly where to incorporate it into the site, and would rather entrust it to a professional.
 
It's really insane what I'm being put through over this stupid thing, and I might have to take you up on your offer.

I actually understand the code itself, but don't know exactly where to incorporate it into the site, and would rather entrust it to a professional.

You put it right after the <body> but not any farther than the </body> tag.
 
I think it's the concept you are having trouble with, and please correct me if I'm wrong. What you have to do is place the frameset code you have in a new file and call it e.g. index.html. Then for each frame, you reference a separate file which contains the actual frame content.

So if in index.html, you are referencing e.g.

[high=html]
<frame src="header.html" />
<frame src="sidebar-left.html" />
<frame src="content.html" />
<frame src="footer.html" />
[/high]

, then you need these 4 files (header.html, sidebar-left.html, content.html, footer.html) to exist in the same directory as index.html. Each of these 4 separate files would be a part of the website, with index.html pulling them together and displaying them on a single page, each one in its own frame.

"frame src=..." means "frame source".

I hope this helps!
 
I'm also wondering how to display additional content inline, such as a banner display ad and perhaps a bunch of "share this with..." bookmarking links. Adsense would probably be a bad idea in a top frame because you really lose them once they click.

That's one thing I hate about Adsense: you can't use the target="_blank" attribute.