macromedia.coldfusion.cfml_general_discussion
[Top] [All Lists]

How to fix this?

Subject: How to fix this?
From: "Javagene"
Date: Mon, 6 Aug 2007 20:44:22 +0000 UTC
Newsgroups: macromedia.coldfusion.cfml_general_discussion
I implemented expand and collapse.

 But, when i click on plus image to expand....all record gets expand.....

 same with...when i click on minus image to collapse.......all record gets 
collapse.

 When i click on one image, it should only expand that record.....
 same way, when i click on one record, it should collapse that record 
only.....how can i change this to work correct way?.


 <cfoutput query="status_select"> 
        <tr <cfif CurrentRow mod 
2>bgcolor="eereer"<cfelse>bgcolor="ffffff"</cfif>>
         <td valign="top">
                <img src="plus.jpg" 
onClick="expandCollapse('div','detailsPage', 
event);"/>                                      
         </td>                  
         <td>#id#
                <div detailsPage="true" style="display:none;">                  
                                
                <cf_status id="#id#>
                    #status_desc#                                       
                </div>
         </td>
                
        </tr>   
 </cfoutput> 


<Prev in Thread] Current Thread [Next in Thread>