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?