CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Tips & Solutions

 Directory Menu javascript mod

Print topic Send  topic

Author Message
dragoon


Posts: 173
Posted: 01/09/2006, 2:42 AM

a slight modification that will open only a category at a time from this menu (opening a new category we'll make the previous hidden)

in the ccs example pack 2 replace function expandit(curobj) with this:

  
//dont' forget this; here it will be stored the id of the current opened category  
var temp_catrow;  
  
function expandit(curobj){  
	if (DomYes) {  
  		var catrow=document.getElementById("cat_"+curobj.id);  
	} else {  
		var catrow=document.all["cat_"+curobj.id];  
	}  
  
	if (temp_catrow) {  
		if (temp_catrow != catrow) {  
			catrow.style.display = "none" ? "block" : "none";  
			temp_catrow.style.display = "none" ? "none" : "block";  
		}  
	}  
	else {  
		catrow.style.display = "none" ? "block" : "none";  
	}  
	temp_catrow = catrow;  
}  
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.