Page 1 of 1
How make iFrame
Posted: Sat Sep 06, 2014 2:31 am
by akoozie
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!
Re: How make iFrame
Posted: Sat Sep 06, 2014 4:59 am
by FourthWorld
An iframe is an html object, but you can get a similar result in LiveCode with a group.
Re: How make iFrame
Posted: Sat Sep 06, 2014 2:31 pm
by akoozie
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?
Re: How make iFrame
Posted: Sat Sep 06, 2014 3:50 pm
by dave.kilroy
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
Re: How make iFrame
Posted: Sat Sep 06, 2014 8:55 pm
by akoozie
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!
Re: How make iFrame
Posted: Sat Sep 06, 2014 10:44 pm
by dave.kilroy
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
Re: How make iFrame
Posted: Sat Sep 06, 2014 11:35 pm
by akoozie
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!
Re: How make iFrame
Posted: Sun Sep 07, 2014 8:37 am
by dave.kilroy
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
Re: How make iFrame
Posted: Sun Sep 07, 2014 9:21 am
by dave.kilroy
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