You are here: Re: CSS Equivalent of Frames? « PHP Programming Language « IT news, forums, messages
Re: CSS Equivalent of Frames?

Posted by Lars Eighner on 10/16/07 15:42

In our last episode, <1192542372.168871.323220@e9g2000prf.googlegroups.com>,
the lovely and talented rjames.clarke@gmail.com broadcast on comp.lang.php:

> Back when frames were in vogue, we would set up the navigation or menu
> bar to change the content of the main frame. This had the advantage
> of not requiring the whole page to reload. Just the target frame
> would reload.

> Can this be done in CSS? Every page I see in CSS the nav / menu bar
> causes the entire page to be reloaded. This seems inefficient.

If the first place, you are likely to get better answers in the CSS,
scripting, and html groups as ther is no php content in your question. Since
php is server-side, it simply cannot help you with what you are trying to
do.

One of the main reasons that frames are avoided is to prevent this sort of
thing because it makes it impossible to bookmark or to point to a particular
page configuration. However, with CSS and CSS with client-side scripting
you can do many things to manipulation hiding, color, and size to reveal
various parts of the page that is already loaded. This will not fetch a new
part and display it, but can be made to reveal different parts of the markup
that has already been fetched according to various mouse/keyboard events.

Reloading pages really should not be "inefficient" (although it really is
not clear what you might mean by that). Presumably your content is most of
your pages, and you propose to fetch that anyway. Most browsers by default
will cache recurring images such as typically occur in naviagation bars,
logos, site headlines and backgrounds. So refetch the navigation text
should amount to only a few extra bytes. Recomposing the page take some
client-side processing, but so would client side scripting. What tends to
slow things down on many sites is the inclusion of many iframe ads, which
requires connections to various servers for the iframes, and you can get
around that by using static ads in navigation areas.

--
Lars Eighner <http://larseighner.com/> <http://myspace.com/larseighner>
Countdown: 462 days to go.
What do you do when you're debranded?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация