Opening URLs with default browsers


Asley Cruz
Hi David,
I would like to know how to open an URL with default browser on Windows (Firefox, Chrome...)
with a button inside an HTML control, using AB2 and Electron.

Thanks in advance.
AsleyCruz.com

Graphic & Web Designer


My app: AC Biblia

My game: AC Trivlia


DecSoft

Hello Asley,

Maybe you want to investigate a bit more, for example, here in this Electron's issue. The basis can be the below piece of code:

Please, post here if you have any further questions!



Asley Cruz
Thanks David, for your time,
I will give it a try... one more question. I DON'T want to close my app on pressing "Back button" on Android.
How can I avoid this?

Have a nice week.
AsleyCruz.com

Graphic & Web Designer


My app: AC Biblia

My game: AC Trivlia


DecSoft

Hello Asley,

Prevent the default behaviour of the back button cannot be more easy, just use the below code in the app's "BackButton" event:

However, maybe you already try something like that and cannot see it working... this is due to a bug in DecSoft App Builder, which is has been fixed right now, so, update your copy and try it, Asley.

P.S. Please, maintain different questions separated in different threads: don't hesitate to open all the threads that you needed! I know you add a second question to this thread because it's the "Email style", just reply with other question... but here in the forum, maintain different threads for different questions is good. :-)


Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.

Este sitio utiliza "cookies" útiles para almacenar sus preferencias.

Bien. Ocultar esta nota. Obtener más información.