Thread: Best way??
View Single Post
  #10 (permalink)  
Old 06-19-09, 06:27 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
I wasn't suggesting you to use AJAX, I was just asking, because if you were using AJAX I'd know what'd be wrong.

Anyway, I think I'll be able to help here too. External JS files are not supposed to go between <script> tags. So try and remove there. Also, some browsers won't parse that file if you don't send the correct content-type header. It's a security thing.

Remove the <script> tags and add this line to the very top of your page:
PHP Code:

header('Content-Type: text/javascript'); 

Reply With Quote