Page 1 of 2

How to put a webview on a mobile page.

Posted: Tue Sep 04, 2012 7:04 pm
by Larry4963687

I would like to put a webview on a page with the builder. It would be on a tab container with some footer buttons. How do I do this with the builder?


How to put a webview on a mobile page.

Posted: Tue Sep 04, 2012 11:01 pm
by maxkatz

In Tiggzi, you always start with a web view, as you start with HTML mobile app. If you need to embed another site, you can do this:

1) You can insert an iframe, similar to the YouTube example: http://help.tiggzi.com/documentation/...

2) Use a PhoneGap ChildBrowser plug-in:
code
var childBrowser = ChildBrowser.install();
window.plugins.childBrowser.showWebPage('http://google.com');
/code


How to put a webview on a mobile page.

Posted: Fri Sep 07, 2012 7:56 pm
by Larry4963687

Can you give some more detailed examples on how to use the child browser. I tried putting option number 2. into the load of the screen with no results.


How to put a webview on a mobile page.

Posted: Fri Sep 07, 2012 8:00 pm
by maxkatz

Do it on click event.


How to put a webview on a mobile page.

Posted: Fri Sep 07, 2012 8:18 pm
by Larry4963687

I dropped a button on the screen added the click event - push the button. Nothing happens. What I'm I missing. Can I share the app with you?


How to put a webview on a mobile page.

Posted: Fri Sep 07, 2012 8:30 pm
by maxkatz

How do you test the app? You have to run it as a hybrid app.


How to put a webview on a mobile page.

Posted: Fri Sep 07, 2012 8:40 pm
by Larry4963687

The project type is set to mobile app and I also tried it on my iPhone by scanning the QR code.


How to put a webview on a mobile page.

Posted: Fri Sep 07, 2012 11:19 pm
by maxkatz

When you scan the QR code you run the app in the browser. If you want to use the ChildBrowser plug-in, it has to be a hybrid (native) app, installed on the phone.


How to put a webview on a mobile page.

Posted: Mon Sep 10, 2012 7:14 pm
by Larry4963687

Ok I've put a button on the mainscreen1 and the on click event I added the var childBrowser = ChildBrowser.install();
window.plugins.chidBrowser.showWebPage('http://google.com');
I compile and load on the iPhone click on the button and nothing happens. What I'm I missing? The app is shared and called xapp.


How to put a webview on a mobile page.

Posted: Mon Sep 10, 2012 7:45 pm
by maxkatz

Try:

cb = window.plugins.childBrowser;
cb.showWebPage("http://google.com");

as per: https://github.com/purplecabbage/phon...