hi all,
 
i need your help, after different researches in this mailing list's archive and the dynapi-docs/helps (..) i think i am not able to solve my problem on my own.
 
i want to use the scrollpane, including 2 dynlayers. it need the second because i want to have the ability to show/hide a layer which is placed in the scrollpane.
 
i have build up some testcode:
 
<script language="JavaScript" src="javascript:void(0);"></script>
<script language="JavaScript">
DynAPI.setLibraryPath('../dynapi/src/lib/');
DynAPI.include('dynapi.api.*');
DynAPI.include('dynapi.event.*');
DynAPI.include('dynapi.util.thread.js');
DynAPI.include('dynapi.util.pathanim.js');
DynAPI.include('dynapi.gui.dynimage.js');
DynAPI.include('dynapi.gui.button.js');
DynAPI.include('dynapi.gui.scrollbar.js');
DynAPI.include('dynapi.gui.viewport.js');
DynAPI.include('dynapi.gui.scrollpane.js');
DynAPI.include('dynapi.gui.label.js');
</script>
<script language=javascript>
 
DynAPI. {
 
 testLabel = new Label();
 contentA = new DynLayer(null,testLabel.getX(),testLabel.getY(),null,null,"#cccccc",true,null,null,"<table width=250 height=500><tr><td valign=bottom>Content 1</td></tr></table>") 
 contentB = new DynLayer(null,testLabel.getX()+250,testLabel.getY(),null,null,"#cccccc",true,null,null,"<table bgcolor='yellow' width=100 height=500><tr><td valign=top>Content 2</td></tr></table>")
 testLabel.addChild(contentA);
 testLabel.addChild(contentB);
 scrollobj = new ScrollPane(testLabel);
 scrollobj.setSize(370,320);
 scrollobj.moveTo(415,105);
 scrollobj.setBgColor('blue');
 
 DynAPI.document.addChild(scrollobj);
 }
 
 
</script>

...which works fine on IE(6). but:
 
contentB.setVisible = false        
 
hides the scrollpane as well which definitly isn't the desired effect. and because the code didn't work either in NS 4.x or NS 6.x I think my complete approach to this problem is wrong.
 
important for me is:
- a scrollable object which includes html for a table and html for a layer which i can hide or show. this layer should scroll in dependence with the html-table without using frames.
 
any hints are welcome,
thank you,
frank
 
 
 
 
 
 

Reply via email to