We're using a CuteEditor instance on one of our webpages and we keep getting the following error:
TypeError: Cannot read property 'value' of null [http://localhost/DevPatch/CuteSoft_Client/CuteEditor/Load.ashx?type=script&verfix=1003&file=spell.js:1]
When I take the url of the handler and navigate directly to it, I get the following:
var OxOd450=["INPUT","TEXTAREA","DIV","SPAN","","contentWindow","innerHTML","body","document","length","type","text","id","isContentEditable","showModalDialog","MSIE","userAgent","?","?Modal=true","\x26Modal=true","dialogHeight:340px; dialogWidth:395px; edge:Raised; center:Yes; help:No; resizable:Yes; status:No; scroll:No","left=","availWidth",",top=","availHeight",",height=300,width=400,scrollbars=no,resizable=no,toolbars=no,status=no,menubar=no,location=no","ElementIndex","dialogArguments","window","opener","value","SpellMode","start","suggest","end","SpellingForm","checkElements","innerText","StatusText","Spell Checking Text ...","\x3C","CurrentText","WordIndex","Spell Check Complete","closeeditordialog","close","selectedIndex","ReplacementWord","form","options"];var showCompleteAlert=true;var tagGroup= new Array(OxOd450[0],OxOd450[1],OxOd450[2],OxOd450[3]);var checkElements= new Array();function getText(Ox1fc){var Ox1fd=document.getElementById(checkElements[Ox1fc]);var Ox1fe=OxOd450[4];var Ox1ff=document.getElementById(Ox1fd.id);if(Ox1ff[OxOd450[5]]){Ox1fe=Ox1ff[OxOd450[5]][OxOd450[8]][OxOd450[7]][OxOd450[6]];} else {Ox1fe=Ox1ff[OxOd450[8]][OxOd450[7]][OxOd450[6]];} ;return Ox1fe;} ;function setText(Ox1fc,Ox201){var Ox1fd=document.getElementById(checkElements[Ox1fc]);var Ox1ff=document.getElementById(Ox1fd.id);if(Ox1ff[OxOd450[5]]){Ox1ff[OxOd450[5]][OxOd450[8]][OxOd450[7]][OxOd450[6]]=Ox201;} else {Ox1ff[OxOd450[8]][OxOd450[7]][OxOd450[6]]=Ox201;} ;} ;function checkSpelling(){checkElements= new Array();for(var i=0;i<tagGroup[OxOd450[9]];i++){var Ox203=tagGroup[i];var Ox204=document.getElementsByTagName(Ox203);for(var x=0;x<Ox204[OxOd450[9]];x++){if((Ox203==OxOd450[0]&&Ox204[x][OxOd450[10]]==OxOd450[11])||Ox203==OxOd450[1]){checkElements[checkElements[OxOd450[9]]]=Ox204[x][OxOd450[12]];} else {if((Ox203==OxOd450[2]||Ox203==OxOd450[3])&&Ox204[x][OxOd450[13]]){checkElements[checkElements[OxOd450[9]]]=Ox204[x][OxOd450[12]];} ;} ;} ;} ;openSpellChecker();} ;function checkSpellingById(Ox9a,Ox206){checkElements= new Array();checkElements[checkElements[OxOd450[9]]]=Ox9a;openSpellChecker(Ox206);} ;function checkElementSpelling(Ox1fd){checkElements= new Array();checkElements[checkElements[OxOd450[9]]]=Ox1fd[OxOd450[12]];openSpellChecker();} ;function openSpellChecker(Ox206){if(window[OxOd450[14]]&&navigator[OxOd450[16]].indexOf(OxOd450[15])!=-1){var Ox209;if(Ox206.indexOf(OxOd450[17])==-1){Ox209=OxOd450[18];} else {Ox209=OxOd450[19];} ;var Ox20a=window.showModalDialog(Ox206+Ox209,window,OxOd450[20]);} else {var Ox20b=window.open(Ox206,null,OxOd450[21]+(screen[OxOd450[22]]-400)/2+OxOd450[23]+(screen[OxOd450[24]]-400)/2+OxOd450[25]);} ;} ;var iElementIndex=-1;var parentWindow;function initialize(){iElementIndex=parseInt(document.getElementById(OxOd450[26]).value);if(parent[OxOd450[28]][OxOd450[27]]){parentWindow=parent[OxOd450[28]][OxOd450[27]];} else {if(top[OxOd450[29]]){parentWindow=top[OxOd450[29]];} ;} ;var Ox20f=document.getElementById(OxOd450[31])[OxOd450[30]];switch(Ox20f){case OxOd450[32]:break ;;case OxOd450[33]:updateText();break ;;case OxOd450[34]:updateText();;default:if(loadText()){document.getElementById(OxOd450[35]).submit();} else {endCheck();} ;break ;;} ;} ;function loadText(){if(!parentWindow[OxOd450[8]]){return false;} ;for(++iElementIndex;iElementIndex<parentWindow[OxOd450[36]][OxOd450[9]];iElementIndex++){var Ox211=parentWindow.getText(iElementIndex);if(Ox211[OxOd450[9]]>0){updateSettings(Ox211,0,iElementIndex,OxOd450[32]);document.getElementById(OxOd450[38])[OxOd450[37]]=OxOd450[39];return true;} ;} ;return false;} ;function updateSettings(Ox213,Ox214,Ox215,Ox216){Ox213=Ox213.replace(/<([^>]+)/g,function (Oxee,b,Ox217){return OxOd450[40]+b.toLowerCase();} );document.getElementById(OxOd450[41])[OxOd450[30]]=Ox213;document.getElementById(OxOd450[42])[OxOd450[30]]=Ox214;document.getElementById(OxOd450[26])[OxOd450[30]]=Ox215;document.getElementById(OxOd450[31])[OxOd450[30]]=Ox216;} ;function updateText(){if(!parentWindow[OxOd450[8]]){return false;} ;var Ox211=document.getElementById(OxOd450[41])[OxOd450[30]];parentWindow.setText(iElementIndex,Ox211);} ;function endCheck(){if(showCompleteAlert){alert(OxOd450[43]);} ;closeWindow();} ;function closeWindow(){(top[OxOd450[44]]||top[OxOd450[45]])();} ;function changeWord(Ox1fd){var Ox21c=Ox1fd[OxOd450[46]];Ox1fd[OxOd450[48]][OxOd450[47]][OxOd450[30]]=Ox1fd[OxOd450[49]][Ox21c][OxOd450[30]];} ;
I have no idea how to debug this, and the error is not descriptive at all.
Jeremy