Help - Search - Members - Calendar
Full Version: div tag working like a frameset?
HTMLHelp Forums > Web Authoring > General Web Design
cookiemonstera
is it possible to work div tags like a frameset...?

you know...have one div layer as navigation...and the other as the content display. the navigation layer should update the content display without reloading the entire page...is this possible? how?
Darin McGrew
QUOTE(cookiemonstera @ May 15 2007, 07:31 AM) *
is it possible to work div tags like a frameset...?
Not the way you mean it, no.

QUOTE(cookiemonstera @ May 15 2007, 07:31 AM) *
you know...have one div layer as navigation...and the other as the content display. the navigation layer should update the content display without reloading the entire page...is this possible? how?
You can get the effect of independently scrolling regions using DIV elements and CSS. But you can't reliably update the content of a DIV element without updating the rest of the page.

But IMHO, it's better to go ahead and update the whole page anyway. Browsers can cache any images, external style sheets, external JavaScript, etc. that are common to all your pages. If the size of the rest of the common code is significant, then you really need to rework your design.
Christian J
QUOTE(cookiemonstera @ May 15 2007, 04:31 PM) *

the navigation layer should update the content display without reloading the entire page...is this possible? how?

That can be done with AJAX, but this is not recommended due to numerous usability problems.

A better idea is to include the menu on all pages with PHP or SSI. Then you must load the entire page, but that shouldn't be a big problem.
cookiemonstera
thnx smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.