How make iFrame

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
akoozie
Posts: 4
Joined: Sat Sep 06, 2014 2:23 am

How make iFrame

Post by akoozie » Sat Sep 06, 2014 2:31 am

Hey,
I'm trying to create a new app with my focus on Linux, and I need to make an iframe, I don't know if is the best solution. For example I have the start screen, and I click youtube icon and it goes for the youtube page but I want a home button on the bottom, like Tab Bar of iOS.
Thanks!

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: How make iFrame

Post by FourthWorld » Sat Sep 06, 2014 4:59 am

An iframe is an html object, but you can get a similar result in LiveCode with a group.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

akoozie
Posts: 4
Joined: Sat Sep 06, 2014 2:23 am

Re: How make iFrame

Post by akoozie » Sat Sep 06, 2014 2:31 pm

FourthWorld wrote:An iframe is an html object, but you can get a similar result in LiveCode with a group.
Thanks! And how I do that? xD is there any tutorial, or you can teach me how?

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: How make iFrame

Post by dave.kilroy » Sat Sep 06, 2014 3:50 pm

hi akoozie

Inserting an iFrame into your html code is very easy (just google 'iframe' for lots of tutorials) but at its simplest is along the lines of:

Code: Select all

<iframe src="https://www.youtube.com" style="width: 90%; height: 300px"></iframe>
But as Richard says, this is not LiveCode ... in LiveCode you can use buttons or groups (or other objects) which, when clicked, could act to take you to the "youtube page" in your app which would contain a browser object set to open a particular page from youtube's website - is that the kind of thing you want?

If you can you give us more details of what you are trying to do then we can help more

Kind regards

Dave
"...this is not the code you are looking for..."

akoozie
Posts: 4
Joined: Sat Sep 06, 2014 2:23 am

Re: How make iFrame

Post by akoozie » Sat Sep 06, 2014 8:55 pm

dave.kilroy wrote:hi akoozie

Inserting an iFrame into your html code is very easy (just google 'iframe' for lots of tutorials) but at its simplest is along the lines of:

Code: Select all

<iframe src="site" style="width: 90%; height: 300px"></iframe>
But as Richard says, this is not LiveCode ... in LiveCode you can use buttons or groups (or other objects) which, when clicked, could act to take you to the "youtube page" in your app which would contain a browser object set to open a particular page from youtube's website - is that the kind of thing you want?

If you can you give us more details of what you are trying to do then we can help more

Kind regards

Dave
Yes, I want for example, I had the home of app, and had for example Youtube Icon and I click and open the page but appears a Home Button on the bottom, exactly like an iFrame.
Thanks!

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: How make iFrame

Post by dave.kilroy » Sat Sep 06, 2014 10:44 pm

Hi akoozie

I'm afraid I'm still in the dark as to what you want to do...

Are you building for Linux or iOS/Android?

When you said "exactly like an iFrame" how were you thinking your app would be? For example were you thinking that the entire window of your app would be a browser window with an iFrame taking up a central portion of the app with a segment along the buttons outside the iFrame but still inside the browser where a series of navigation buttons would be? If so then I suggest that the browser control does not take up quite so much room on your app and leaves space for your navigation buttons along the bottom (as well as maybe a navigation/header bar along the top).

Can you be more specific about what you want to achieve?

Kind regards

Dave
"...this is not the code you are looking for..."

akoozie
Posts: 4
Joined: Sat Sep 06, 2014 2:23 am

Re: How make iFrame

Post by akoozie » Sat Sep 06, 2014 11:35 pm

dave.kilroy wrote:Hi akoozie

I'm afraid I'm still in the dark as to what you want to do...

Are you building for Linux or iOS/Android?

When you said "exactly like an iFrame" how were you thinking your app would be? For example were you thinking that the entire window of your app would be a browser window with an iFrame taking up a central portion of the app with a segment along the buttons outside the iFrame but still inside the browser where a series of navigation buttons would be? If so then I suggest that the browser control does not take up quite so much room on your app and leaves space for your navigation buttons along the bottom (as well as maybe a navigation/header bar along the top).

Can you be more specific about what you want to achieve?

Kind regards

Dave
The app will be for Linux (Debian) and will be with touch screen, and will have one button for go to the home.

i.imgur com/z5G8EFB.png

Thanks!

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: How make iFrame

Post by dave.kilroy » Sun Sep 07, 2014 8:37 am

Hi

I'm afraid your attempt to include a link was thwarted by the forum settings (don't think it lets you put in a link until you have made a minimum number of postings). I tried putting "i.imgur com/z5G8EFB.png" (adding a period before "com") in my browser but it didn't resolve to anything

Could you try posting a link to your image again by ensuring that what you post will still work if it is turned into plain text by the forum software?

OR - find some other way of describing your plans...

Dave
"...this is not the code you are looking for..."

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: How make iFrame

Post by dave.kilroy » Sun Sep 07, 2014 9:21 am

Hi akoozie - I'm including a link to a lesson on how to use the browser control (should have done that on my first posting) - hopefully this will give you pointers on what you need to do - if it doesn't help then come back to us with questions

http://lessons.runrev.com/m/4069/l/2283 ... er-control

Good luck and have fun!

Dave
"...this is not the code you are looking for..."

Post Reply