Richtext fails with coldfusion.ajax.submitForm in IE
Hi all,
got a cfform containing a cftextarea with richtext = true, invoking the FCKeditor. The form is inside a cflayoutarea and to maintain the page view I'm doing the calling forumAddPost to do the submission using coldfusion.ajax.submitform, processing it through a CFC method....shown below.
The CFC simply writes to the database and once returned, the handler navigates the layoutarea to the mainpage.
function forumAddPost() {
ColdFusion.Ajax.submitForm('formnewpost', 'groups.cfc?method=forumNewPosts', forumAddPostHandler, errorHandler);
}
function forumAddPostHandler(result) {
ColdFusion.navigate('forum_showtopics_search.cfm?subject_id=<cfoutput>#group.forumid#</cfoutput>&searchtext=', 'MOD2');
}
function errorHandler(code, msg)
{
alert('error '+code+': '+msg);
}
This code works fine in Chrome or Firefox, but in IE it fails and closes IE down. If I remove the richtext option the posting works fine, so I've established it's something to do with the FCKeditor and the ajax posting method, but can't work out what?!
Anyone have any ideas?
Cheers
Phil
