here is the xml
< ?xml version="1.0" encoding="UTF-8" ?>
< description>
< div id="content">
< div id="sidebar">
< div id="menu">
< p class="h4">
< a onClick="ajaxLoader('xmlhelp/music.xml','vid')"MUSIC< /a>
PROJECTS
< /div>
< p>This menu is dynamic to the application you are using< /p>
< /vid>
< /div>
< div id="Vid">
< p align="center" class="h1">HELP FILE< /p>
< p>This help file is meant to provide information to common issues in using this website.
If you are having problems aside from anything explained here please send us an E-mail about it.
Also please remember this website is still being constructed so please excuse any bugs you may run across that is all.< br>
This help file is incomplete right now, please bear with us while we upload all the data.
< /p>
< /div>
< /div>
< /description>
and here is the JS
function ajaxLoader(url,id)
{
if (document.getElementById) {
var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
}
if (x)
{
x.onreadystatechange = function()
{
if (x.readyState == 4 && x.status == 200)
{
el = document.getElementById(id);
el.innerHTML = x.responseText;
}
}
x.open("GET", url, true);
x.send(null);
}
}
ok so this is called in the html file like this
< html>
< head>
< link rel="stylesheet" type="text/css" href="scripts/ml.css">
< script "JavaScript1.2" src="scripts/scripts.js">< /script>
< /head>
< body id="body" onLoad="ajaxLoader('xml/index.xml','content')">
< div id="middle">
id="header">
< marquee style="color:blue; font-size:14px; font-weight: normal; font-style: normal; font-family: Arial; border: 1px solid" border="1">
Welcome to ChronostarGraphics.com, the the official site of the Chronostar Universe! This is our new website, and it is the 5th generation in
that!
< /div>
< div id="content">
< /div>
< div id="footer">
onClick="ajaxLoader('xml/index.xml','content')">HOME |
onClick="ajaxLoader('xml/udf.xml','vid')">UDF ARCHIVE |
onClick="ajaxLoader('xml/dvd.xml','content')">DVD SERVICES |
onClick="ajaxLoader('xml/projects.xml','content')">PROJECTS |
onClick="ajaxLoader('xml/contact.xml','content')">CONTACT US |
onClick="ajaxLoader('xml/help.xml','content')">HELP
< /p>