By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,932 Members | 1,462 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,932 IT Pros & Developers. It's quick & easy.

CSS Equivalent of Frames?

P: n/a
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.

thanks

Oct 16 '07 #1
Share this Question
Share on Google+
7 Replies


P: n/a
On Oct 16, 9:46 am, rjames.cla...@gmail.com wrote:
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.

thanks
I don't thing this can be done just using CSS by itself. Sites that
have parts of pages reloading on demand use AJAX, which uses
javascript to alter elements on the fly.
http://en.wikipedia.org/wiki/Ajax_(programming)

Also, you might want to also check into the iframe element. It works
just like a frame, but is an element on a page, not a totally separate
file.
http://w3schools.com/tags/tag_iframe.asp

Cheers,
-KS

Oct 16 '07 #2

P: n/a
On Oct 16, 8:51 am, TonyV <kingskip...@gmail.comwrote:
On Oct 16, 9:46 am, rjames.cla...@gmail.com wrote:
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.
thanks

I don't thing this can be done just using CSS by itself. Sites that
have parts of pages reloading on demand use AJAX, which uses
javascript to alter elements on the fly.http://en.wikipedia.org/wiki/Ajax_(programming)

Also, you might want to also check into the iframe element. It works
just like a frame, but is an element on a page, not a totally separate
file.http://w3schools.com/tags/tag_iframe.asp

Cheers,
-KS
A word of caution on iframes. Some folks out there have iframe
blockers (that is to block advertisement), so if you're not sure of
your audience (i.e. www users), you may want to avoid them.

As for ajax, be sure to see if there are any libraries out there that
can make ajax easier. It's easy to make error that can make your app
insecure (such as inadvertently giving users access to your db through
bad code.)

Oct 16 '07 #3

P: n/a
On Tue, 16 Oct 2007 15:46:12 +0200, <rj***********@gmail.comwrote:
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.
You think, I'm trying to solve a HTML problem with CSS, so let's ask in
comp.lang.php?
Far better groups would have been:
alt.html
comp.infosystems.www.authoring.html
comp.infosystems.www.authoring.stylesheets
... and several others...

And as said, the only option without (i)frames is javascript (possibly
using an XMLHTTPRequest), for which I hope you'll ask questions in
comp.lang.javascript.
--
Rik Wasmus
Oct 16 '07 #4

P: n/a
On 16 Oct, 15:23, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
You think, I'm trying to solve a HTML problem with CSS, so let's ask in
comp.lang.php?
for which I hope you'll ask questions in
comp.lang.javascript.
You can hope, but on past form I'd expect the question to pop up on
comp.databases.mysql

Oct 16 '07 #5

P: n/a
In our last episode, <11**********************@e9g2000prf.googlegroups. com>,
the lovely and talented rj***********@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?
Oct 16 '07 #6

P: n/a
rj***********@gmail.com wrote:
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.

thanks

Yes, it can. Try a css newsgroup.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Oct 16 '07 #7

P: n/a
yeah, you are right.

But I get MUCH better answers out of this group.

I do mostly php programming and this is the group I have bookmarked.
If I had thought a bit more I would have posted on the css group.

bobc

On Oct 16, 1:15 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
rjames.cla...@gmail.com wrote:
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.
thanks

Yes, it can. Try a css newsgroup.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================

Oct 16 '07 #8

This discussion thread is closed

Replies have been disabled for this discussion.