AReYco píše:
lenže php nepoznam
takze ked nepoznas php tak nieco ako AJAX ti nic vraviet nebude ze...
v subore menu.hyml mas pozadovany obsah.
Kód:
<script type="text/javascript">
function ajaxFunction()
{
var xmlhttp;
if (window.XMLHttpRequest)
{
// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else if (window.ActiveXObject)
{
// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
else
{
alert("Your browser does not support XMLHTTP!");
}
xmlhttp.onreadystatechange=function()
{
if(xmlhttp.readyState==4)
{
document.getElementById('menu')=xmlhttp.responseText;
}
}
xmlhttp.open("GET","menu.html",true);
xmlhttp.send(null);
}
</script>
<body onload=ajaxFunction();>
..
...
....
...
a inak pouzi frame