Refresh not sending Document Complete

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

Refresh not sending Document Complete
 
Omri Suissa


Guest


Hi,
In my project i need to run know every time that the page reloaded so i use the document complete event.
but i noticed that when i press F5 (refresh) i don't get an event. why?

Thanks,
Omri
Posted 31 Oct, 2011 05:44:48 Top
Sergey Grischenko


Add-in Express team


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

This is a known issue. Sometimes IE doesn't call the DocumentComplete event handler. Now we don't have any reliable solution for this issue.
Posted 31 Oct, 2011 11:16:20 Top
Omri Suissa


Guest


What about listening to body load event?
Posted 31 Oct, 2011 11:33:15 Top
Sergey Grischenko


Add-in Express team


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

It doesn't fire too.
Posted 01 Nov, 2011 10:36:39 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Omri, please try to use the DownloadComplete event. It should fire.
Posted 01 Nov, 2011 10:51:52 Top
Omri Suissa


Guest


I know, but i don't get the
object pDisp
of the browser, and this is what i really need.
Posted 01 Nov, 2011 11:32:48 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
But you can start a thread in DownloadComplete that checks the ReadyState property of the browser (you can use the same solution with Dispatcher as you have published here: http://www.add-in-express.com/forum/read.php?FID=10&TID=10083). If the value is tagREADYSTATE.READYSTATE_COMPLETE, you can use this.HTMLDocument to access the root browser.
Posted 01 Nov, 2011 11:45:29 Top
Omri Suissa


Guest


Hi,
because in download complete i don't know if its is a "regular" download complete or a download complete that "marks" an refresh.
if i had the pDisp i could compare it to the main browser and know, but download complete has no params...
Posted 03 Nov, 2011 10:33:15 Top
Sergey Grischenko


Add-in Express team


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

If I find any other solution, I will let you know.
Posted 04 Nov, 2011 10:16:18 Top