The problem with your JS file is probably that the Content-Type header was being sent as "text/html" rather than "text/javascript." A simple
Code:
<?php header("Content-Type: text/javascript"); ?>
at the top of your file should fix that.
- used MOD-Rewrite in htaccess to disable outside sources from connecting to my JS
How? The only way I know of to do this is using the Referer: header, which I certainly hope you wouldn't do as it would break your page for anyone behind a proxy or firewall that strips this header (and many do).
Bookmarks