Re: Session not passed to AxWebBrowser popup
From: ReuvenT (ReuvenT_at_discussions.microsoft.com)
Date: 06/30/04
- Next message: Igor Tandetnik: "Re: Session not passed to AxWebBrowser popup"
- Previous message: Steve Siegel: "Re: Repost: Using Webbrowser events to detect scripted New Window"
- Next in thread: Igor Tandetnik: "Re: Session not passed to AxWebBrowser popup"
- Reply: Igor Tandetnik: "Re: Session not passed to AxWebBrowser popup"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 30 Jun 2004 15:15:01 -0700
Hi Igor,
Thanks for your response. I did implement SHDocVw.DWebBrowserEvents2 (in vb.net) and had looked at the NewWindow2 event, but the ppDisp parameter is nothing. So it's not clear how 1) I get a handle to the new process; then 2) pass the session across the processes.
Any further guidence?
Also, is the new URL accessable somewhere? It doesn't seem to be in Navigate events. Having that URL, I could possibly cancel the navigation and open a new axWebBrowser form. That would give me half a work-around.
Thanks,
Reuven
"Igor Tandetnik" wrote:
> "ReuvenT" <ReuvenT@discussions.microsoft.com> wrote in message
> news:04A56CF9-B977-4D97-B720-E82E0812406E@microsoft.com
> > We're displaying some intranet aspx pages through AxWebBrowser and
> > some of these call window.open to display popup pages. It looks like
> > the popup doesn't see the browser session from the parent in the
> > AXWebBrowser control. When hosted in IE, the popups can access the
> > session.
>
> Sessions are maintained on a per-process basis. When window.open is
> executed from inside iexplore.exe, it opens a new window within the same
> process, and the session is maintained. When window.open is called
> inside your application, the new window opens in iexplore.exe, which is
> a different process, and the session is lost.
>
> If you want to keep all new windows within your application, see
> NewWindow2 event.
> --
> With best wishes,
> Igor Tandetnik
>
> "For every complex problem, there is a solution that is simple, neat,
> and wrong." H.L. Mencken
>
>
>
- Next message: Igor Tandetnik: "Re: Session not passed to AxWebBrowser popup"
- Previous message: Steve Siegel: "Re: Repost: Using Webbrowser events to detect scripted New Window"
- Next in thread: Igor Tandetnik: "Re: Session not passed to AxWebBrowser popup"
- Reply: Igor Tandetnik: "Re: Session not passed to AxWebBrowser popup"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|