Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

open web page in app

Hi,
I am trying to open a web page in the app using childbrowser,
this is the code I used, however I am missing something,

I have the code on button click

error in console is

ReferenceError: ChildBrowser is not defined
[Break On This Error]

var childBrowser = ChildBrowser.install();

this is the code i used

var childBrowser = ChildBrowser.install();
window.plugins.childBrowser.showWebPage('http://google.com');

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

open web page in app

Michael,

To use child browser run the code:
codewindow.plugins.childBrowser.showWebPage('http://www.google.com', { showLocationBar: true });/code

See docs here: https://github.com/purplecabbage/phon...

This will work after you build IPA or APK only.

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

open web page in app

really nice!

thanks again

sam5863015
Posts: 0
Joined: Thu May 16, 2013 5:50 pm

open web page in app

Where do I use this code within my page?

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

open web page in app

Hello,

The simplest way to use it on button click event. http://docs.appery.io/javascript-api/

sam5863015
Posts: 0
Joined: Thu May 16, 2013 5:50 pm

open web page in app

I followed the link and still now luck this is what I can see Image

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

open web page in app

Did you test it on device?

sam5863015
Posts: 0
Joined: Thu May 16, 2013 5:50 pm

open web page in app

I test it in the appery page test,

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

open web page in app

Please try to test it on device!

sam5863015
Posts: 0
Joined: Thu May 16, 2013 5:50 pm

open web page in app

ok I will try this, is the appery hosting now available, it has been offline for some time,

https://getsatisfaction.com/apperyio/...

Return to “Issues”