Quantcast
Viewing all articles
Browse latest Browse all 87561

Re: using modules in json files (or allowing cross domain ajax)

You don't need a .js extension to include a file as javascript, if you already have it working in HTML just include that as javascript and BC will still render it

 

<script src="http://yoursite/yourfile.html"></script>

 

As long as the output is pure javascript you wont have an issue, you dont even need JSONP you could just throw it all in a variable if you wanted.


Viewing all articles
Browse latest Browse all 87561

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>