This was covered on the list recently. For the whole thread, search
cftextarea: how to count characters
Reprise relevant js:
var oEditor = FCKeditorAPI.GetInstance('theBody');
var theBodyTest = oEditor.GetXHTML(true);
if (theBodyTest.length==0) {
alert('You need to enter something for the body of your story.');
return false;
}
Cheers,
Kris
> I am trying to check whether or not a rich text textarea has a value in
> JavaScript. On a normal textarea box I can just use the elementname.value ==
> '' but that is not working when I have rich text turned on.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:304095
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4