Hi,
I get this error nomatter how I try and organise my page.
"Line: 218 Error: c[...] is null or not an object"
The code for my page is below. I am using it as a CRM web resource. Can anyone see anything obviously wrong with this? Could I be using an incorrect version of jquery? I cannot see a problem. Thanks for any help or points you could give.
<HTML><HEAD><TITLE></TITLE>
<SCRIPT src="soj_ckeditor"></SCRIPT>
<SCRIPT src="c5_jquery.1.7.2"></SCRIPT>
<SCRIPT type=text/javascript>
CKEDITOR.timestamp = null;
var Xrm;
$(document).ready(function () {
if(CKEDITOR){
var Xrm = parent.Xrm;
var originalValue= Xrm.Page.getAttribute("myfield").getValue();
document.getElementById('editor1').value = originalValue;
CKEDITOR.instances.editor1.on('blur', function () {
var value = CKEDITOR.instances.editor1.getData();
Xrm.Page.getAttribute("myfield").setValue(value);
});
}
else{
alert('Unable to find CkEditor javascript resource');
};
});
</SCRIPT>
<META charset=utf-8></HEAD>
<BODY contentEditable=true><TEXTAREA style="WIDTH: 100%; HEIGHT: 100%" id=editor1 class=ckeditor name=editor1></TEXTAREA>
<SCRIPT>
CKEDITOR.replace('editor1');
</SCRIPT>
</BODY></HTML>