[mapguide-users] Can anyone tell me why I can't do a refresh
martin.morrison at edsi.com
Fri Dec 14 16:42:25 EST 2007
Refesh() or Refresh()????
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Kenneth,
Sent: Friday, December 14, 2007 4:18 PM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Can anyone tell me why I can't do a
The frame hierachy problem aside, the function is called "Refesh()" not
Also, most frames have a function called "GetMapFrame()", that will ease
the problem of finding the right frame.
Regards, Kenneth, GEOGRAF A/S
> do the refresh. If I place an html button in the page and execute
> parent.parent.mapFrame.refresh(); It refreshes the map with my group
> off. For some reason, when I execute the sub as shown below,
> parent.parent.mapFrame is not valid but parent.mapFrame is. Same page
> the html button but obviously executed differently. The debugger
> parent is viewFrame in this context and parent.mapFrame is valid.
> the refresh throws an error saying object or method does not exist. I
> like I'm missing something obvious but cannot discover what it is.
> have any help.
> Thanks in advance.
> Protected Sub RadioButton1_CheckedChanged(ByVal sender As Object,
ByVal e As
> Dim mySiteConnection As New MgSiteConnection
> Dim myUserInfo As New
> Dim myFeatureService As MgFeatureService =
> Dim myResourceService As MgResourceService =
> Dim myMap As New MgMap
> myMap.Open(myResourceService, m_CurrentMap())
> Dim myLayerGroup As MgLayerGroup = Nothing
> Dim myLayerGroups As MgLayerGroupCollection =
> Dim i As Integer = 0
> For Each myLayerGroup In myLayerGroups
> If myLayerGroup.Name = "Group1" Then
> End If
> Dim myKey As String = "mapRefresh"
> If Not Page.ClientScript.IsStartupScriptRegistered(Me.GetType,
> myKey) Then
> Dim myScript As String = "parent.mapFrame.refresh();"
> Page.ClientScript.RegisterStartupScript(Me.GetType, myKey,
> myScript, True)
> End If
> End Sub
mapguide-users mailing list
mapguide-users at lists.osgeo.org
More information about the mapguide-users