[mapguide-users] Map Busy

Akram akram at gsg-eg.com
Tue Oct 21 08:19:42 EDT 2008


Hi all;

To put animated GIF related with your map busy if (False or True)

you can use two methods 

(For Map Only)
1.in your main page which contain Map iframe put Div with id = "divRefresh"
as following

<div id="divRefresh" name="divRefresh" class="cssRefresh" style="...YOUR
STYLE...">
  ....YOUR IMAGE.... 
 </div>

2.in viewerfiles/ajaxmappane.templ edit the two functions (OnMapLoading) and
(OnMapLoaded) by replace the folloing lines 

var frmParent = parent.frames["tbFrame"];
var objDivRefresh = frmParent.document.getElementById("divRefresh");

To

var objDivRefresh = parent.parent.document.getElementById("divRefresh");

(For whole page loading)
2.use following script

tryAgain();

function tryAgain()
{
frame=document.getElementById("mapFrame");

if(frame.document.readyState=="complete")
{

document.getElementById('myimg').style.visibility = 'hidden';

}
else
{
setTimeout("tryAgain()",100);
}
}

I hope it is useful ..........




-----
http://gsg-eg.com 
http://n2.nabble.com/file/u111068/head2.jpg 
GeoService 
-- 
View this message in context: http://n2.nabble.com/Map-Busy-tp1359322p1359322.html
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list