• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic