Results 1 to 6 of 6

Thread: Adding include files in html

  1. #1
    Join Date
    Dec 2005
    Posts
    133
    Thanks
    23
    Thanked 0 Times in 0 Posts

    Default Adding include files in html

    I am making a demo in HTML.
    How do I add include?
    Only .js include work?

  2. #2
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    I'm not sure what you're asking, maybe if you could clarify the situation, I would be able to answer.
    - Mike

  3. #3
    Join Date
    Sep 2005
    Posts
    882
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    HTML can only be included server side.

  4. #4
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Try Hinclude.

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    That's not HTML.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #6
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by shachi
    Though I respect Mark Nottingham's work regarding HTTP caching, I find this rather questionable. Were it to be used in a purely XHTML context - that is, XHTML served with an appropriate XHTML content type - it would be somewhat respectable. However, the demonstration itself is served as HTML, and no doubt others would use it in a similar fashion. In that context, the markup is completely bogus. The code itself is also of dubious quality: there's not a hint of feature detection, and the exception handling will cause older browsers to error out unconditionally.

    Even the use "as-is" within an XHTML document is questionable as the XInclude specification already provides for agent-driven inclusion, and is already supported by some XML processors.


    Content inclusion should be performed server-side, using either SSI (server-side includes) or a language like PHP. Mark's apparent nod towards caching seems to be ignoring the fact that the output from server-generated content can be cached on the server and later served without regeneration (unless desired due to a change in the data source). He also seems to be ignoring the obvious problems related to relying on client-side scripting.

    Mike

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
  •