Re: After Navigate() webbrowser properties are invalid
From: Igor Tandetnik (itandetnik_at_mvps.org)
Date: 11/23/04
- Next message: MiraclesHappen: "Re: Content-type bug in IE since SP2"
- Previous message: Igor Tandetnik: "Re: Content-type bug in IE since SP2"
- In reply to: elisabete: "After Navigate() webbrowser properties are invalid"
- Next in thread: elisabete: "Re: After Navigate() webbrowser properties are invalid"
- Reply: elisabete: "Re: After Navigate() webbrowser properties are invalid"
- Reply: elisabete: "Re: After Navigate() webbrowser properties are invalid"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 23 Nov 2004 11:45:27 -0500
"elisabete" <liscerq@gmx.ch> wrote in message
news:57ee422a.0411230705.4ea9bf84@posting.google.com
> Scenario 1:
> -----------
> I have a VC++ project that at some point must POST an HTTP request to
> a server (not using controls). I am using IWebBrowser Navigate()
> function to POST an HTTP request to a server.
>
> Problem 1:
> -----------
> The Navigate() function works fine, but afterwards, if I check the
> value of the webbrowser properties get_LocationURL() and
> get_LocationName() I get an empty string...
Do you check the URL immediately? You should wait at least until
NavigateComplete2 event fires. Also, does your application run a message
pump? WebBrowser performs navigations asynchronously and requires
message pump.
> Scenario 2:
> -----------
> I implemented sink class to handle events of DWebBrowserEvents2 (like
> BeforeNavigate, NavigateComplete2).
>
> Problem 2:
> ----------
> No events are fired...
Again - do you run a message pump? You cannot use WebBrowser with a
tight loop.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
- Next message: MiraclesHappen: "Re: Content-type bug in IE since SP2"
- Previous message: Igor Tandetnik: "Re: Content-type bug in IE since SP2"
- In reply to: elisabete: "After Navigate() webbrowser properties are invalid"
- Next in thread: elisabete: "Re: After Navigate() webbrowser properties are invalid"
- Reply: elisabete: "Re: After Navigate() webbrowser properties are invalid"
- Reply: elisabete: "Re: After Navigate() webbrowser properties are invalid"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|