๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.javascript
Article #49509

Re: jak wstawic?

#49509
From: fuzjusz
Date: Wed, 11 Nov 2009 22:49
46 lines
2292 bytes
index.htm i pliczek.txt sฤ… w tym samym katalogu i w tej samej domenie.
zawartoล›ฤ‡ pliku index.htm:

<html>
	<head>
		<script type="text/javascript">

var daneserwera;

function doszlo(){
/* 0 not initialized; 1 set up; 2 sent; 3 in process; 4 complete; */
	if(daneserwera.readyState==4){
		if(daneserwera.status==200){
			document.body.innerHTML=daneserwera.responseText;
		}else{
			alert("ERROR "+daneserwera.status+"\n"+daneserwera.statusText);
		}
	}
}

function start(){
	try{
		daneserwera=new XMLHttpRequest(); // ff, o, safari
	}catch(e){
		try{
			daneserwera=new ActiveXObject("Msxml2.XMLHTTP"); //ie
		}catch(e){
			try{
				daneserwera=new ActiveXObject("Microsoft.XMLHTTP");
			}catch(e){
				alert("nie ma ajaxa");
				return false;
			}
		}
	}
	daneserwera.onreadystatechange=function(){doszlo();};
	document.body.innerHTML="loading...";
	daneserwera.open("GET","pliczek.txt",true);
	daneserwera.send(null);
}

		</script>
	</head>
	<body onload="start();">
	</body>
</html>
Technical Details
Message-ID: <62f99308-19f3-478f-abc8-fd82f015930d@o10g2000yqa.googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!news.nask.pl!news.nask.org.pl!news.uni-stuttgart.de!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!proxad.net!feeder1-2.proxad.net!74.125.46.134.MISMATCH!postnews.google.com!o10g2000yqa.googlegroups.com!not-for-mail
References: <hdesph$kkl$1@jaszczomp.tahoe.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!news.nask.pl!news.nask.org.pl!news.uni-stuttgart.de!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!proxad.net!feeder1-2.proxad.net!74.125.46.134.MISMATCH!postnews.google.com!o10g2000yqa.googlegroups.com!not-for-mail
From: fuzjusz <buckokamil@gmail.com>
Newsgroups: pl.comp.lang.javascript
Subject: Re: jak wstawic?
Date: Wed, 11 Nov 2009 14:49:21 -0800 (PST)
Organization: http://groups.google.com
Lines: 46
Message-ID: <62f99308-19f3-478f-abc8-fd82f015930d@o10g2000yqa.googlegroups.com>
References: <hdesph$kkl$1@jaszczomp.tahoe.pl>
NNTP-Posting-Host: 213.184.21.226
Mime-Version: 1.0
X-Trace: posting.google.com 1257979761 28080 127.0.0.1 (11 Nov 2009 22:49:21 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 11 Nov 2009 22:49:21 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: o10g2000yqa.googlegroups.com; posting-host=213.184.21.226;  posting-account=5EYl2AoAAABPQ9nwIbKf_4wfTuCMNlla
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.14)  Gecko/2009091010 Iceweasel/3.0.6 (Debian-3.0.6-3),gzip(gfe),gzip(gfe)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit