Redirect to specific tab issue in IE11

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

Redirect to specific tab issue in IE11
 
Vinesh Chauhan




Posts: 5
Joined: 2016-09-06
Hiii,

Urgent Help!!!

I write the TabActivate() code in OnSendMessage method to activate tab based on URL. TabChanging and TabChanged event is also fire but that specific tab is not focused.

Here is my code to activate tab on context menu click event.

I am using IE 11.

private static int WM_USER = 0x0400;
private static int WM_EXAMPLE = WM_USER + 1000;

//Context menu click event pass message to call function
private void adxieContextMenuCommandItem1_OnClick_1(object sender, object htmlElement)
{

this.SendMessageToAll(WM_EXAMPLE, IntPtr.Zero, IntPtr.Zero);


}

//Function call on context menu click event fire
private void IEModule_OnSendMessage(ADXIESendMessageEventArgs e)
{
if (e.Message == WM_EXAMPLE)
{
IEModule module = (IEModule)this.GetModuleByThread(this.ThreadID);
if (module != null)
{
string url = module.HTMLDocument.url;

if (module.HTMLDocument.url == "http://demophp.digi-corp.com/adp_dev/academic-details")
{
this.TabActivate();
System.Diagnostics.Debug.WriteLine("Module called domain match...." + module.IsQuickTabsEnabled());
module.Navigate(redirectURL);
}
}
}
}
Posted 09 Sep, 2016 02:05:37 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Hello Vinesh,

There's a problem with the TabActivate method: it uses an undocumented interface from IE. It turned out that IE updates may change the GUID of that interface. This breaks this functionality. We fix this issue periodically but it is obvious that you can't rely on this method. We can fix it for you now; please let me know if you need this. There's no workaround for this issue. In future Add-in Express builds, this method will be marked obsolete.


Andrei Smolin
Add-in Express Team Leader
Posted 09 Sep, 2016 07:25:10 Top