Topic
  • 3 replies
  • Latest Post - ‏2012-11-08T14:28:25Z by christianIBM
IshitaJain
IshitaJain
20 Posts

Pinned topic How to open a new html page in your mobile app?

‏2012-11-08T00:11:37Z |
Very simple question

But, I am trying to open a new html page using simple code:

window.open("Page1.html");

it does open the page fine but I am using Worklight's Mobile Browser Simulator, and the new window opens into a new tab of the browser instead of inside the simulator itself.

Any ideas, how can I open a new page in the webview of simulator and not in the browser of my computer?

Thanks!
  • IshitaJain
    IshitaJain
    20 Posts

    Re: How to open a new html page in your mobile app?

    ‏2012-11-08T00:15:18Z  
    FYI: I did use $.mobile.loadPage("Page1.html");
    But, it did not work :(
  • SystemAdmin
    SystemAdmin
    2327 Posts

    Re: How to open a new html page in your mobile app?

    ‏2012-11-08T01:25:00Z  
    FYI: I did use $.mobile.loadPage("Page1.html");
    But, it did not work :(
    I use PhoneGap childbrowser plugin for child window, it open page at another window, we can return after new window closed.

    https://github.com/phonegap/phonegap-plugins/tree/master/Android/ChildBrowser
  • christianIBM
    christianIBM
    78 Posts

    Re: How to open a new html page in your mobile app?

    ‏2012-11-08T14:28:25Z  
    I would refer to the following thread, the info there may help : http://www.ibm.com/developerworks/forums/thread.jspa?threadID=460512&tstart=0

    -Worklight Development Team, iOS-Christian Linares