Monday, November 08, 2010 at 12:00 AM.


on getExpandCollapseIcon (id, flInitiallyExpanded=true, showClassName="show") {
		<<7/7/10; 11:51:15 AM by DW
			<<Allow the caller to name the class for non-hidden text. This makes it possible to indent, when it's an outline, and not indent when it's just two levels (as it is on the index pages).
		<<6/13/10; 11:11:00 AM by DW
			<<Factored ugly bits that were propogating wildly. :-)
	local (iconname);
	if flInitiallyExpanded {
		iconname = "minus"}
	else {
		iconname = "plus"};
	return ("<a href=\"javascript:expandCollapse('" + id + "','" + showClassName + "');\"><img class=\"expandIcon\" border=\"0\" align=\"left\" id=\"img_" + id + "\" src=\"" + iconname + ".gif\"></a>")};
bundle { //test code
	webbrowser.displaytext (getExpandCollapseIcon ("ohYouShutUp"))}

This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.