How make iFrame
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
How make iFrame
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!
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!
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: How make iFrame
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
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: How make iFrame
Thanks! And how I do that? xD is there any tutorial, or you can teach me how?FourthWorld wrote:An iframe is an html object, but you can get a similar result in LiveCode with a group.
-
- VIP Livecode Opensource Backer
- Posts: 858
- Joined: Wed Jun 24, 2009 1:17 pm
- Contact:
Re: How make iFrame
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:
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
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>
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..."
Re: How make iFrame
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.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:
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?Code: Select all
<iframe src="site" style="width: 90%; height: 300px"></iframe>
If you can you give us more details of what you are trying to do then we can help more
Kind regards
Dave
Thanks!
-
- VIP Livecode Opensource Backer
- Posts: 858
- Joined: Wed Jun 24, 2009 1:17 pm
- Contact:
Re: How make iFrame
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
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..."
Re: How make iFrame
The app will be for Linux (Debian) and will be with touch screen, and will have one button for go to the home.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
i.imgur com/z5G8EFB.png
Thanks!
-
- VIP Livecode Opensource Backer
- Posts: 858
- Joined: Wed Jun 24, 2009 1:17 pm
- Contact:
Re: How make iFrame
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
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..."
-
- VIP Livecode Opensource Backer
- Posts: 858
- Joined: Wed Jun 24, 2009 1:17 pm
- Contact:
Re: How make iFrame
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
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..."