Thanks... I appreciate the reply. This code does work for external HTML
placed in a scrollpane, however it will not insert into a DIV tag with
relative positioning. So... here is my question?? Are the scrollpane and
loadpanel constructed to work are absolute position dynlayers only... or is
there some possibility that they could be inserted into a div tag with
relative positioning.
From: Chris Simon
HNTB New Media
[EMAIL PROTECTED]
-----Original Message-----
From: Christopher Go [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 04, 2001 4:20 PM
To: [EMAIL PROTECTED]
Subject: RE: [Dynapi-Help] combination loadpanel-scrollpane-div
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