Thanks guys for all the help.

I ended up getting it to work with a combination of responses. Here is the code:

function check()
{

var text1 = ColdFusion.RichText.getEditorObject('theBody'); 
var text2 = text1.GetXHTML(true);

if (text2==0)

        {
        
                alert('Body is required');
        
        }


}

Works like a champ. Thanks again!


> 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.
> 
> Anyone have any ideas how to check it when rich text is on?
> 
> Thanks! 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:304117
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to