[mapguide-users] Share an Invoke Script ??

ajid1980 ah_jid at yahoo.com
Wed Dec 3 22:23:26 EST 2008


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.



More information about the mapguide-users mailing list