Jump to content

dado

Members
  • Posts

    3
  • Joined

  • Last visited

dado's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Well... I tried the example locally. I still haven't a server where upload the pageI was thinking to develop my page locally first and then upload on a server. As far as the the example is concerned, it is quite clear, I surely need more practice but it is preatty clear. I'll try further with exercisesThanks.
  2. 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
  3. Hi folks, my first post here... and a real beginner in JS. I really hope you can help me. I'm going to realize a web page where the content should change just reading some text from a file and putting it in a cell of a table.Let's say I've already uploaded several files (txt or html) that should be loaded with different links.is there a way to do it?Please help PS: sorry for my bad english
×
×
  • Create New...