The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> div tag working like a frameset?
cookiemonstera
post May 15 2007, 09:31 AM
Post #1





Group: Members
Posts: 2
Joined: 15-May 07
Member No.: 2,821



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?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post May 15 2007, 12:37 PM
Post #2


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post May 15 2007, 12:38 PM
Post #3


.
********

Group: WDG Moderators
Posts: 9,656
Joined: 10-August 06
Member No.: 7



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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
cookiemonstera
post May 15 2007, 02:01 PM
Post #4





Group: Members
Posts: 2
Joined: 15-May 07
Member No.: 2,821



thnx smile.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 25th April 2024 - 09:28 AM