Ok,
Now I realize 6 is a beta, and that may account for these things,
but I have some code (follows) that *works* in 5 and 5.5 but not in the new
IE6. Bear in mind that I am new to DynAPI and I this is my first attempt :)
and also *works* means it does what I want but throws errors. Notice I am
loading the kitchen sink on includes in an attempt to catch anything I might
not know about... will streamline later. Another question is also that I
want the showCalendar to delete the layer if it is there, and right now I am
deleting the layer if ANY layer is there. Any thoughts? Is this ugly or
what?
I appreciate any and all help in my struggles... David Hill
<Script language="Javascript" src="/scripts/dynapi/src/dynapi.js"></script>
<Script language="Javascript">
DynAPI.setLibraryPath('/scripts/dynapi/src/lib/')
DynAPI.include('dynapi.api.*')
DynAPI.include('dynapi.gui.*')
DynAPI.include('dynapi.util.*')
DynAPI.include('dynapi.event.*')
</script>
<script language="Javascript">
function showCalendar () {
if (DynAPI.document.children.length>0) {
calBox.deleteFromParent()
} else {
calBox = new DynLayer()
calBox.setSize(150, 160)
calBox.moveTo(5,92)
calBox.setHTML('<IMG SRC="/images/quickcalendar.gif"
USEMAP="#calmap" BORDER=0><MAP NAME="calmap"><area shape="rect"
coords="135,1,150,15"
onClick="javascript:calBox.deleteFromParent();"></MAP>')
calText = new LoadPanel()
calText.setSize(150,145)
calText.moveTo(0,15)
calText.setURL('/scripts/quickcalendar.bb')
calText.getURL()
calBox.addChild(calText)
DragEvent.setDragBoundary(calBox)
DragEvent.enableDragEvents(calBox)
DynAPI.document.addChild(calBox)
// calBoxListener = new EventListener(DynAPI.document)
// calBox.onmousedown=function(e) {
// e.setBubble(false)
// }
// calBox.addEventListener(calBoxListener)
}
}
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help