CSS Equivalent of Frames?
CSS Equivalent of Frames?
am 16.10.2007 15:46:12 von rjames.clarke
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
Re: CSS Equivalent of Frames?
am 16.10.2007 15:51:10 von kingskippus
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
Re: CSS Equivalent of Frames?
am 16.10.2007 16:06:19 von GameboyHippo
On Oct 16, 8:51 am, TonyV wrote:
> 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.)
Re: CSS Equivalent of Frames?
am 16.10.2007 16:23:15 von luiheidsgoeroe
On Tue, 16 Oct 2007 15:46:12 +0200, 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.
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
Re: CSS Equivalent of Frames?
am 16.10.2007 16:26:51 von Captain Paralytic
On 16 Oct, 15:23, "Rik Wasmus" wrote:
> 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
Re: CSS Equivalent of Frames?
am 16.10.2007 17:42:55 von Lars Eighner
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
Countdown: 462 days to go.
What do you do when you're debranded?
Re: CSS Equivalent of Frames?
am 16.10.2007 19:15:51 von Jerry Stuckle
rjames.clarke@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.
jstucklex@attglobal.net
==================
Re: CSS Equivalent of Frames?
am 16.10.2007 19:54:14 von rjames.clarke
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 wrote:
> 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
> ==================