Forum Moderators: open
Server-side includes are probably the simplest solution and will work if javascript is disabled.
Kaled.
On the left side, I have a list of links. On the right side is my content. When I click on a link, I want the external page to load in the content area.
So, I don't leave my page, the links on the left side always stay where they are!
@kaled:
The second suggestion also looks quite interesting! I'll have a look at it! Thanks..
If you have any other suggestions: SHOOT! ;-)
You should consider reversing the problem, i.e. how to include the navigation area in the content pages rather than how to dynamically change the content according navigation requests. There are good reasons why everyone else does it this way.
Kaled.
If these areas can scroll, then standard methods can be used, otherwise things get very tricky.
Precisely what approach is right for you will depend on what authoring software you are using (templates might be a good approach) how big the site is, what hosting limitations there are (e.g. is php available) and whether you need to burn the site onto CD (ruling out SSI and php unless you add further software to the CD).
Kaled.
I have to mention, that the page is not for me! I'm doing it for somebody.
I'm using 'no' authoring software. Well, I use VI as editor. I'm doing the design with CSS.
PHP should be available,yes! I don't need to burn it on CD.
I already got it to work with IFRAMES. It's not a very good solution though. I'm using a javascript, which sets the height of the iframe every time something is loaded into it. The design looks very nice with the iframe. The only problem is, the javascript only seems to be working with IE, not in Firefox.
Mhh..I really have to search a good tutorial on this issue...
Here's some code that will give you a non-scrolling area at the top:
<html><head>
<style type="text/css">
body { overflow: hidden }
div.content { height: 100%; overflow: auto } </style></head>
<body>
<table width=100% bgcolor=khaki><tr><td>Fixed menu</td></tr></table>
<div class=content>
<table width=100% height=2000 bgcolor=lightyellow>
<tr><td valign=top>content</td></tr>
</table>
</div>
</body></html>
Go here: [dynamicdrive.com...] That should do it for you, using AJAX.
<admin note: I made a new question here into a new thread [webmasterworld.com]>
[edited by: tedster at 9:41 pm (utc) on Mar. 2, 2006]