W3C home > Mailing lists > Public > public-webapi@w3.org > August 2007

[XHR] can't get this.readyState to work

From: Dan Connolly <connolly@w3.org>
Date: Mon, 13 Aug 2007 21:42:57 -0500
To: public-webapi@w3.org
Message-Id: <1187059377.29837.84.camel@pav>

Do the examples in the spec work?
http://www.w3.org/TR/2007/WD-XMLHttpRequest-20070618/#examples

I can't figure out how this.readyState works. I tried
adapting the example just a bit:

function handler() {
    alert("@@ handlder state, status:" + this.readyState + "/" +
this.status);
}

client.onreadystatechange = handler;

and I get undefined for this.readyState and this.status.

I'm using firefox 2.0.0.6 on ubuntu linux.

-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/
Received on Tuesday, 14 August 2007 02:43:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:58 GMT