CF11 CFTextArea of loading control but not working on IE10
Copy link to clipboard
Copied
Hi I am using CF11 on IE10 window server2012 with IIS8.0.
I am using cftextarea with basic toolbar, it loading the toolbar but when I try to select any control from tool bar it throws the below JavaScript error:
"SCRIPT5007: Unable to get property 'toLowerCase' of undefined or null reference
fckeditorcode_ie.js, line 30 character 416"
Please help me.........
Thanks in advance.
Copy link to clipboard
Copied
This is working perfectly on FireFox, Please someone help.
Any update on this........................
Copy link to clipboard
Copied
Can you share any piece of code, i can quickly try? This looks like a closer bug. See Bug#3835071 - cftextarea Chrome Version 37.0.2062.124 m.
Regards,
Anit Kumar
Copy link to clipboard
Copied
The below code which I am using for display CF Textarea:
<html>
<head>
<title>Test CFTExtArea</title
<meta http-equiv="X-UA-Compatible" content="IE=9" />
</head>
<body>
<cfform>
<cftextarea richtext="yes" toolbar="Basic" name="somefield"></cftextarea>
<input type="Submit">
</cfform>
</body>
</html>
------------------------------------------------------------
Page source after execution
<html>
<head><script type="text/javascript">/* <![CDATA[ */_cf_loadingtexthtml="<img alt=' ' src='/CFIDE/scripts/ajax/resources/cf/images/loading.gif'/>";
_cf_contextpath="";
_cf_ajaxscriptsrc="/CFIDE/scripts/ajax";
_cf_jsonprefix='//';
_cf_websocket_port=8577;
_cf_flash_policy_port=1243;
_cf_clientid='2C5F8369E70A853F8BE4C9D3265AF973';/* ]]> */</script><script type="text/javascript" src="/CFIDE/scripts/ajax/messages/cfmessage.js"></script>
<script type="text/javascript" src="/CFIDE/scripts/ajax/package/cfajax.js"></script>
<script type="text/javascript" src="/CFIDE/scripts/ajax/package/cfrichtexteditor.js"></script>
<script type="text/javascript" src="/CFIDE/scripts/ajax/FCKeditor/fckeditor.js"></script>
<script type="text/javascript" src="/CFIDE/scripts/cfform.js"></script>
<script type="text/javascript" src="/CFIDE/scripts/masks.js"></script>
<title>Test CFTExtArea</title
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<script type="text/javascript">/* <![CDATA[ */
ColdFusion.Ajax.importTag('CFTEXTAREA');
/* ]]> */</script>
<script type="text/javascript">/* <![CDATA[ */
_cf_richtext_init_1426314832727136=function()
{
ColdFusion.RichText.initialize('cf_textarea1426314832727135', 'somefield', '', '/CFIDE/scripts/ajax/FCKeditor/', null, null, null, null, null, null, false, 'Basic', null, null, 'en');
};ColdFusion.Event.registerOnLoad(_cf_richtext_init_1426314832727136);
/* ]]> */</script>
<script type="text/javascript">
<!--
_CF_checkCFForm_1 = function(_CF_this)
{
//reset on submit
_CF_error_exists = false;
_CF_error_messages = new Array();
_CF_error_fields = new Object();
_CF_FirstErrorField = null;
//display error messages and return success
if( _CF_error_exists )
{
if( _CF_error_messages.length > 0 )
{
// show alert() message
_CF_onErrorAlert(_CF_error_messages);
// set focus to first form error, if the field supports js focus().
if( _CF_this[_CF_FirstErrorField].type == "text" )
{ _CF_this[_CF_FirstErrorField].focus(); }
}
return false;
}else {
return true;
}
}
//-->
</script>
</head>
<body>
<form name="CFForm_1" id="CFForm_1" action="/ASR-test/test.cfm" method="post" onsubmit="return _CF_checkCFForm_1(this)"><textarea name="somefield" id="cf_textarea1426314832727135" ></textarea>
<input type="Submit">
</form>
</body>
</html>
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
================================================================================================
Error getting while trying to select any control(e.g. Bold character tool) from the toolbar:
SCRIPT5007: Unable to get property 'toLowerCase' of undefined or null reference
fckeditorcode_ie.js, line 30 character 416
Copy link to clipboard
Copied
I tested this code on both IE and Chrome (current versions) and I am not getting any error messages.
<html> <head><script type="text/javascript">/* <![CDATA[ */_cf_loadingtexthtml="<img alt=' ' src='/CFIDE/scripts/ajax/resources/cf/images/loading.gif'/>"; _cf_contextpath=""; _cf_ajaxscriptsrc="/CFIDE/scripts/ajax"; _cf_jsonprefix='//'; _cf_websocket_port=8577; _cf_flash_policy_port=1243; /* ]]> */</script><script type="text/javascript" src="/CFIDE/scripts/ajax/messages/cfmessage.js"></script> <script type="text/javascript" src="/CFIDE/scripts/ajax/package/cfajax.js"></script> <script type="text/javascript" src="/CFIDE/scripts/ajax/package/cfrichtexteditor.js"></script> <script type="text/javascript" src="/CFIDE/scripts/ajax/FCKeditor/fckeditor.js"></script> <script type="text/javascript" src="/CFIDE/scripts/cfform.js"></script> <script type="text/javascript" src="/CFIDE/scripts/masks.js"></script> <title>Test CFTExtArea</title <meta http-equiv="X-UA-Compatible" content="IE=9" /> <script type="text/javascript">/* <![CDATA[ */ ColdFusion.Ajax.importTag('CFTEXTAREA'); /* ]]> */</script> <script type="text/javascript">/* <![CDATA[ */ _cf_richtext_init_4465264515769=function() { ColdFusion.RichText.initialize('cf_textarea4465264515768', 'somefield', '', '/CFIDE/scripts/ajax/FCKeditor/', null, null, null, null, null, null, false, 'Basic', null, null, 'en'); };ColdFusion.Event.registerOnLoad(_cf_richtext_init_4465264515769); /* ]]> */</script> <script type="text/javascript"> <!-- _CF_checkCFForm_1 = function(_CF_this) { //reset on submit _CF_error_exists = false; _CF_error_messages = new Array(); _CF_error_fields = new Object(); _CF_FirstErrorField = null; //display error messages and return success if( _CF_error_exists ) { if( _CF_error_messages.length > 0 ) { // show alert() message _CF_onErrorAlert(_CF_error_messages); // set focus to first form error, if the field supports js focus(). if( _CF_this[_CF_FirstErrorField].type == "text" ) { _CF_this[_CF_FirstErrorField].focus(); } } return false; }else { return true; } } //--> </script> </head> <body> <form name="CFForm_1" id="CFForm_1" action="/3835071.cfm" method="post" onsubmit="return _CF_checkCFForm_1(this)"> <textarea name="somefield" id="cf_textarea4465264515768" ></textarea> <input type="Submit"> </form> </body> </html> </td></td></td></th></th></th></tr></tr></tr></table></table></table></a></abbrev></acronym></address></applet></au></b></banner></big></blink></blockquote></bq></caption></center></cite></code></comment></del></dfn></dir></div></div></dl></em></fig></fn></font></form></frame></frameset></h1></h2></h3></h4></h5></h6></head></i></ins></kbd></listing></map></marquee></menu></multicol></nobr></noframes></noscript></note></ol></p></param></person></plaintext></pre></q></s></samp></script></select></small></strike></strong></sub></sup></table></td></textarea></th></title></tr></tt></u></ul></var></wbr></xmp> <style type="text/css"> .cfdebug { color:black; background-color:white; font-family:"Times New Roman", Times, serif; font-size:small } .cfdebuglge { color:black; background-color:white; font-family:"Times New Roman", Times, serif; font-size:medium; } a.cfdebuglink {color:blue; background-color:white } </style> <table class="cfdebug" bgcolor="white"> <tr> <td> <p class="cfdebug"><hr/> <b class="cfdebuglge"><a name="cfdebug_top">Debugging Information</a></b> <table class="cfdebug"> <tr> <td class="cfdebug" nowrap>ColdFusion Server Enterprise</td> <td class="cfdebug">11,0,01,291346</td> </tr> <tr> <td class="cfdebug" nowrap> Template </td> <td class="cfdebug">/3835071.cfm</td> </tr> <tr> <td class="cfdebug" nowrap> Time Stamp </td> <td class="cfdebug">21-Oct-14 07:35 PM</td> </tr> <tr> <td class="cfdebug" nowrap> Locale </td> <td class="cfdebug">English (US)</td> </tr> <tr> <td class="cfdebug" nowrap> User Agent </td> <td class="cfdebug">Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.104 Safari/537.36</td> </tr> <tr> <td class="cfdebug" nowrap> Remote IP </td> <td class="cfdebug">0:0:0:0:0:0:0:1</td> </tr> <tr> <td class="cfdebug" nowrap> Host Name </td> <td class="cfdebug">0:0:0:0:0:0:0:1</td> </tr> </table> </p> <style type="text/css"> .template { color: black; font-family: "Times New Roman", Times, serif; font-weight: normal; } .template_overage { color: red; background-color: white; font-family: "Times New Roman", Times, serif; font-weight: bold; } </style> <p class="cfdebug"><hr/><b class="cfdebuglge"><a name="cfdebug_execution">Execution Time</a></b></p> <a name="cfdebug_templates"> <table border="1" cellpadding="2" cellspacing="0" class="cfdebug"> <tr> <td class="cfdebug" align="center"><b>Total Time</b></td> <td class="cfdebug" align="center"><b>Avg Time</b></td> <td class="cfdebug" align="center"><b>Count</b></td> <td class="cfdebug"><b>Template</b></td> </tr> <tr> <td align="right" class="cfdebug" nowrap>0 ms</td> <td align="right" class="cfdebug" nowrap>0 ms</td> <td align="center" class="cfdebug" nowrap>1</td> <td align="left" class="cfdebug" nowrap><img src='/CFIDE/debug/images/topdoc.gif' alt='top level' border='0'> <b>C:\ColdFusion11\cfusion\wwwroot\3835071.cfm</b></td> </tr> <tr> <td align="right" class="cfdebug" nowrap><i>3 ms</i></td><td colspan=2> </td> <td align="left" class="cfdebug"><i>STARTUP, PARSING, COMPILING, LOADING, & SHUTDOWN</i></td> </tr> <tr> <td align="right" class="cfdebug" nowrap><i>3 ms</i></td><td colspan=2> </td> <td align="left" class="cfdebug"><i>TOTAL EXECUTION TIME</i></td> </tr> </table> <font color="red"><span class="template_overage">red = over 250 ms average execution time</span></font> </a> <p class="cfdebug"><hr/><b class="cfdebuglge"><a name="cfdebug_scopevars">Scope Variables</a></b></p> <pre><b>CGI Variables:</b> AUTH_PASSWORD= AUTH_TYPE= AUTH_USER= CERT_COOKIE= CERT_FLAGS= CERT_ISSUER= CERT_KEYSIZE= CERT_SECRETKEYSIZE= CERT_SERIALNUMBER= CERT_SERVER_ISSUER= CERT_SERVER_SUBJECT= CERT_SUBJECT= CF_TEMPLATE_PATH=C:\ColdFusion11\cfusion\wwwroot\3835071.cfm CONTENT_LENGTH= CONTENT_TYPE= CONTEXT_PATH= GATEWAY_INTERFACE= HTTPS=off HTTPS_KEYSIZE= HTTPS_SECRETKEYSIZE= HTTPS_SERVER_ISSUER= HTTPS_SERVER_SUBJECT= HTTP_ACCEPT=text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 HTTP_ACCEPT_ENCODING=gzip,deflate,sdch HTTP_ACCEPT_LANGUAGE=en-GB,en-US;q=0.8,en;q=0.6 HTTP_CONNECTION=keep-alive HTTP_COOKIE=CFAUTHORIZATION_cfadmin="YWRtaW4NY2ZhZG1pbg0xNDEzMjAxMTIzNjE3DTg3NDZBOTYyQUM0NTg5M0I="; CFADMIN_LASTPAGE_ADMIN=%2FCFIDE%2Fadministrator%2Freports%2Findex%2Ecfm; JSESSIONID=681B0B9DDFBE17409D0724D41522875C.cfusion HTTP_HOST=localhost:8503 HTTP_REFERER= HTTP_USER_AGENT=Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.104 Safari/537.36 PATH_INFO= PATH_TRANSLATED=C:\ColdFusion11\cfusion\wwwroot\3835071.cfm QUERY_STRING= REMOTE_ADDR=0:0:0:0:0:0:0:1 REMOTE_HOST=0:0:0:0:0:0:0:1 REMOTE_USER= REQUEST_METHOD=GET SCRIPT_NAME=/3835071.cfm SERVER_NAME=localhost SERVER_PORT=8503 SERVER_PORT_SECURE=0 SERVER_PROTOCOL=HTTP/1.1 SERVER_SOFTWARE= WEB_SERVER_API= </pre> <pre><b>Cookie Variables:</b> CFADMIN_LASTPAGE_ADMIN=/CFIDE/administrator/reports/index.cfm CFAUTHORIZATION_cfadmin=YWRtaW4NY2ZhZG1pbg0xNDEzMjAxMTIzNjE3DTg3NDZBOTYyQUM0NTg5M0I= JSESSIONID=681B0B9DDFBE17409D0724D41522875C.cfusion </pre> <font size="-1" class="cfdebug"><i>Debug Rendering Time: 32 ms</i></font><br /> </td> </tr> </table>
Am I missing something here?
Regards,
Anit Kumar

