WebBrowser Navigate2 for iFrames?

Add-in Express™ Support Service
That's what is more important than anything else

WebBrowser Navigate2 for iFrames?
 
ieman




Posts: 10
Joined: 2010-03-01
Is it possible to redirect an iframe? I am catching beforenavigate2 , stopping event and trying to redirect but it's redirecting my whole page =/
Posted 17 Jun, 2010 09:41:57 Top
Sergey Grischenko


Add-in Express team


Posts: 7202
Joined: 2004-07-05
Hello.

Do you get a browser instance from the PDisp property of the ADXIEBeforeNavigate2EventArgs class?
Posted 17 Jun, 2010 11:06:05 Top
ieman




Posts: 10
Joined: 2010-03-01
ahh no i dont sorry, i didnt know you could?
how do you do this?

apologies for delayed reply
Posted 27 Jun, 2010 08:55:46 Top
Sergey Grischenko


Add-in Express team


Posts: 7202
Joined: 2004-07-05
Hi ieman.

Here is an example:

private void IEModule_DocumentComplete(object pDisp, string url)
{
if (!String.IsNullOrEmpty((string)url))
{
if (pDisp is IE.IWebBrowser)
{
IE.IWebBrowser browser = pDisp as IE.IWebBrowser;
X
}
}
}
Posted 28 Jun, 2010 04:18:34 Top