As far as I get the concept of css now there is no need for tables/frames anymore.
But what with navigation?
When a users chooses a link to e.g. the contact page, this contact page has to include the navigation, the header and the footer again.
Is there no way (without using javascript) to only change the content of one DIV.
F.E.
<DIV id="navBar"> <ul> <li><a href="./index.html">home</a></li> <li><a href="./contact.html">contact</a></li> </ul> </div> <div id="main"> <div id="title"> HOME </div> <div id="content"> On this page you'll find some nice .. stuff </div> </div>
If the users presses the "contact" link the WHOLE page has to be loaded. Is there no way that only the "title" and "content" DIV's get another content?
Navigate without loading whole page every time?
Not really You could try an Iframe(slight shudder) for the content. Well written CSS/HTML is fast loading it shouldn't be a problem for the user.
If you have a lot of pages and the pain of updating menus etc then PHP includes/templates is quite a neat way of dealing with the issue (as long as your server supports it)
Hugo.
Navigate without loading whole page every time?
Thx.
I know the loading time isn't really the problem, but indeed, the problem of updating is a pain in the ass when for example the nav has to be updated in 10+ files.
What's the deal with those Iframes? (help a noob out )
Navigate without loading whole page every time?
Iframes will take a link to an external file but are a deprecated tag in xhtml strict so won't validate.
If it's a case of the pain of updating menus across pages I would have thought that a PHP include menu would be best, if your server supports PHP.
Hugo.
Navigate without loading whole page every time?
You could always use an iframe and the xhtml transitional doctype.
But PHP is probably a better way to go.
Navigate without loading whole page every time?
If you could use ASP.NET, there is a feature called SmartNavigation that takes care of what exactly you want to do. Just set the SmartNavigation="True" in the page directive and you'll be set.
I find the quickest way to do this is to use frames
<frameset rows="110,*,30" framespacing="0" frameborder=0 border=0> <frame name="top" scrolling="no" noresize target="main" src="header.htm" marginwidth="0" marginheight="0"> <frameset cols="178," framespacing="0" frameborder=0 border=0> <frame name="main" src="home.htm" target="_self" scrolling="no"> </frameset> <frame name="bottom" scrolling="no" noresize target="contents" src="footer.htm"> <noframes> <body> <p>This page uses frames, but your browser doesn't support them.</p> </body> </noframes> </frameset>
Then only the frame named main is changed if you put
<base target="main">
in the head section of your page,
Navigate without loading whole page every time?
Navigate without loading whole page every time?
Or you could always use alistapart's PHP menus