House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

How to clean out HTML from a CFDIV?

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
John Pullam
07/03/2009 10:04 AM

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?

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave l
07/05/2009 10:02 AM

did you try document.getElementById("whatever").innerHTML=""; ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

March 22, 2010

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
   1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31