The code I used was basically the same...
//Create a new URI object
var objURI =
Components.classes["@mozilla.org/network/standard-url;1"].createInstance(Components.interfaces.nsIURL);
if (baseURI) {
dump("Resolved URI: " + baseURI.resolve(spec) + "\n");
aURL.spec = baseURI.resolve(spec)
} else {
objURI.spec = spec;
}
//Return the new uri
return objURI;
I also saw the init method used but it seems to be undefined on my url?
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom