I am using FCKeditor_2.6.3.I have to display the contents in the FCK editor depending upon the value from a combo ie, each time the combo selected is changed,i should get the corresponding value in the editor.
This is done using a javascript.
The javascript code is :::
var oEditor = FCKeditorAPI.GetInstance('saveMsgDescp');
if(oEditor!=null)
{
oEditor.SetData(document.getElementById("id").value);
var generatedHTML = oEditor.GetHTML();
document.getElementById("generatedText").innerHTML= generatedHTML;
document.getElementById(" anotherid").value=document.getElementById(generatedText").innerText;
}
else
document.getElementById("airport2:richMessageText").value="";
}
return true;
When I change the combo,I get the javascript error "Permission denied",but the new value is displayed in the editor.
Thanks in Advance
This is done using a javascript.
The javascript code is :::
var oEditor = FCKeditorAPI.GetInstance('saveMsgDescp');
if(oEditor!=null)
{
oEditor.SetData(document.getElementById("id").value);
var generatedHTML = oEditor.GetHTML();
document.getElementById("generatedText").innerHTML= generatedHTML;
document.getElementById(" anotherid").value=document.getElementById(generatedText").innerText;
}
else
document.getElementById("airport2:richMessageText").value="";
}
return true;
When I change the combo,I get the javascript error "Permission denied",but the new value is displayed in the editor.
Thanks in Advance
Re: Error:Permission Denied Code 0
am stuck