This week's book giveaway is in the Design and Architecture forum.
We're giving away four copies of Communication Patterns: A Guide for Developers and Architects and have Jacqui Read on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

one html "embedded" in another one

 
Ranch Hand
Posts: 316
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a one.html which is HTML page, in the middle of it there is a "iFrame" which has a "src="http://.../another.html". The "another.html" is a self contained html page which has <body> ...
</body>... But in the outside "one.html", it already has <body> there. But it seems the table is displayed well inside the frame without problem. How can it work with double layers of <body> tag ? I checked the "view source" but could not see double <body> because it only shows "src="http://../another.html" i.e. the content of "another.html" is not shown in the source.

Please help me explain. Thanks.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it an actual iframe?

An iframe is an inline frame. You do not see the source contents of an iframe when you use View Source. You only see the content of the parent page.

Eric
 
Raj Ohadi
Ranch Hand
Posts: 316
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Eric Pascarello wrote:Is it an actual iframe?

An iframe is an inline frame. You do not see the source contents of an iframe when you use View Source. You only see the content of the parent page.

Eric



Yes, it is in iframe. It is OK that I don't see the source content. So, the source content of iframe may be a self-contained html (including its own), it is ok to "included" this in the parent page ?
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If it is an html document, it should be an entire valid html document.

An iframe is nothing like an SSI include. It is just like a separate browser window stuck in the middle of another browser window.

Eric
 
Mo-om! You're embarassing me! Can you just read a tiny ad like a normal person?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic