I am sure this is nothing for programmers and designers, so here is an easy chance to earn yourself 10 points.
I have a page designed in css; it has a menu panel and a container for content. I have links to other pages on my domain. I want the content of those pages open in my content-container.
From a javascript-library I have this script:
<script type="text/javascript">
function loadContent(elementSelector, sourceUrl) {
$(""+elementSelector+"").load("page1.html");
}
</script>
and in my <body> I have
<a href="javascript:loadContent('#maincontent', 'page1.html');">Link 1</a>.
This works well for one page, but what do I need to do to load another page?
As I really am a newbie in this, I would like you to make your answer simple and as non-technical as possible.
I have a page designed in css; it has a menu panel and a container for content. I have links to other pages on my domain. I want the content of those pages open in my content-container.
From a javascript-library I have this script:
<script type="text/javascript">
function loadContent(elementSelector, sourceUrl) {
$(""+elementSelector+"").load("page1.html");
}
</script>
and in my <body> I have
<a href="javascript:loadContent('#maincontent', 'page1.html');">Link 1</a>.
This works well for one page, but what do I need to do to load another page?
As I really am a newbie in this, I would like you to make your answer simple and as non-technical as possible.