Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
24497
How to support IE10 in old versions of NetAdvantage
posted

The WebHtmlEditor may fail to work in IE10, because javascript of WebHtmlEditor used to rely on the document property of htmlElement and that property may not be available. Since there is no updates for versions prior to 2011.1, an application needs to use local js files used by WebHtmlEditor and adjust few lines in those files.

Steps to fix:

1. Create local directory (for example ./js) within a website and copy there ig_htmleditor*.js files, which are provided by installation of NetAdvantage.

2. Point JavaScriptDirectory property of WebHtmlEditor to that location. Example:

<ighedit:WebHtmlEditor ID="WebHtmlEditor1" JavaScriptDirectory="./js" ...>
    ...
</ighedit:WebHtmlEditor>

3. Open ig_htmleditor.js in any text editor, find line
    e=e.document;
  within this._format=function(....) and replace it by
    e = e.ownerDocument || e.document;

4. Within that file find line
    if(!t)try{t=src.document.id;}catch(t){}
  within function iged_mainEvt(e) and replace it by
    if(!t) try{ t = src.document || src.ownerDocument; t = t.id; }catch(ex){ t = null; }

5. Open ig_htmleditor_ie.js file in any text editor, find line
     o._doc=function(){return this._elem.document;}
  and replace it by
    o._doc = function(){ return this._elem.ownerDocument || this._elem.document; }