did you try
document.getElementById("whatever").innerHTML="";



> I have a CFDIV which is filled up with an error message issued by an 
> Ajax routine.
> 
> The only problem is that under certain circumstances, when I open the 
> window that it appears on, the leftover error message from the last 
> invocation is still sitting there.
> 
> Much of what I am doing is initiated thru Javascript, so I need to 
> find a way to clean out the message from Javascript too (if the 
> message exists).
> 
> The cfdiv looks like this: <cfdiv ID="UserNameDiv" 
> bind="url:CheckUserName.
> cfm?NewUserName={oUserName}&OldUserName={OldUserName}" />
> 
> The following result code is placed into the cfdiv when the error 
> occurs: <div style="color:red;">>>> Your Preferred UserName is already 
> in use. Please choose another.</div>
> 
> Can anyone suggest how I can clear this out, using Javascript, before 
> I start up? 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324226
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to