[Project_owners] nsIXMLHttpRequest woes
Eric H. Jung
grimholtz at yahoo.com
Thu May 18 16:15:53 EDT 2006
--- Nickolay Ponomarev <asqueella at gmail.com> wrote:
> On 5/19/06, Alex Vincent <ajvincent at gmail.com> wrote:
> > > var req =
> > > .createInstance(Components.interfaces.nsIXMLHttpRequest);
> > >
> > > req.open("GET", "chrome://foxyproxy/content/strings.xul", false);
> > XMLHttpRequest doesn't work for chrome URL's (HTTP and chrome are
> > different protocols entirely). Personally, I recommend you look
> > DOMParser and the ChromeFile interface I wrote for jslib.
> Yes it does. It's neither restricted to XML nor to HTTP.
> Eric: does e.item(i) work?
Good thinking! (I know item() is from the W3C DOM spec). Unfortunately,
no, I get the same problem--undefined. What is strange is that
list.length is 35 (which is the correct number), so I know the parser
is working to some extent...
More information about the Project_owners