Hi guys,
Has anyone gotten the onfocus event to work in IE. Works fine in FF but not IE. Followed the examples and tried different casing, but still no go. Code is below.
FF is using the event listener whilst IE is just attaching the event. I have a feeling that there is another default onfocus event that is overwriting the attached event.
//Get the editor content
var editdoc=activityEditor.GetDocument();
// attach Event
if(editdoc.attachEvent){
editdoc.attachEvent('onfocus',activity_onFocus);
editdoc.attachEvent('onblur',activity_onBlur);}
else if(editdoc.addEventListener){
editdoc.addEventListener('focus',activity_onFocus,true);
editdoc.addEventListener('blur',activity_onBlur,true);}
Thanks!
Eric