Handling HTML events in .NETCF

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi Everyone,

I am writing a .NET app for a Pocket PC 2003 device, and I am using a
webBrowser control for part of my UI. I am using the DocumentText field
of the browser to define the HTML to be displayed. All of this works
fine.

What I would like to do is when a user hits a link on the HTML page
I've constructed (via a <a href="whatever"></a> tag) I'd like my app to
perform some action - like build another HTML page to display, for
example. And the actions performed to be different, depending on which
link in the page is hit.

In the msdn docs I notice that the webBrowser component is supposed to
have an "ObjectForScripting" field, but this field isn't present in the
webBrowser control I am using (MS Visual Studio 2005).

How can I get interractions between HTML and my app working for a .NET
compact framework app?

I've tried using the "Navigating" event, but within the event handler
there is no way I can see to determine which link on the page was hit
to cause the event.

Any help very greatfully received.

Thanks,
Trevor.

.



Relevant Pages

  • Re: Add/insert a word doc as html doc to app (help file with no .chm)
    ... But since a word doc can be save as an html doc, ... One other thought I had was to use a webbrowser control in the app and write ...
    (microsoft.public.dotnet.languages.vb)
  • Re: CE quick and dirty
    ... This is not meant to be a deliverable app. ... > I will need to use the ActiveX controls to make the HTML pages activate ... a single Indy HTTP server component and a single IBX database component. ... I also faked a very busy WiFi network by running NetMeeting remote ...
    (borland.public.delphi.non-technical)
  • Offline browsing / Controlling network traffic when hosting the webbrowser control to display html p
    ... images in the .html file however will mostly be read from the cache ... (the WebBrowser control only checks the timestamps). ... WebBrowser control cannot resolve relative pathnames to images any ... control navigate to about:blank and load the Html document while ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: 2 Qs re JS scripting
    ... I have an application that presents it user interface in an MDI OLE'd IE6 ... a local html file, I will call this A.HTML, A.HTML will be opened as an MDI ... window within the main app. ...
    (microsoft.public.scripting.jscript)
  • mechanize select_form issue..
    ... i've created a basic test app, and created a stripped down page of html. ... from mechanize import Browser, RobustFactory ...
    (comp.lang.python)