[mapguide-users] Help with setting default map action
Jackie C. Ng
jumpinjackie at gmail.com
Mon Sep 22 07:32:17 EDT 2008
It's most likely a timing issue whereby you are accessing the DOM before it
has been fully initialized.
Have you tried the technique described below?
http://trac.osgeo.org/mapguide/wiki/CodeSamples/JavaScript/AJAXViewerEventHooking
- Jackie
Dragan Podvezanec wrote:
>
> Hi all.
>
> I'm trying to set default action in ajax viewer to be PAN instead of
> SELECT.
>
> So, I did in web layout URL for home task in task pane pan.php , and
> pan.php looks like:
>
> <html>
> <head>
> <script language="javascript">
> function OnPageLoad()
> {
> parent.parent.mapFrame.ExecuteMapAction(4);
> }
> </script>
>
> </head>
> <body onload="OnPageLoad()">
>
> </body>
> </html>
>
> I tried also other actions, but anyway, I get error:
>
> parent.parent.mapFrame.ExecuteMapAction is not a function
>
> So, what is wrong with this, and is there any other way to set default
> viewer action to PAN ?
>
-----
http://themapguyde.blogspot.com
http://www.linkedin.com/in/jackieng
--
View this message in context: http://www.nabble.com/Help-with-setting-default-map-action-tp19604509p19606185.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list