Event DocumentComplete not fire when I refresh

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

Event DocumentComplete not fire when I refresh
 
Charles Frontier




Posts: 6
Joined: 2012-02-08
Hi everybody,
I need your help.

Since yesterday I try to catch the event DocumentComplete when I refresh my webpage.
But there's no events which permit me to execute an action when I refresh my webpage.

Do you have an idea to fix this problem?

Thank's :)

PS : I'm working with Microsoft Visual Studio 2010 C#
Posted 08 Feb, 2012 06:27:18 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Charles,

Did you register the add-in before? Anyway, are you able to reproduce the issue with a newly created add-on project?
.NET, Extended MAPI, Windows Phone & RT
Posted 08 Feb, 2012 06:46:29 Top
Charles Frontier




Posts: 6
Joined: 2012-02-08
Yes I register the add-in before and when I make a new add-on projet and I reproduce the issue, I have the same problem. The event DocumentComplete is not call when I refresh a web page.
Posted 08 Feb, 2012 07:28:37 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Charles,

Okay. What URL do you use for testing? Could you please describe the required steps to reproduce the issue?
.NET, Extended MAPI, Windows Phone & RT
Posted 08 Feb, 2012 07:34:51 Top
Charles Frontier




Posts: 6
Joined: 2012-02-08
You can see the problem on all urls.

To reproduce the issue :

- Make a new ADX IE add-on
- Make the event IEModule_DocumentComplete in IEModule.cs
- Do a Message Box :
private void IEModule_DocumentComplete(object pDisp, string url)
{
Messagebox.Show("event ok");
}
- Register ADX project.

and try to go on a webpage :)
The Messagebox will appear everytime exept when you'll refresh a page (F5).
Posted 08 Feb, 2012 07:43:52 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Charles,

Unfortunately I wasn't able to reproduce the issue on my PC with IE 9. What version and build number of Add-in Express do you use? IE? OS?
.NET, Extended MAPI, Windows Phone & RT
Posted 08 Feb, 2012 08:53:10 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Charles,

Ohh... Finally, I have reproduced the issue you described above (I used the default web page previously). I will try to find the cause and let you know the results soon.

Thank you!
.NET, Extended MAPI, Windows Phone & RT
Posted 08 Feb, 2012 08:57:38 Top
Charles Frontier




Posts: 6
Joined: 2012-02-08
Thank you very much! It's kind of you!
Posted 08 Feb, 2012 08:59:15 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Charles,

Please try to test your add-on against the Microsoft web site. The DocumentComplete event is fired each time I press F5 in Internet Explorer 9. That is why I can make a conclusion that tested by me and you web pages use AJAX to update itself instead of reloading a whole document. Am I on the right avenue? Is this the case?
.NET, Extended MAPI, Windows Phone & RT
Posted 08 Feb, 2012 09:10:28 Top
Charles Frontier




Posts: 6
Joined: 2012-02-08
Yes on Microsoft.com it's working but for example not on Youtube.
If it's working on microsoft it's not because the web page using AJAX but because de page loading more than one element.
For example, if you try on a webpage which have a facebook module, when you use F5, you can see the MessageBox with the url of Facebook but not of the web site.
It's very strange :/
(I'm not sure I have a very good english sorry^^)
Posted 08 Feb, 2012 09:14:20 Top