heres my current code:
<script type="text/javascript">
function ajaxFunction()
{
var xmlHttp;
try
{
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
}
catch (e)
{
// Internet Explorer
try
{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
try
{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e)
{
alert("Your browser does not support AJAX!");
return false;
}
}
}
xmlHttp.onreadystatechange=function()
{
if(xmlHttp.readyState==4)
{
document.getElementById("myDIV").innerHTML = xmlHttp.responseText;
}
}
xmlHttp.open("GET","time.php",true);
xmlHttp.send(null);
}
</script>
and that loads a div called 'myDIV' with file 'time.php' when the body loads
now, what i need to happen is have many different files load into their corresponding div's all at once when the body loads BUT still be able to call each one individually so when the user mouse's over a given area i can use the eventhandler and update that div accordingly...
ive been googling a bit about this and havent found much of a solution... now of course i could recreate that ENTIRE structure to make all the calls but thats just wasteful and not right (As id assume)
please help! tutorials and examples are welcome, solutions and such are appreciated!
ill also add that i do have this working currently with one caveat.... in firefox when i mouseover the div it reloads just fine, but in IE i just get a flashing busy cursor, but it never updates... i suspect maybe i have an issue with my DOM statement for the innerHTML portion... any help there too is appreciated