Reputation: 423
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
Upvotes: 0
Views: 789
Reputation: 1596
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.
Upvotes: 1
Reputation: 7183
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.
Upvotes: 1
Reputation: 238115
You have <script>
tags in your Javascript file. They need to be removed. I think this will fix your problem.
Upvotes: 4