Re: Can I get document.links in JavaXPCOM ?

Carfield Yim <[email protected]>
Newsgroups gmane.comp.mozilla.devel.oji
Organization http://groups.google.com
Message-ID <[email protected]>
> You have to resolve the relative urls against a base url.
>
> For obtaining the base URI you can for example
> query-interface browser window to a nsIWebNavigation
> and then read the currentURI property.
>

Thanks, that mean I need to construct the absolution URL myself...
actually not a major problem , I just wonder can I just get from the
API or not.

By the way, is the relative URLs I get only is "/folder/file.html" so
that I just add the protocol and host is ok; Or it will be only
"file.html" so that I need to detect for this case and add folder also?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.