SitePoint Sponsor

User Tag List

Results 1 to 11 of 11

Thread: SHTML question

  1. #1
    SitePoint Member
    Join Date
    Apr 2001
    Location
    Ottawa, Canada
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    SHTML question

    Hi,

    I have a basic site using straight HTML. I still
    haven't had time to look into XHTML and DHTML
    (I'm not sure what they can do), but I have a
    script that uses SHTML to place a "quote of the
    day" on a page.

    My question is, if I change my page from HTML
    to SHTML in order to include the "Quotes"
    will this limit the number of people who will
    be able to view the page?


    Any insight will be greatly appreciated.

  2. #2
    SitePoint Addict
    Join Date
    Dec 2000
    Location
    BOSTON MA
    Posts
    335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it won't eliminate anyone from seeing your site.
    all that the .shtml extension is doing is telling the server to include another file (in this case the quote of the day) before sending the page to the browser.
    . . . chris

  3. #3
    SitePoint Wizard geiger's Avatar
    Join Date
    Jul 2001
    Posts
    2,459
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can, however, make HTML pages be parsed by the server. Talk to your host.

    And DHTML is only advanced Javascript; not like HTML really.

  4. #4
    SitePoint Member
    Join Date
    Apr 2001
    Location
    Ottawa, Canada
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile thanks

    Thanks to Chris and Geiger for the info

  5. #5
    SitePoint Wizard geiger's Avatar
    Join Date
    Jul 2001
    Posts
    2,459
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Welcome.

  6. #6
    SitePoint Wizard
    Join Date
    Oct 2001
    Location
    Tucson, Arizona
    Posts
    1,858
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by geiger
    And DHTML is only advanced Javascript; not like HTML really.
    You're not correct in saying that; here's a good definition, and here's another.

  7. #7
    SitePoint Wizard geiger's Avatar
    Join Date
    Jul 2001
    Posts
    2,459
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay. I gave a bad definition. You learn something every day.

  8. #8
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Originally posted by geiger
    You can, however, make HTML pages be parsed by the server. Talk to your host.
    How is this accomplished? Anyone done this before with Apache or IIS? If so, can you post up some help?

    Thanks,
    Vinnie

  9. #9
    SitePoint Wizard
    Join Date
    Oct 2001
    Location
    Tucson, Arizona
    Posts
    1,858
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    With Apache, add this line to your httpd.conf file:
    Code:
    AddHandler server-parsed .shtml .html

  10. #10
    Grumpy Mole Man Skunk's Avatar
    Join Date
    Jan 2001
    Location
    Lawrence, Kansas
    Posts
    2,066
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by mattjacob

    You're not correct in saying that; here's a good definition, and here's another.
    I'm afraid I have to disagree with that - the definition geiger gave seems pretty eaccurate to me. DHTML (when written like that) refers to client side techniques which allow real-time manipulation of the DOM of a page by scripts. These scripts are invariably written in Javascript (you can use VBScript but it's very rare to do this as VBScript is a) very ugly and b) only works on IE), so saying that DHTML is basically advanced Javascript is a pretty accurate description imo.

  11. #11
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by atomicmunky
    it won't eliminate anyone from seeing your site.
    all that the .shtml extension is doing is telling the server to include another file (in this case the quote of the day) before sending the page to the browser.
    For the record...using SHTML as your extension does not automatically tell the server to include other files. It simply tells the server to parse through a page looking for directives before sending it to the browser. If there are no directives on a page then nothing additional occurs.

    If there are directives (including the date, including a file and more) then the server executes that code and THEN sends clean HTML to the browser.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes


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
  •