Jump to content

W3Data Includes - Only Working in Firefox


Goodness

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...