ie refresh problem

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

ie refresh problem
 
jolly




Posts: 14
Joined: 2016-04-28
When I refresh the ie, adxiehtmlDocEvents1_OnMouseMove event never fired on some sites(
http://member.auction.co.kr/Authenticate/?url=http%3a%2f%2fwww.auction.co.kr%2f&return_value=0)
I set SupportedEvents to Document, InputText, Window.
Please help me.
Thanks.

private void adxiehtmlDocEvents1_OnMouseMove(object sender, object eventObject)
{
MessageBox.show("test point");
}
Posted 17 May, 2016 23:31:00 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Jolly,

Please use the OnBeforeRefresh event to avoid this issue. To enable the event you need to set the 'HandleDocumentUICommands' property of the iemodule to true.

        internal void Navigate(IE.WebBrowser browser, string urlString, bool newWindow, string targetFrameName, byte[] postData, string headers, bool tabActivate)
        {
            object uRL = urlString;
            object flags = (newWindow ? 1 : (this.IEVersion >= 7 ? (targetFrameName == "_self" ? 0 : 0x0800) : 0));
            object obj4 = targetFrameName;
            object obj5 = postData;
            object obj6 = headers;

            PerformNavigate(browser, ref uRL, ref flags, ref obj4, ref obj5, ref obj6, tabActivate);
        }

        private void PerformNavigate(IE.WebBrowser browser, ref object URL, ref object flags, ref object targetFrameName, ref object postData, ref object headers, bool tabActivate)
        {
            try
            {
                if (browser == null)
                    this.IEApp.Navigate2(ref URL, ref flags, ref targetFrameName, ref postData, ref headers);
                else
                    browser.Navigate2(ref URL, ref flags, ref targetFrameName, ref postData, ref headers);
                if (tabActivate) TabActivate();
            }
            catch (COMException exception)
            {
                // Error code -2147023673: Operation was canceled by the user.
                if (exception.ErrorCode != -2147023673)
                    throw;
            }
        }

        private void IEModule_OnBeforeRefresh(object sender, ADXIEBeforeRefreshEventArgs e)
        {
            e.Cancel = true;
            Navigate(null, this.IEApp.LocationURL, false, "_self", null, null, false);
        }
Posted 19 May, 2016 04:55:28 Top
jolly




Posts: 14
Joined: 2016-04-28
Dear Sergey.

Thank you veeeeeeeery much.
It works perfectly.

I always appreciate you.
Posted 19 May, 2016 05:48:46 Top