Hi Hacknsack, thx for your reply. I've just created an example page with the code you provided... but it didn't work.so I started surfing the urls you provided in the post and I wrote this simple code.Unfortunatelly this didn't work as well (along with the html file I saved the test.txt as well)
<html><head><title>W3 Schools Definition Fetcher</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><script type="text/javascript">var xmlhttp=false;/*@cc_on @*//*@if (@_jscript_version >= 5)// JScript gives us Conditional compilation, we can cope with old IE versions.// and security blocked creation of the objects. try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { xmlhttp = false; } }@end @*/if (!xmlhttp && typeof XMLHttpRequest!='undefined') { xmlhttp = new XMLHttpRequest();}</head> xmlhttp.open("GET", "test.txt",true); xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4) { alert(xmlhttp.responseText) } } xmlhttp.send(null)<body></body></html>
What is wrong??? Any help will be much appreciated