"martin ström" wrote:

try this:

DynAPI.onResize=3DDynAPI. {
    // your code
};
 

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. {

             addLay=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();
 
     }

Thanks
 
 
 
--

bobb

http://64.33.167.222/
 

Reply via email to