Webview help

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
saviour
Posts: 26
Joined: Wed Feb 05, 2014 5:11 am

Webview help

Post by saviour » Wed Feb 05, 2014 5:19 am

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...

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Webview help

Post by Simon » Wed Feb 05, 2014 5:38 am

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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

saviour
Posts: 26
Joined: Wed Feb 05, 2014 5:11 am

Re: Webview help

Post by saviour » Wed Feb 05, 2014 6:17 am

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??

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Webview help

Post by Simon » Wed Feb 05, 2014 6:32 am

This is where I say...
"Give it a try" :)

You have the right idea.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply