Javascript/jquery not working on my site

790 views Asked by At

I'm creating a site, tested out on my local server and it worked fine, but once I moved it over ot my host anything to do with javascript/jquery on the page just refuses to work :/

http://www.neuromanga.com/mangaReader1.0.php?cid=1

could someone please help me out

3

There are 3 answers

4
lonesomeday On BEST ANSWER

You have <script> tags in your Javascript file. They need to be removed. I think this will fix your problem.

0
FatherStorm On

Please remove the <Script> and </Script> tags from your Mangacaller.js file.

if you use <Script src='...'/> you don't use the script tags in that source file.

0
jhartz On

The external script (Mangacaller.js) should not have the <script type="text/javascript"> and the corresponding </script> inside the external file. The external file should be all JavaScript without any HTML (it's just the stuff that would go between the <script> tags if you embedded the script inside the HTML instead of referencing it as an external script). The browser parses this entire external file as JavaScript, not HTML, so there should be no HTML within the Mangacaller.js file.