W3C home > Mailing lists > Public > www-html@w3.org > June 2005

Re: Divs and frames...

From: Joachim Ekstrand <swedieman@gmail.com>
Date: Sat, 18 Jun 2005 16:47:55 +1000
Message-ID: <d66d52cc05061723477e3fe584@mail.gmail.com>
To: www-html@w3.org

All right...
I been looking around and it looks like iframes will solve my problem.
Guess the only disadvantages are (like always when using frames) that
you will only get the URL to the page containing the frame so it will
be problems bookmarking a specific page on the site. And also that
search engines have problems looking "inside" frames.
Are there any more true disadvantages?

Is it possible at all to create a web page without having to write
redundant code (if using a menu or similar) and without having to use
Using some kind of server side scripting (like PHP) will let me get
rid of the redundancy when coding but it will generate the same
redundant code for the browser to read (and download). And also, using
scripting is good when you actually NEED it but I prefer to not use
when I don't have to.

So, is this all just a question of compromising?


On 6/14/05, Andrew Clover <and@doxdesk.com> wrote:
> > Or is there already a good way to achieve a behaviour somewhat like this?....
> You do know about iframes don't you?
> --
> Andrew Clover
> mailto:and@doxdesk.com
> http://www.doxdesk.com/

On 6/14/05, Kelly Miller <lightsolphoenix@gmail.com> wrote:
> Wouldn't this be possible with HLink and CSS in XHTML2?
> Joachim Ekstrand wrote:
> >The first time I ran into html was 1995 or 96 maybe. At then most web
> >sites where using frames. I never liked the kind of pages with visible
> >frame borders and disturbing background images, which made it
> >impossible to read the text. But I did like the idea of separating
> >info into several documents.
> >
> >After several years of mostly C++ programming I have recently started
> >looking at web development again and been learning PHP and CSS.
> >
> >Now days frames are almost banned and what I have heard from
> >web-developers is "only use frames when you must". I can understand
> >the many of the arguments why not, but I cannot find a good way to
> >having a "frame" (or table or div) separated into another
> >document. Also I like the behaviour of not needing to reload the whole
> >page.
> >
> >I would like to have something like a div-tag (probably formatted by
> >a style-sheet) that has a contents source property so you can change
> >the contents and just load the contents in the div-tag.
> >
> >Something like:
> >  <div id="leftBox"></div>
> >  <a href="leftBox.content='page1'">Page 1</a>
> >
> >the div-tag might now become superfluous if you don't use it for
> >formatting/layout.
> >
> >A simular behavior I believe I can achieve with some Javascript, but then
> >it would not be nice and clear code. And I would not get the behaviour of
> >just reload the contents in the div-tag only.
> >
> >Or is there already a good way to achieve a behaviour somewhat like this?....
> >
> >
> >Joachim Ekstrand
> >
> >
> >
> >
> >
> --
> http://www.mozilla.org/products/firefox/ - Get Firefox!
> http://www.mozilla.org/products/thunderbird/ - Reclaim Your Inbox!
Received on Saturday, 18 June 2005 06:48:44 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:11 UTC