Guys,
My Ajax code works fine for other parts of my program but it fails in the FCKeditor. In particular, in my Ajax callback() function, I have:
document.getElementById("FCKeditor1").value = message.content;
where "FCKeditor1" is the id of the editor's text field found by examining the FCKeditor source code.
I have a feeling that it's not able to find this id "FCKeditor1". (A test on alert(message.content) returns the message as expected)
I appreciate any help. Thanks so much.
(The server side language I use is PHP)
My Ajax code works fine for other parts of my program but it fails in the FCKeditor. In particular, in my Ajax callback() function, I have:
document.getElementById("FCKeditor1").value = message.content;
where "FCKeditor1" is the id of the editor's text field found by examining the FCKeditor source code.
I have a feeling that it's not able to find this id "FCKeditor1". (A test on alert(message.content) returns the message as expected)
I appreciate any help. Thanks so much.
(The server side language I use is PHP)
Re: Problem with Ajax in FCKeditor
Check this: http://docs.fckeditor.net/FCKeditor_2.x ... Script_API
Re: Problem with Ajax in FCKeditor
Unfortunately, I have not been able to find something from this page that can make Ajax work. I'm wondering if the FCKeditor team ever developed some code that makes Ajax work in the editor itself. The thing is that my Ajax code works on all parts of my program except the FCKeditor portion; something in the FCKeditor stops Ajax from inserting the output of the callback() function. Does anyone have any idea ? Thanks.