Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I launch an external website in JQuery Mobile without leaving the app?

I'm working on a PhoneGap+JQM app that allows the operator to view our website. If we do a normal target="_blank", it launches Safari but doesn't provide an easy way to return to the app.

Has anyone figured out a good way to launch an external website in JQM in a dialog or with a closeable header? So far I've stuffed an iframe into a dialog and it is sorta working, but it feels a bit klugey.

like image 653
Anthony Avatar asked Dec 05 '25 08:12

Anthony


1 Answers

Use dialogs. It acts as a popup in which you can add any content you want. User can close the popup and return back to your application. It won't feel nice unless the external website is designed for mobile devices.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!