var req = Components.classes["@mozilla.org/xmlextras/xmlhttprequest;1"]
  .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 into
DOMParser and the ChromeFile interface I wrote for jslib.

--
"The first step in confirming there is a bug in someone else's work is
confirming there are no bugs in your own."
-- Alexander J. Vincent, June 30, 2001
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to