On 6/16/07, Marcus Clements <marcus@brightonart.org> wrote:
> One of the areas of our site is a set of 'Learning Paths' which is euro
> education jargon for 'Tutorial'
<snip>
>
> This is my approach - feel free to offer better suggestions!

OPTION 1:

I probably would have started with javascript

<div id="target1"></div>
<script>
function get_file(url)
{
  new Ajax.Updater( $('target1'), url, { method: 'get' } );  
}
</script>
<a href="javascript://show this file" onclick="get_file(' http://mysite/somepath');">Part 4: Audio Stuff</a>


I haven't tested the code above but I think you get the idea...


OPTION 2:

I'm not 100% sure but I think the blog-integration code may do what you want already (It's how I merged WordPress and ccHost at http://fourstones.net )

With this method you put <script> call outs into your html/php file. Say Part2_Overview.php:

<html>
<head>
<!-- IN THE HEAD SECTION: -->
<script src="http://your_install/media/skin/head"></script>

  .. your head section ...

</head>
<body>
<!-- RIGHT AFTER BODY TAG -->
<script src="http://your_install/media/ skin/body_begin"></script>


... your page....


<!-- RIGHT BEFORE /BODY TAG -->
<script src="http:// your_install/media/skin/body_end"></script>
</body>
</html>


VS