Here the code i tested to share with u all.. -----------------------------------------
Invoke Script Function : On / Off Legend Properties Script : if(parent.frames[1].document.getElementById("InfoBand").style.width == '0px') { parent.frames[1].minInfoWidth=20; parent.frames[1].ResizeTo(200); parent.frames[1].InitialMapView(); } else { parent.frames[1].minInfoWidth=0; parent.frames[1].ResizeTo(0); parent.frames[1].document.getElementById("LayerCaption").style.width = 0; parent.frames[1].document.getElementById("LegendCtrl").style.width = 0; parent.frames[1].document.getElementById("PropertyCaption").style.width = 0; parent.frames[1].document.getElementById("PropertyCtrl").style.width = 0; parent.frames[1].InitialMapView(); } Function : Real Time Refresh Script : window.setInterval('GetMapFrame().Refresh()', 300); -- View this message in context: http://www.nabble.com/Share-an-Invoke-Script----tp20825504p20826576.html Sent from the MapGuide Users mailing list archive at Nabble.com. _______________________________________________ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users