On Sep 26, 12:00 pm, Boris Zbarsky <[EMAIL PROTECTED]> wrote:
> Brightman wrote:
> >     mNavigation->LoadURI(mURI.get(),                        // URI
>
> I thought it was something like that.  LoadURI does the load asynchronously.
>
> >   //get current document
> >   nsCOMPtr<nsIDOMDocument> domDoc;
> >   nsresult res = mNavigation->GetDocument(getter_AddRefs(domDoc));
>
> Which means here the document you're getting is "about:blank" (as you can tell
> by just looking at its URI).  It has a <body> but indeed no <a> tags.
>
> You need to wait until the document loads.
>
> -Boris

thank you very much.
it's this problem.
i am working a spider that can extract urls from js file. i use
navigation to browse a page and get the domtree .

_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to