Public feed #891963

Something

public javascript v1 · immutable
Raw Edit
·published 2008-02-05 01:09 UTC
rendered paste body
rdnsCheck: function(ip,host) {	if (this.rdnscache[ip]['status'] == 2) {		return 'Processing (' + this.rdnscache[ip]['host'] + ')';	} else if this.rdnscache[ip]['status'] == 1) {		return this.rdnscache[ip]['rdns'];	} else {		this.rdnscache[ip]['host'] = host;		this.rdnscache[ip]['status'] = 0);		var status = this.rdnsCreate(ip);	}}rdnsCreate: function(ip) {  var xmlHttp;  var run = true;  try {    // Firefox, Opera 8.0+, Safari    xmlHttp=new XMLHttpRequest();  } catch (e) { run = false; }  if (run) {    xmlHttp.onreadystatechange=function() {      if(xmlHttp.readyState==4) {        document.getElementById('output').innerHTML=xmlHttp.responseText;      }    }    url = "http://work.ozzie.id.au/rdns.php";    url = url + "?ip=" + ip;    url = url + "&sid="+Math.random();    xmlHttp.open("GET",url,true);    xmlHttp.send(null);    this.rdnscache[ip]['status'] = 2);  }}