SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Addict
    Join Date
    Sep 2006
    Posts
    238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    implementing dom

    Hello, I'm having trouble on what is the best way to implement the dom. This is the structure of a typical page on my website.

    <?

    session_start();
    include("database.php") #Contains PHP
    include("variables.php") #Contains PHP
    include("header.php") #Contains PHP & HTML
    include("navigation.php") #Contains PHP & HTML
    include("content.php") #Contains PHP & HTML

    ?>

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,295
    Mentioned
    460 Post(s)
    Tagged
    8 Thread(s)
    What do you mean by "implement the dom"?

  3. #3
    #titanic {float:none} silver trophy
    molona's Avatar
    Join Date
    Feb 2005
    Location
    from Madrid to Heaven
    Posts
    8,259
    Mentioned
    245 Post(s)
    Tagged
    1 Thread(s)
    I agree with Ralph. Your question is not question at all. You have a template that includes different files to output a web page with a session started... but implementing DOM? The DOM is created each time you load a page. It is the nodes and structure resulting from the interpretation of your markup by your browser.

    We need to know exactly which problem you have

  4. #4
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,467
    Mentioned
    182 Post(s)
    Tagged
    6 Thread(s)
    Is this an html question or is this a PHP or scripting question?

    If you can clarify I will move the thread to the appropriate forum.

  5. #5
    SitePoint Addict
    Join Date
    Sep 2006
    Posts
    238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry, I meant the doctype declaration.

  6. #6
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,295
    Mentioned
    460 Post(s)
    Tagged
    8 Thread(s)
    Quote Originally Posted by Jaynesh View Post
    Sorry, I meant the doctype declaration.
    It's not likely that the doctype you choose will have any bearing on the code you posted above. Use whatever suits you, but preferably a strict doctype or the generic <!DOCTYPE html>. The important thing is to have a doctype.


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
  •