Opened 15 years ago

Closed 14 years ago

#8 closed enhancement (wontfix)

Provide verbose names for XMLHttpRequest states

Reported by: purestorm@… Owned by: alex
Priority: lowest Milestone:
Component: Core Version: 0.0
Keywords: Cc: alex@…
Blocked By: Blocking:

Description

What about providing constants for the XMLHttpRequest states:

/* A class that provides constants for the readyState property of 
 * XMLHttpRequest. */
function CResponseStates() {
	this.UNINITIALIZED = 0; // open() has not been called yet
	this.LOADING = 1; // Request not yet made (send() not called)
	this.LOADED = 2; // Contact established with server and HTTP status code received
    this.INTERACTIVE = 3; // In Mozilla, called multiple times while response is fetched - every 4096 bytes of response
    this.COMPLETED = 4; // Response complete
}
ResponseStates = new CResponseStates();

Change History (4)

comment:1 Changed 15 years ago by alex

dumb question, but what does this buy us?

comment:2 Changed 15 years ago by anonymous

Cc: alex@… added

comment:3 Changed 14 years ago by schontz@…

Priority: normallowest
severity: normalenhancement
Version: 0.0

comment:4 Changed 14 years ago by anonymous

Resolution: wontfix
Status: newclosed

I still don't understand what this would buy anyone over-and-above the high-level handlers we provide. If you want low-level XMLHTTP object status, that's fine, but it's not something that bind() should be in the explicit business of handling.

Note: See TracTickets for help on using tickets.