Goodness Posted November 8, 2016 Share Posted November 8, 2016 Here's an odd one: I am working on my own machine (hard drive) at the moment and previewing my page(s) in various browsers. In order to make use of template-level content (navigation, footers, etc) I am using <div w3-include-html="includes/filename.html"> I am calling the w3data.js file in the <head> <script src="http://www.w3schools.com/lib/w3data.js"></script> I also have the w3data.js file resident within the website in a 'lib' folder. In that case I call it like this: <script src="lib/w3data.js"></script> Both the w3schools src and the local src for the w3data.js file work (in Firefox). Just before the closing </body> tag I have: <script>w3IncludeHTML();</script> The included files show up fine in Firefox. However, not in Safari, Chrome, or IE. NOTE: all of the pages are at the root level and the included files are in the 'includes' folder. Has anyone else run into this? Thanks! Link to comment Share on other sites More sharing options...
dsonesuk Posted November 8, 2016 Share Posted November 8, 2016 IF you are opening the file directly from folder from O/S file system, then that's your problem, always open from local server. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now