Page 1 of 2

open web page in app

Posted: Fri Mar 22, 2013 2:07 pm
by Michael4771079

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');


open web page in app

Posted: Fri Mar 22, 2013 3:16 pm
by Kateryna Grynko

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.


open web page in app

Posted: Fri Mar 22, 2013 3:48 pm
by Michael4771079

really nice!

thanks again


open web page in app

Posted: Sat Sep 14, 2013 7:43 pm
by sam5863015

Where do I use this code within my page?


open web page in app

Posted: Sat Sep 14, 2013 7:53 pm
by Igor

Hello,

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


open web page in app

Posted: Sat Sep 14, 2013 8:05 pm
by sam5863015

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


open web page in app

Posted: Sat Sep 14, 2013 8:09 pm
by Igor

Did you test it on device?


open web page in app

Posted: Sat Sep 14, 2013 8:11 pm
by sam5863015

I test it in the appery page test,


open web page in app

Posted: Sat Sep 14, 2013 8:18 pm
by Igor

Please try to test it on device!


open web page in app

Posted: Sat Sep 14, 2013 8:25 pm
by sam5863015

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

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