If xml.altinkaynak.com.tr is not where your webservers is at you have do some tricks. If a client ajax request tries to access a website on a different domain this is blocked by the browser. There are some ways to work around this see here:
http://msdn.microsoft.com/en-us/library/dd573303(v=vs.85).aspx[
^]
If your webserver is on xml.altinkaynak.com.tr you can also try this code:
<html>
<body>
<textarea id="showXML" rows="35" cols="80" value="This is where the XML will go">
</textarea>
<input id="submitter" type="button" name="getXML" value="Go get it!" onclick="getXML();">
<script type="text/javascript">
function getXML()
{
var submitter = document.getElementById("submitter");
submitter.disabled = true;
var xmlHttp;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlHttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
//debugger;
xmlHttp.open("GET","http://xml.altinkaynak.com.tr/altinkaynak.xml",false);
xmlHttp.onreadystatechange = function () {
if (xmlHttp.readyState == 4)
{
var xml = xmlHttp.responseText;
document.getElementById("showXML").value = xml;
submitter.disabled = false;
}
}
xmlHttp.send();
};
</script>
</body>
</html>
Best Regards,
Manfred