HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
iframe question
Goto page Previous  1, 2
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame
View previous topic :: View next topic  
Author Message
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8255
Location: Castle Rock CO USA

PostPosted: Fri Aug 03, 2007 3:11 am     Reply with quote



An iframe page consists of two pages - the iframe source and the page that calls that iframe. The user will see the iframe that calls the iframe when they type it into the browser.

_________________
Corey
Toll Free Numbers for Real Estate Agents | Merchant Accounts
autumn



Joined: 19 Jul 2007
Posts: 13

PostPosted: Fri Aug 03, 2007 6:01 am     Reply with quote

can you explain it a bit further please? I still don't get how it works.
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8255
Location: Castle Rock CO USA

PostPosted: Fri Aug 03, 2007 6:48 am     Reply with quote

You posted an image of some code previously with an iframe name. Unfortunately I don't want to reference that since it is an image but you have in there something like
Code:
<iframe name="innerframe" ....></iframe>
And it seems that you have put in the width and height of 100%, so what good is this iframe actually? You are not seeing http://www.example.com but the frame in the src instead.

I(frames) are usually used when you need to replicate text across the website but included content is better.

In your code that you provided, you type in an URL in your browser, but you are actually seeing http://www.szeman.50webs.com since you are using percentages (100%) in the width / height.

_________________
Corey
Toll Free Numbers for Real Estate Agents | Merchant Accounts
autumn



Joined: 19 Jul 2007
Posts: 13

PostPosted: Fri Aug 03, 2007 8:02 am     Reply with quote

What should I do then? I don't get how the percentage of the width & height work, beside don't they have to be 100%? What I did was I just copied and pasted the code into my HTML text editor, and then made a few adjustments with the html pages. So if I want my main page to display the page that I wanted (page1), then I should put page1 html into the src?
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8255
Location: Castle Rock CO USA

PostPosted: Sat Aug 04, 2007 4:16 am     Reply with quote

Why do you need to use iframes? Why not just point users to the correct link? Since you are using 100% it is not like they are seeing two page web pages (like most (i)frames are).

_________________
Corey
Toll Free Numbers | Merchant Accounts
autumn



Joined: 19 Jul 2007
Posts: 13

PostPosted: Sat Aug 04, 2007 5:31 pm     Reply with quote

Well, the reason that I decided to use iframes is that everytime I wanted to change my layout or want to edit something on it, I don't have to go and fix all of the other pages. Beside iframes would allow my page to stay stationary when I click to other pages of my website. Without iframes, getting from this page to another would cause flickering, which annoyed me alot. I didn't know that iframes exist until one of my online friend told me about it. A lot of the webpages that I visited use iframes and for some reason, I just really like the way it works. I would really appreciate it if you can help me with my problem. I already got all of my pages loaded into the frames of my main page. Now I only need the frame on my main page to load in a particular page when I type in the webpage address. My webpage layout has the graphic, welcome banner on the left and the iframe on the right. All of the other pages will get loaded into the frames on the right.
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8255
Location: Castle Rock CO USA

PostPosted: Sun Aug 05, 2007 2:17 am     Reply with quote

Consider using included content. SSI was developed for this purpose - changing one file but having it throughout the pages as the same.

_________________
Corey
Toll Free Fax Numbers | Mile High Merchant Accounts | LoudCISP
autumn



Joined: 19 Jul 2007
Posts: 13

PostPosted: Sun Aug 05, 2007 11:08 am     Reply with quote

Thanks for the advice. I think I'll stick to iframes since I have more knowledges on it, beside html codes can really get me confusing. I attempted to use Included Content; and I've been messing around with those codes for hours but it didn't really take me anywhere. ANywayz, I googled and found a way to fix my problem. Thank you very much for your patience with me. Like you said, Included Content is a lot simpler, I'll take a look back at it when I have time. Thanks again, appreciate it!!! Wink
le_komaruloh



Joined: 18 Sep 2007
Posts: 2

PostPosted: Wed Sep 19, 2007 1:42 am     targeting iframe to some part of html Reply with quote

Sorry I joined here instead of posting new thread.
Anyway I would like to know if an iframe can be targeted to some part of html instead of whole page?

for example, to view a certain table of somepage in an iframe.

Thanks in advance,
Samuel Jong



Joined: 06 Jan 2008
Posts: 86

PostPosted: Sun Jan 06, 2008 1:24 am     Reply with quote

Corey Bryant wrote:
An iframe page consists of two pages - the iframe source and the page that calls that iframe. The user will see the iframe that calls the iframe when they type it into the browser.

_________________
Corey
Toll Free Numbers for Real Estate Agents | Merchant Accounts


How can I know the page name which I want to embed to my web page?

I try the below HTML call iframe, but it doesn't work.

<tr>
<td><iframe name="I1" scr="http://picasa.hk/gb01/gbook.php?applicant=sjong822" width="883" height="572" scrolling="auto">Your user agent does not support frames or is currently configured not to display frames.</iframe></td>
</tr></table>
Samuel Jong



Joined: 06 Jan 2008
Posts: 86

PostPosted: Mon Jan 07, 2008 12:56 pm     iframe Reply with quote

Samuel Jong wrote:
Corey Bryant wrote:
An iframe page consists of two pages - the iframe source and the page that calls that iframe. The user will see the iframe that calls the iframe when they type it into the browser.

_________________
Corey
Toll Free Numbers for Real Estate Agents | Merchant Accounts


How can I know the page name which I want to embed to my web page?

I try the below HTML call iframe, but it doesn't work.

<tr>
<td><iframe name="I1" scr="http://picasa.hk/gb01/gbook.php?applicant=sjong822" width="883" height="572" scrolling="auto">Your user agent does not support frames or is currently configured not to display frames.</iframe></td>
</tr></table>


Problem had been solved. Just mistyping src with scr.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame All times are GMT - 8 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial