function ahah(url, target) { document.getElementById(target).innerHTML = ' Fetching data...'; if (window.XMLHttpRequest) { req = new XMLHttpRequest(); } else if (window.ActiveXObject) { req = new ActiveXObject("Microsoft.XMLHTTP"); } if (req != undefined) { req.onreadystatechange = function() {ahahDone(url, target);}; req.open("GET", url, true); req.send(""); } } function ahahDone(url, target) { if (req.readyState == 4) { // only if req is "loaded" if (req.status == 200) { // only if "OK" document.getElementById(target).innerHTML = req.responseText; } else { document.getElementById(target).innerHTML=" AHAH Error:\n"+ req.status + "\n" +req.statusText; } } } function load(name, div) { ahah(name,div); return false; }
// call code with the name of the external file and the id of the div you want to put the content into
<a href="file1.html" onclick="load('file1.html','content');return false;">File 1a>
here's the page: http://www.marshall-legacy.org/aboutNews_and_Events22test.html
--->on the left menu the "what we've accomplished" link is the one in question.
--->you can see the page that i'd like loaded and what its supposed to look like by clicking on the "recent news" link
thanks in advance for any help at all!!! i need it.