Connecting Tech Pros Worldwide Help | Site Map

An alternative to framesets?

Newbie
 
Join Date: Jul 2008
Location: Lake Oswego, Oregon
Posts: 6
#1: Jul 24 '08
So I was wondering, what possible replacements are there for the frameset? Because I just want to have my menu and article column be static and not have to be reloaded again, all I really want to be changed is the main content in the page. I understand framesets are, and have been looked down upon for quite some time; quite litterally I don't like them myself. Is it possible to make a div with the contents of that div being a DHTML file?

I want to find an alternative to framesets, while still having relatively small amounts of code, and not having to go through 8-12 pages when I want to edit the menu or articles column.

help?
tharden3's Avatar
Site Addict
 
Join Date: Jul 2008
Location: Ocala, FL (United States)
Posts: 817
#2: Jul 25 '08

re: An alternative to framesets?


can't you solve this by experimenting with the static/absolute/relavtive/fixed functions? I guess maybe you could put those in combination with a div, but I'm not sure. You'd have to try it I guess.
Expert
 
Join Date: Aug 2007
Posts: 674
#3: Jul 25 '08

re: An alternative to framesets?


There isn’t any direct replacement for a frameset. If you’re looking to include one HTML document within another, without using a frameset, it is not possible. You cannot divide your HTML document through HTML alone. Yes, this incurs bandwidth penalties when parts of your site are unchanging. You can reduce the penalty by properly using CSS and keeping the HTML to markup only.

With larger sites, the pages are compiled on the fly. This is done with the help of server side programming. If you’re looking for a pure HTML solution, you’re out of luck.

To keep a webpage static and reload only a portion of it, AJAX can be used. But this is not like HTML either. A significant amount of programming and work must be done on both the server and client side, and you need to have a certain level of technical expertise.
Newbie
 
Join Date: Jul 2008
Location: Lake Oswego, Oregon
Posts: 6
#4: Jul 27 '08

re: An alternative to framesets?


Quote:

Originally Posted by oler1s

There isn’t any direct replacement for a frameset. If you’re looking to include one HTML document within another, without using a frameset, it is not possible. You cannot divide your HTML document through HTML alone. Yes, this incurs bandwidth penalties when parts of your site are unchanging. You can reduce the penalty by properly using CSS and keeping the HTML to markup only.

With larger sites, the pages are compiled on the fly. This is done with the help of server side programming. If you’re looking for a pure HTML solution, you’re out of luck.

To keep a webpage static and reload only a portion of it, AJAX can be used. But this is not like HTML either. A significant amount of programming and work must be done on both the server and client side, and you need to have a certain level of technical expertise.

Thanks ^^, although I am not looking for a pure HTML answer. As of now, I am currently teaching myself javascript and PHP. However my skills of both languages as of now are remarkably low. How would I accomplish this with CSS?
Expert
 
Join Date: Aug 2007
Posts: 674
#5: Jul 27 '08

re: An alternative to framesets?


Quote:
How would I accomplish this with CSS?
I think you misunderstand me. CSS does not present you an alternative to framesets. I mentioned CSS as one way to reduce the bandwidth penalty of sending out similar content. If two pages use the same CSS file, said CSS file won't be requested twice, saving you a bit of bandwidth.
Newbie
 
Join Date: Jul 2008
Location: Lake Oswego, Oregon
Posts: 6
#6: Aug 5 '08

re: An alternative to framesets?


Quote:

Originally Posted by oler1s

I think you misunderstand me. CSS does not present you an alternative to framesets. I mentioned CSS as one way to reduce the bandwidth penalty of sending out similar content. If two pages use the same CSS file, said CSS file won't be requested twice, saving you a bit of bandwidth.

okay, thanks ^^. Well, currently I am learning Ajax so, maybe I'll be able to figure out a way through that. What do you think?
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#7: Aug 5 '08

re: An alternative to framesets?


That's one way assuming everyone has JavaScript enabled. On the server-side, you could use SSI Server-Side Includes, if supported, or use the server-side language to include the files on each page, e.g. header, footer.
Newbie
 
Join Date: Jul 2008
Location: Lake Oswego, Oregon
Posts: 6
#8: Aug 15 '08

re: An alternative to framesets?


Quote:

Originally Posted by acoder

That's one way assuming everyone has JavaScript enabled. On the server-side, you could use SSI Server-Side Includes, if supported, or use the server-side language to include the files on each page, e.g. header, footer.

I need to learn more about SSI, and also couldn't you create a server where all the necessary resources are installed there, and utilzed there? So if say a spider of the web were to come to the site, they wouldn't need to have everything installed.

how would that effect the loading time?
I hope that the users don't have java disabled.
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#9: Aug 16 '08

re: An alternative to framesets?


Server-side Includes should probably be enough for your requirements. If you need something more advanced, use a server-side language.
Reply


Similar HTML / CSS bytes