rendered paste body
<html>
<head>
<title>Ajax, Juventus, Barcelona</title>
</head>
<html>
<head>
<script type="text/javascript">
var xmlhttp
function sayfa_yukle(url)
{
xmlhttp=null
// code for Mozilla, etc.
if (window.XMLHttpRequest)
{
xmlhttp=new XMLHttpRequest()
}
// code for IE
else if (window.ActiveXObject)
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
}
if (xmlhttp!=null)
{
xmlhttp.onreadystatechange=state_Change
xmlhttp.open("GET",url,true)
xmlhttp.send(null)
}
else
{
alert("Tarayıcınız AJAX desteklemiyor.r")
}
}
function state_Change()
{
// if xmlhttp shows "loaded"
if (xmlhttp.readyState==4)
{
// Eger yukleme tamamlandiysa
if (xmlhttp.status==200)
{
// gelen cevabi icerige aktar
document.getElementById('icerik').innerHTML=xmlhttp.responseText
}
else
{
alert("Problem retrieving XML data")
}
}
}
</script>
</head>
<body>
<a href="#diger_sayfa.php" onclick="sayfa_yukle('asd.php')">tikla</a>
<a href="#oteki_sayfa.php" onclick="sayfa_yukle('oteki_sayfa.php')">tikla</a>
<div id="icerik"></div>
</body>
</html>