Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Webbrowser

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-07-2008, 06:46 AM
Knows the basics
 
Join Date: Jan 2008
Posts: 78
Default Webbrowser

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
Reply With Quote
  #2 (permalink)  
Old 05-07-2008, 08:23 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

That link does not work on my desktop either. I know of no problems with the WebBrowser on the device.
Reply With Quote
  #3 (permalink)  
Old 05-07-2008, 08:47 AM
Knows the basics
 
Join Date: Jan 2008
Posts: 78
Default

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
Reply With Quote
  #4 (permalink)  
Old 05-07-2008, 10:12 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

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 by agraham : 05-07-2008 at 10:18 AM.
Reply With Quote
  #5 (permalink)  
Old 05-07-2008, 11:23 AM
alfcen's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu Islands
Posts: 810
Send a message via Skype™ to alfcen
Awards Showcase
Beta Tester 
Total Awards: 1
Default

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
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
WebBrowser & HTML help needed tsteward Questions (Windows Mobile) 0 10-23-2008 09:34 AM
webbrowser Paul Sharp Questions (Windows Mobile) 1 05-19-2008 01:07 PM


All times are GMT. The time now is 09:24 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0