From: Paul G. Tobey [eMVP] paultobey _at_ earthlink _dot_ on 15 Jan 2010 12:09 The browser is permanently linked to the OS version. If you have Windows Mobile 5, you can never add to that the browser from Windows Mobile 6.1, say. The WebBrowser control in .NET CF is just a thin wrapper around the actual WebBrowser control used in Internet Explorer Mobile on the device. It has no significant functionality of its own. There should be at least some JavaScript support in the WM6.1 version of the browser. You may be able to find a list of supported script statements online... Paul T. "badzio" wrote: > How to check the version? It's webbrowser from CF .Net, which I use in > visual studio. Tested on emulator WM6 professional. > > On 15 Sty, 05:02, "Paul G. Tobey [eMVP]" <paul tobey _AT_ earthlink > _DOT_ net> wrote: > > Some versions do, some not. Without knowing what version you're talking > > about, I don't think there's an answer. > > > > Paul T. > > > > "badzio" <bad...(a)gmail.com> wrote in message > > > > news:c3e32914-c1ec-4ce5-9cba-1ab650114e3a(a)21g2000yqj.googlegroups.com... > > Another question - does WebBrowser support javascript? If yes, than is > > any event called when <img /> element got focus? > > I've checked with onfocus and onactivate - doesn't work. > > I use smartphone so focus in html page is changed by cursors. I'd like > > to change source image when <img /> is selected. > > . >
From: Paul G. Tobey [eMVP] paultobey _at_ earthlink _dot_ on 15 Jan 2010 12:11 The device vendor has chosen Opera Mobile as the browser and implemented the WebBrowser control interface (see my other message), in terms of Opera, not Internet Explorer Mobile. As a result, different things happen when you do operations. As you see, Opera opens, presumably because it runs only as a separate application, not as an embeddable control. The device vendor may have provided some way to switch the default browser, which might work for you, if you can live with changing a global setting on the device... Paul T. "badzio" wrote: > More details. On SE xperia is launched Opera Mobile to open html from > local storage. > so: > browser.Navigate(new Uri("\\temp\\page.html")) > on spv e650 nothing happens, on xperia Opera Mobile is launched > browser.Navigate(new Uri("http://www.google.pl")) > on e650 and xperia embedded webbrowser, control from application, is > used > Why? > > On 15 Sty, 11:19, badzio <bad...(a)gmail.com> wrote: > > Something strange.. this solution works fine on emulator. > > On SPV e650 browser doesn't show page loaded from local storage. > > Display is empty. I load: > > browser.Navigate(new Uri("\\temp\\page.html")) > > path is valid because if I use incorrect filename than webbrowser > > shows error 'not found' > > If I load page from internet - that's ok. > > > > On 15 Sty, 00:18, badzio <bad...(a)gmail.com> wrote: > > > > > Yeah, I've solved that problem by writing html on the device and load > > > it from local storage. Hope that client'll accept creating temporary > > > file :) > > > But if anybody solve that problem another way, I'd be greatful > > > > > On 14 Sty, 22:33, Paul G. Tobey [eMVP] <paultobey _at_ earthlink _dot_ > > > > > net> wrote: > > > > I guess that, if you've checked everything that could work for the case of > > > > setting the document text explicitly, maybe you should look at other methods > > > > of getting the browser object to load your generated page (generate it to > > > > disk and point the browser to it, etc.) > > > > > > Paul T. > > > > > > "badzio" wrote: > > > > > I didn't find any method to tell WebBrowser what's the root. file:// > > > > > didin't help. > > > > > > > On 13 Sty, 20:02, Paul G. Tobey [eMVP] <paultobey _at_ earthlink _dot_ > > > > > net> wrote: > > > > > > Wouldn't that need to be "file://temp/image.png" or something like that? The > > > > > > problem is likely to be that the WebBrowser doesn't know what the root path > > > > > > from which the HTML was loaded is, so it can't interpret \temp\image.png. > > > > > > That is \ related to where? What server? There might be some way to tell > > > > > > the WebBrowser object that information before you set up the document text, I > > > > > > suppose... > > > > > > > > Paul T. > > > > > > > > "badzio" wrote: > > > > > > > Hi, > > > > > > > > > I've new problem with WebBrowser :) > > > > > > > I generate html document at runtime and display it in webbrowser using > > > > > > > code: > > > > > > > WebBrowser webbrowser; > > > > > > > String myHtmlDoc; > > > > > > > webbrowser = new WebBrowser(); > > > > > > > myHtmlDoc = @"<html>message to display <img='\temp\image.png' \></ > > > > > > > html>"; > > > > > > > webbrowser.DocumentText = myHtmlDoc; > > > > > > > > > the result is: > > > > > > > I see text 'message to display' but instead of image I see 'red X' - > > > > > > > you know, the image which is shown when browser cannot find the image > > > > > > > to display. > > > > > > > Ofcourse path \temp\image.png is valid, this file exists. > > > > > > > If I create a document on the device with mentioned content and load > > > > > > > it to webbrowser (using Navigate()) than image is displayed. > > > > > > > If I use image from network: > > > > > > > myHtmlDoc = @"<html>message to display <img='http://server/image.png' > > > > > > > \></html>"; > > > > > > > than the image is displayed. > > > > > > > Seems that in DocumentText cannot contain reference to image on the > > > > > > > device. Does anybody know how to solve that problem? > > > > > > > . > > > > > > > . > > . >
First
|
Prev
|
Pages: 1 2 3 Prev: XML Serializer in CF (continued) Next: SQLServerCE 3.5 problem on WinCE |