Try this ...
<html>
<head>
...
<script language="Javascript" src="../src/dynapi.js"></script>
<script language="Javascript">
DynAPI.setLibraryPath('../src/lib/')
DynAPI.include('dynapi.api.*');
DynAPI.include('dynapi.util.thread.js');
DynAPI.include('dynapi.util.pathanim.js');
DynAPI.include('dynapi.gui.buttonimage.js');
DynAPI.include('dynapi.gui.scrollbar.js');
DynAPI.include('dynapi.gui.viewport.js');
DynAPI.include('dynapi.gui.scrollpane.js');
DynAPI.include('dynapi.gui.dynimage.js');
DynAPI.include('dynapi.gui.label.js');
DynAPI.include('dynapi.gui.loadpanel.js')
// this should be replaced with a default image location based on
DynAPI.librarypath
MetalScrollPaneURL = DynAPI.librarypath+"/dynapi/images/scrollpane/"
DynAPI.onLoad = function() {
MetalScrollPaneURL = DynAPI.librarypath+"/dynapi/images/scrollpane/"
lp = new LoadPanel();
lp.setSize(350,250); // height will be overwritten by default
lp.moveTo(10,10);
lp.setBgColor('red');
counter = 0;
var el = new EventListener()
el.onload = function(e) {
status = 'got load event '+ counter++;
}
lp.addEventListener(el)
scrollobj = new ScrollPane(lp) // loadpanel will be set as the content
scrollobj.setSize(350,250)
scrollobj.moveTo(250,50)
scrollobj.setBgColor('#c0c0c0')
DynAPI.document.addChild(scrollobj)
lp.setURL("file.htm") // load your external file here...
}
</head>
<body>
...
</body>
</html>
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Chris Simon
Sent: Thursday, January 04, 2001 1:33 PM
To: '[EMAIL PROTECTED]'
Subject: [Dynapi-Help] combination loadpanel-scrollpane-div
Does anyone has an example of a combination of LoadPanel, ScrollPane, and
InLine DIV. I'm trying to combine these so that I can create an inline
relative positioned div with a scrollable external html content.
From: Chris Simon
HNTB New Media
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/dynapi-help
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/dynapi-help