Hi Akram.

There exists a page where you can share such samples with others:
http://trac.osgeo.org/mapguide/wiki/CodeSamples

It would be great if you were to create a new page, and insert your example.

Regards, Kenneth Skovhede, GEOGRAF A/S



Akram skrev:
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
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to