Re: Open in the same window
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Sun, 3 Feb 2008 09:45:06 -0500
"Leslie Milburn" <CDB4W@xxxxxxxxxxxxxxxxxx> wrote in message
news:%23nxmvPlZIHA.2268@xxxxxxxxxxxxxxxxxxxx
I am using an embedded iWebBrowser2 control and I want to keep *all*
activity in that same browser window, ie I do not want IE6 or 7 to be
opened when code like the following is executed:
var win;
win=window.open(http://server/thePage.html);
I have implemented DWebBrowser2 events and am intercepting the
NewWindow2 event to try and modify the behaviour.
According to the (very sparse and poorly written) documentation, I
should be able to provide the target WebBrowser iDispatch object by
updating pDispParams->rgvarg[1].ppdispVal in the WebEvents Invoke
function. When I do this, I get a script error on the page.
NewWindow2 approach does work. You are doing something wrong. See KB
article KB184876 "How To Use the WebBrowser Control NewWindow2 Event"
--
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
.
- Follow-Ups:
- Re: Open in the same window
- From: Leslie Milburn
- Re: Open in the same window
- References:
- Open in the same window
- From: Leslie Milburn
- Open in the same window
- Prev by Date: Re: about window.external and type library
- Next by Date: Re: CHtmlView render "http://tp.msn.com" incorrectly
- Previous by thread: Open in the same window
- Next by thread: Re: Open in the same window
- Index(es):