In IE 11 sometimes only two functions are working.adxiehtmlDocEvents1_OnReadyStateChange and IEModule_OnBeforeExecute

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

In IE 11 sometimes only two functions are working.adxiehtmlDocEvents1_OnReadyStateChange and IEModule_OnBeforeExecute
Hi!!! In my plugin, i have attached bellow events . All events get called in IE 10 And IE 11.But in IE 11,sometimes for same webpages only two functions get called 1. adxiehtmlDocEvents1_OnReadyStateChange 2. IEModule_OnBeforeExecute and other  
Rajeev Rajeevlochan Phadke




Posts: 11
Joined: 2014-02-11
Hi!!!
In my plugin, i have attached bellow events

this.adxiehtmlDocEvents1.OnClick += new AddinExpress.IE.ADXIEHTMLEventObjectEx_EventHandler(this.adxiehtmlDocEvents1_OnClick);
this.adxiehtmlDocEvents1.OnMouseDown += new AddinExpress.IE.ADXIEHTMLEventObject_EventHandler(this.adxiehtmlDocEvents1_OnMouseDown);
this.adxiehtmlDocEvents1.OnReadyStateChange += new AddinExpress.IE.ADXIEHTMLEventObject_EventHandler(this.adxiehtmlDocEvents1_OnReadyStateChange);
this.adxiehtmlDocEvents1.OnPropertyChange += new AddinExpress.IE.ADXIEHTMLEventObject_EventHandler(this.adxiehtmlDocEvents1_OnPropertyChange);
//
// IEModule
//
this.HandleShortcuts = true;
this.LoadInMainProcess = false;
this.ModuleName = "LNfyPlugIn";
this.ToolBars.Add(this.LinguifyToolbarItem);
this.BeforeNavigate2 += new AddinExpress.IE.ADXIEBeforeNavigate2_EventHandler(this.IEModule_BeforeNavigate2);
this.DownloadBegin += new AddinExpress.IE.ADXIEDownloadBegin_EventHandler(this.IEModule_DownloadBegin);
this.ProgressChange += new AddinExpress.IE.ADXIEProgressChange_EventHandler(this.IEModule_ProgressChange);
this.DocumentComplete2 += new AddinExpress.IE.ADXIEDocumentComplete2_EventHandler(this.IEModule_DocumentComplete2);
this.OnBeforeRefresh += new AddinExpress.IE.ADXIEBeforeRefresh_EventHandler(this.IEModule_OnBeforeRefresh);
this.OnBeforeExecute += new AddinExpress.IE.ADXIEBeforeExecute_EventHandler(this.IEModule_OnBeforeExecute);

All events get called in IE 10 And IE 11.But in IE 11,sometimes for same webpages only two functions get called

1. adxiehtmlDocEvents1_OnReadyStateChange
2. IEModule_OnBeforeExecute

and other functions are detached [not called].

Once IE 11 restarted, all function works properly and gets called.

following properties are also set to true

1.HandleDocumentUIComands is true
2.HandleHTTPNegotiations is true
Posted 12 Feb, 2015 04:49:12 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Rajeev,

When you press F5 (Refresh), some events may not work in IE. E.g. DownloadBegin, DocumentComplete2 and BeforeNavigate2. IE just loads the page from the cache.
Posted 13 Feb, 2015 03:33:55 Top
Rajeev Rajeevlochan Phadke




Posts: 11
Joined: 2014-02-11
Hello Sergey,
We had stored all links in Favorites bar [IE 11],And Just navigating on it.We are not doing any kind of refresh on page.

There are two conditions in which problem is occurring.

1. When we start IE .only two functions get called adxiehtmlDocEvents1_OnReadyStateChange and IEModule_OnBeforeExecute and other functions like DownloadBegin ,ProgressChange,OnBeforeRefresh ,OnPropertyChange are not executing.

2. All events are working fine but after sometime when we continuously navigating from one page to another page, suddenly only two events are called for same webpages and other events are detached. Once we restart IE then again all Events are working properly.
Posted 13 Feb, 2015 07:11:54 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Rajeev,

1. When we start IE .only two functions get called adxiehtmlDocEvents1_OnReadyStateChange and IEModule_OnBeforeExecute and other functions like DownloadBegin ,ProgressChange,OnBeforeRefresh ,OnPropertyChange are not executing.

It is by design in Add-in Express. You need to process this situation in your code.

2. All events are working fine but after sometime when we continuously navigating from one page to another page, suddenly only two events are called for same webpages and other events are detached. Once we restart IE then again all Events are working properly.

As I mentioned in the previous post, it may happen when IE caches web pages. Please try to use another events, e.g. NavigateComplete2 and/or DownloadComplete.
Posted 13 Feb, 2015 07:47:32 Top