INVALID VALUE! Error in CuteEditor

Last post 02-12-2013, 11:57 PM by Adam. 5 replies.
Sort Posts: Previous Next
  •  02-09-2013, 12:36 AM 76827

    INVALID VALUE! Error in CuteEditor

    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 
  •  02-11-2013, 1:53 PM 76834 in reply to 76827

    Re: INVALID VALUE! Error in CuteEditor

    Jeremy,
     
    Does it happen to all browsers? IS *.ashx file type allowed in IIS?
     
    I am not familar with this error. 

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  02-11-2013, 6:03 PM 76842 in reply to 76834

    Re: INVALID VALUE! Error in CuteEditor

    It does happen in all browsers - I've checked with IE, Firefox, and Chrome.

     

    .ashx is a handler type and is allowed by IIS. 

  •  02-11-2013, 8:13 PM 76846 in reply to 76842

    Re: INVALID VALUE! Error in CuteEditor

    Jmiller345,

     

    Can you try the following code?

     

    1. <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>  
    2. <%@ Page language="c#"%>  
    3. <html>  
    4.     <head>  
    5.     </head>  
    6.     <body>  
    7.         <form id="Form1" method="post" runat="server">  
    8.             <CE:EDITOR id="Editor1" Autoconfigure="Simple" runat="server"></CE:EDITOR>  
    9.         </form>  
    10.     </body>  
    11. </html>  
     


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  02-12-2013, 11:51 PM 76858 in reply to 76846

    Re: INVALID VALUE! Error in CuteEditor

    Still get the error, it has something to do with the spell.js
  •  02-12-2013, 11:57 PM 76859 in reply to 76858

    Re: INVALID VALUE! Error in CuteEditor

    Can you download the latest build then try again?

     

    If your site is online, please put a demo online and send a testing URL to me. 


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML