Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jul 2012
    Posts
    13
    Thanks
    3
    Thanked 3 Times in 3 Posts

    Exclamation How to inset an HTML Document in another using JS

    PHP include doesnt seem to work for me, so i was wondering how to make an external header for my website. Iframe will not work because the header has a drop down menu.

    Thanks,
    Alex

  • #2
    New Coder
    Join Date
    Jul 2012
    Location
    Ukraine
    Posts
    71
    Thanks
    1
    Thanked 18 Times in 17 Posts
    Write a javascript and link it to each related page externally. In the script make the appropriate changes to the structure of the document.

  • #3
    New Coder
    Join Date
    Jul 2012
    Posts
    13
    Thanks
    3
    Thanked 3 Times in 3 Posts
    That is out of my range.
    Do you know any good websites where I can learn JavaScript?

  • #4
    Senior Coder
    Join Date
    Sep 2010
    Posts
    1,994
    Thanks
    15
    Thanked 233 Times in 233 Posts
    Quote Originally Posted by alex11 View Post
    PHP include doesnt seem to work for me, so i was wondering how to make an external header for my website. Iframe will not work because the header has a drop down menu.

    Thanks,
    Alex
    PhP will work for this, you just may not have done it right. Javascript won't do this easily, php will. If the header is always the same, just name it header.txt and include it that way, php will write it verbatim to your page, anywhere you want it, just by including it there. If the header has stuff that changes you will need to do it differently, but php will still be able to do it.

  • Users who have thanked DrDOS for this post:

    alex11 (07-17-2012)

  • #5
    New Coder
    Join Date
    Jul 2012
    Posts
    13
    Thanks
    3
    Thanked 3 Times in 3 Posts


  •  

    Posting Permissions

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