Hey Richard. Again, with little knowledge of the new APIs, here are some potential solutions:
- The JS API `window` has a few existing methods to display a dialog: alert <https://developer.mozilla.org/en-US/docs/Web/API/Window/alert> (dialog with OK button), confirm <https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm> (dialog with OK & cancel buttons), and prompt <https://developer.mozilla.org/en-US/docs/Web/API/Window/prompt> (dialog with OK & cancel buttons and an input field). You can run these in the context of the page. - Inject your own custom HTML prompt in the page the user is interacting with – you could model it after the JS prompts or existing Android prompts. There are also open source libraries for this (some examples, which I have not vetted myself: bootbox <http://bootboxjs.com/> and vex <http://github.hubspot.com/vex/docs/welcome/>). Hope it helps! - Mike (:mcomella) <http://github.hubspot.com/vex/docs/welcome/> On Wed, Aug 2, 2017 at 2:41 AM, Richard Z <r...@linux-m68k.org> wrote: > Hi, > > On Tue, Aug 01, 2017 at 12:31:17PM -0600, Eric H. Jung wrote: > > > Opening a new tab with your prompt written in HTML might be the closest > > solution. > > > > That is one choice. Another is to put the prompt in a page that is > > displayed from a browser action. Without more context around when you use > > the prompt, it's difficult to give a good replacement. > > what it should do is to display a simple menu when the user taps > on some content of the webpage. Switching to a different tab for > the menu seems like it could be very confusing for the user, > especially as it is intended as a help for those over 16 agers that > have occassional problems with the normal interface and touchy > touchscreens. > > Richard > > -- > Name and OpenPGP keys available from pgp key servers > >
_______________________________________________ mobile-firefox-dev mailing list mobile-firefox-dev@mozilla.org https://mail.mozilla.org/listinfo/mobile-firefox-dev