"martin ström" wrote:
try this:This is exactly what I was after, unfortunately, right after sending the last request I figured out that I needed to avoid some items running from the onload during the onResize, like creating a dynlayer. I eventually figure it out:DynAPI.onResize=3DDynAPI. {
// your code
};
DynAPI. {ThanksaddLay=new DynLayer(null,null,null,1200,1195,'#c0c0c0');
addLay.setHTML('<IMG SRC="http://spatial.ci.stpaul.mn.us/dynapi/docs/FME_1200.png" ALT="[Query Results]" USEMAP="#MAPPER" BORDER=0 >');
DragEvent.setDragBoundary(addLay,-(1195-this.document.getHeight()+20),(1200-this.document.getWidth()+this.document.getWidth()+20),(1195-this.document.getHeight()+this.document.getHeight()+20),-(1200-this.document.getWidth()+20));DragEvent.enableDragEvents(addLay);
DynAPI.document.addChild(addLay);
addLay.positionInParent('middlecenter');
}DynAPI.onResize=function() {
addLay.deleteAllChildren();
DynAPI.onload();
}
--
bobb
