|
|||
|
Hi.. Rather than digging for code for days, can anyone tell me how to use NewWindow2 Event, stop the open window event and grab the url and navigate to it in the current window.
I'm not sure how to code this in SWFKit. Thanks, Chuck |
|
|||
|
The NewWindow2 event has a [out] parameter ppdisp, you can set it to the web browser that will be used to display the web page. If you don't set this parameter, ie will create a new window to display the web page.
That is to say, you just need to set the parameter to the current web browser to cancel the new window and display the web page in the current window. Unfortunately, the current version of SWFkit doesn't support to transfer an IDispatch value to a [out] parameter of an event. It supports only numbers, date. We'll implement it in v2.2. If you need the feature now, we can build a special edition for you. |
|
|||
|
Sorry, v3.0x still does not support to pass an IDispatch interface. However, in v3.1 the following code can work
Code:
var ie1 = createControl("Shell.explorer", 0, 0, 250, 400);
var ie2 = createControl("Shell.explorer", 300, 0, 550, 400);
ie1.activex.newWindow2 = function (disp, cancel)
{
disp.value = ie2.activex;
cancel.value = false;
}
ie1.activex.navigate2("http://google.com");
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|