Button on DesktopHtmlViewer Not Responding

Using the HtmlViewer to display a web page. The page provides a means to upload a file. One can either tap a button (to get open file dialog) or drag the file onto the page.

Dragging the file works. The button does not.

The button is tapped, but nothing happens.

Is there some setting?

Where is the button? Is it a button on the HTML layout or a Xojo button? A Xojo button ON TOP OF an HTMLviewer is unlikely to do much of anything. You will need a button being part of the HTML in the viewer. You will then have to use javascript in the viewer to send a message to the Xojo side of the app to put up an open file dialog, and send the result back to the HTMLViewer.

The button is part of the web page (a Google map page) that is simply being displayed for the user to interact with.

OK. What is the code for the button’s event handler?

The button is on the web page we’re looking at. It’s not something in the app. We’re just using the HTML viewer to look at a specific page.

The app is designed to simplify a process that used to have several pages of instructions. It basically lets users interact with two web sites without having them deal with navigation.

Then you may need to do something in the CancelLoad event of the HTMLViewer. You may have to use system.GotoURL to get the effect you want.