Re: onfocus in IE doesnt work but does in FF

  •  07-16-2010, 11:43 AM

    Re: onfocus in IE doesnt work but does in FF

    Hi Guys,
     
    Support pointed me to a new peice of code.  It should be:

                //Get the editor content  
                var editdoc=activityEditor.GetDocument();
                
                // attach Event
                if(editdoc.attachEvent){
                     editdoc.body.attachEvent('onfocus',activity_onFocus);
                     editdoc.body.attachEvent('onblur',activity_onBlur);
                else if(editdoc.addEventListener){
                    editdoc.addEventListener('focus',activity_onFocus,true);    
                    editdoc.addEventListener('blur',activity_onBlur,true);}
     
    Can this be changed in the documentation please?
     
    Thanks!
View Complete Thread