Hi

I am converting a site I developed using DynAPI1 to DynAPI 2. I was
using the Scroll2 and MenuList widgets.

To recreate scroll2 I am combining the LoadPanel and ScrollPane objects
as you can see in the code below.

Can anyone shed some light on the following problems.

IE5.1
-----
No apparent problems

NS4.7
-------
1. The scroll bars disappear when the browser is resized. Content is
still displayed in the panel. The scroll bars reappear when I hit
reload.
2. If I activate the code for the list object it doesn't appear. Works
fine in IE5.1, except for problems with mouseovers.
3. Sometime I get this error:

JavaScript Error:
http://localhost/CFCalcs2/src/lib/dynapi/gui/dynimage.js,
line 115:

syntax error.

.loadercheck()entListener(DynImage.listener);
 {

NS6
-----
Nothing works.

-------------------------------------------------------------------------------------------------------------------------------------

<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.loadpanel.js')
DynAPI.include('dynapi.gui.label.js')
DynAPI.include('dynapi.gui.list.js')

// this should be replaced with a default image location based on
DynAPI.librarypath
MetalScrollPaneURL = DynAPI.librarypath+"dynapi/images/mypane/"

DynAPI.onLoad = function() {
    MetalScrollPaneURL = DynAPI.librarypath+"dynapi/images/mypane/"

 infoPanel = new LoadPanel()
 infoPanel.setSize(220,233)
 infoPanel.moveTo(200,199)

 scroller = new ScrollPane(infoPanel)
 scroller.setSize(245,263)
 scroller.moveTo(478,197)

 DynAPI.document.addChild(scroller)

 <cfoutput query="DataSheet">
  infoPanel.setURL('_inc.cfm?washerCode=#washerCode#')
 </cfoutput>

 //list = new List()
 //list.moveTo(5,230)
 //list.setWidth(160)
 //list.setBgColor('#000000')
 //list.boldOnSelect(true)
 //list.setSelectionMode(false)
 //<cfoutput query="baseprofile">
 //list.add("#Trim(Brand)# #Trim(Model)#")
 //</cfoutput>

 //DynAPI.document.addChild(list)
}
//-->
</script>


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/dynapi-help

Reply via email to