Search code examples
iframejquery-mobilewebdialogexternal

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.


Solution

  • try this out.. https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/ChildBrowser

    works fine for loading external link, within the app