Page 1 of 1

Webview help

Posted: Wed Feb 05, 2014 5:19 am
by saviour
Hi everyone,

I am new to Livecode programing. Please help me out.

I want to create two cards, one has two buttons and another one has webview component. So what will be scripts so that one click of button will open one webpage and another button will open another webpage in the another card with webview panel???

As i know "launch" button scrip will open webpage in default browser, but I dont want that. I want it to open inside the application.

Anybody please...

Re: Webview help

Posted: Wed Feb 05, 2014 5:38 am
by Simon
Hi saviour,
Welcome to the forum :)

What you are trying to do is very easy in liveCode!
Here is the lesson on adding a browser to a mobile stack;
http://lessons.runrev.com/s/lessons/m/4 ... er-control
Now that builds a whole browser, probably more than you need for now. It does show you everything you'll need to do what you've asked.

Simon

Re: Webview help

Posted: Wed Feb 05, 2014 6:17 am
by saviour
Thanks for your response. Really appreciate that.

I have also checked that lessons. It has revbrowser embedded in the card. But what I wanted was keep button and revbrowser seperately in two different cards. May be script in the button in open card to open another card with revbrowser with predefined url.

So is it possible in Livecode??

Re: Webview help

Posted: Wed Feb 05, 2014 6:32 am
by Simon
This is where I say...
"Give it a try" :)

You have the right idea.

Simon