Webbrowser

Discussion in 'Questions (Windows Mobile)' started by Georg, May 7, 2008.

  1. Georg

    Georg Member Licensed User

    Hallo

    why works this on the desktop and not at the device?

    Sub App_Start
    url = "http://www.vhs-brandenburg.de/googlemap.html?lat=52.4028&lon=12.5547"

    Form1.Show
    web.New1("Form1",0,22,240,223)

    web.url = url 'either Navigate or assigning to Url will load the web page

    End Sub
     
  2. agraham

    agraham Expert Licensed User

    That link does not work on my desktop either. I know of no problems with the WebBrowser on the device.
     
  3. Georg

    Georg Member Licensed User

    Hello agraham,

    it works on my Desktop, but not at the Device, kann you check this for me?

    Sub Globals
    'Declare the global variables here.
    End Sub

    Sub App_Start
    url = "http://www.vhs-brandenburg.de/googlemap.html?lat=52.4028&lon=12.5547"
    'url = "http://www.vhs-brandenburg.de/"
    Form1.Show
    web.New1("Form1",0,22,240,223)

    web.url = url 'either Navigate or assigning to Url will load the web page

    End Sub


    Sub Button1_Click
    'web.Navigate(Textbox1.Text)
    web.url = Textbox1.Text 'either Navigate or assigning to Url will load the web page
    End Sub

    Sub Button2_Click
    For i = 0 To 4
    HtmStr = HtmStr & "<tr>" & crlf
    HtmStr = HtmStr & "<td " & Chr(34) & "width=33%" & Chr(34) & " style= " & Chr(34) & "white-space:normal" & "; " & "background-color:#E0E0E0" & Chr(34) & ">" & "<a href='" & "Choice" & i& "'>" & i & "</a></td>" & crlf
    HtmStr = HtmStr & "</tr>" & crlf
    Next
    web.DocumentText = HtmStr
    End Sub
    'Sub web_DocumentCompleted
    ' Msgbox("Completed", web.Url)
    'End Sub

    Sub web_Navigating
    msg = "Navigating to" & crlf & web.NavigatingURL
    If Checkbox1.Checked Then
    web.CancelNavigate = true
    msg = msg & crlf & "cancelled"
    End If
    'Msgbox(Msg)
    End Sub

    Sub web_Navigated
    'Msgbox("Navigated to" & crlf & web.Url)
    Textbox1.Text = web.Url
    End Sub
     
  4. agraham

    agraham Expert Licensed User

    That site needs JavaScript which I believe the WebBrowser control does not understand. I'm not sure about this but it might depend upon the OS you are using. I haven't found a definitive yes/no but your link does not work on my WM2003 device whereas other links do so it must be something to do with the contents of that page - JavaScript is the obvious one! (but then ...?)
     
    Last edited: May 7, 2008
  5. alfcen

    alfcen Well-Known Member Licensed User

    Hi Georg,

    agraham is correct, the Pocket IE does not support JavaScript that is required for panning Google maps.

    As far as I'm aware, the only access point which allows selection of magnifications in the PIE is
    52.4028,12.5547 - Google Maps

    Else you can download static maps only.

    If viewing Google maps is the only purpuse of your endeavor then I recommend the latest GoogleMaps.CAB for Windows Mobile.
    http://www.googlemaps.com/gmm/GoogleMaps.CAB
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice