SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist -T-'s Avatar
    Join Date
    Jun 2002
    Posts
    444
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    include with javascript

    I'm having a file that needs to be included in several sites. And I can't say for sure that all of them can use php

    I have a html file, and I'm wondering if there is an easy way using javascript to load that html file and print it out on all the sites?
    chrome is a wrapper that combines a browser with spyware

  2. #2
    SitePoint Enthusiast dnectom's Avatar
    Join Date
    Dec 2005
    Location
    Lincolnshire, Uk
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would actually advice making these sites have php.. As its easier to make those sites with php than to make users have javascript on..
    Which alot don't..

  3. #3
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,875
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    It is GUARANTEED that not all visitors to sites have Javascript. Therefore Javascript can't be used to add anything to web pages that must be there for the page to be usable.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  4. #4
    SitePoint Evangelist -T-'s Avatar
    Join Date
    Jun 2002
    Posts
    444
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The problem is that one of the pages that need that file is a vb board, I've been looking around for a include plugin, but haven't found it.

    It is not something vital for the page to work, it's a navbar that is suposed to be the same for a bunch of sites (linking to eachother). It doesn't break the site if it isn't there, most people won't even notice it missing ^_^
    chrome is a wrapper that combines a browser with spyware


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
  •