Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes HTML, CSS and JavaScript and the fly likes where do you put frame code? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "where do you put frame code?" Watch "where do you put frame code?" New topic
Author

where do you put frame code?

Annette L'Heureux
Ranch Hand

Joined: Dec 07, 2000
Posts: 135
Talk about your most basic of basic questions. I'm trying to
play with some frames, and I'm just wondering in which file you
put the frame code.
If you have:
<FRAMESET COLS="25%,75%">
<FRAME SRC="whateverA.html">
<FRAME SRC="whateverB.html">
</FRAMESET>
In which of the 2 files do you put it in? Does it matter?
thanks!
Annette
bill bozeman
Ranch Hand

Joined: Jun 30, 2000
Posts: 1070
The frame code goes in a separate html file. So for you example, you are going to have 3 html files. One is the page you direct everything to, like index.html and this will have the code you wrote below. And then you have the two whateverA.html and whateverB.html files that load up in your index.html file.
Bill
Annette L'Heureux
Ranch Hand

Joined: Dec 07, 2000
Posts: 135
that makes sense. thanks!
(You'd think they would tell you that in all those tutorials you find on the internet!)
Annette
John Wetherbie
Rancher

Joined: Apr 05, 2000
Posts: 1441
If you are willing to part with some cash the O'reilly book Webmaster in a Nutshell has a good section on frames and a lot of other stuff.
If you buy it online from Amazon (via JavaRanch) you also help keep JavaRanch up and running.
John


The only reason for time is so that everything doesn't happen all at once.
- Buckaroo Banzai
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: where do you put frame code?
 
Similar Threads
Using Struts templates within HTML Frameset
Error Data Misssing
calling a html in a frame of html?
Html Frames
HttpClient and frames