SitePoint Sponsor

User Tag List

Results 1 to 10 of 10
  1. #1
    SitePoint Enthusiast Qubito's Avatar
    Join Date
    Sep 2003
    Location
    Mexico
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    it is possible to importa a .html document into other html ?

    HI I was wondering if I can import small fragment .html that was built by xhtml tech. into other .html made with the same tech xhtml

    example. I have a page called products.html. which have xhtml code inside and a rule css. body with ex. 50px width x 50px height

    then I have other page called corporate.html. that have a block box with the same dimension that have products.html that is 50px width and 50px height

    could I import the page products.html inside corporate.html ?????

    note. it suppouse i use xhtml and css technology but i dont want to put products.html code embeed inside corporate but import the full page products.html inside corporate.html inside the block box I give the same dimensions.

    so i need the expertise advice from all of you. and if it can be done. then how i can achieve this. with example.

    thanks in advance

    qubito

    if could be

  2. #2
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could use an <object> or an <iframe>.

    However, it would be better to use SSI or PHP's include() instead.
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.

  3. #3
    SitePoint Enthusiast Qubito's Avatar
    Join Date
    Sep 2003
    Location
    Mexico
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks could you give some example doing this by <object> or an <iframe>.
    since i dont know php

    thanks in advance

    qubito

  4. #4
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    SSI and PHP's include() are even easier to use than <object> and <iframe>, if your server supports them.

    I don't recommend it, but since you asked for it...
    Code:
    <iframe width="300" height="200" src="example.html"></iframe>
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.

  5. #5
    SitePoint Enthusiast Qubito's Avatar
    Join Date
    Sep 2003
    Location
    Mexico
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thank you so much. your help was perfect thanks kravvitz

  6. #6
    SitePoint Enthusiast Qubito's Avatar
    Join Date
    Sep 2003
    Location
    Mexico
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    just other question why you dont recommend using iframe ? performance problems?
    iframe works fine in xhtml ?
    thanks again

  7. #7
    SitePoint Zealot
    Join Date
    Jun 2005
    Posts
    124
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Frames are fine to use, and do validate using a framset DTD, but you should be aware that SE spiders can get trapped, or have a hard time indexing your website if you use frames primarily for your design.

    If you plan on including a page, I suggest using PHP or ASP depending on your server setup. SSI is also find if you're using .shtml or a mime type.
    Equentity, LLC - Coming Soon

    Have a question? Ask here

  8. #8
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You're welcome, Qubito.

    The currently most widely used browsers support <iframe>s, but old browsers like Netscape 4.x don't.

    Why Frames Are Bad
    http://apptools.com/rants/framesevil.php
    http://www.456bereastreet.com/archiv...and_usability/
    Why Frames Suck (Most of the Time)(1996)

    Quote Originally Posted by pauly
    SSI is also find if you're using .shtml or a mime type.
    What does mime-type have to do with this?
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.

  9. #9
    SitePoint Zealot
    Join Date
    Jun 2005
    Posts
    124
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry I'm not with it today, I meant a handler
    Equentity, LLC - Coming Soon

    Have a question? Ask here

  10. #10
    SitePoint Enthusiast Qubito's Avatar
    Join Date
    Sep 2003
    Location
    Mexico
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks again for all your help


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •