PDA

View Full Version : External scripts.


paulbeckett
20-Mar-2007, 05:58 PM
Further to a previous post today I have moved my left hand nav script into a external file: http://kjbeckett.com/acatalog/lefthandnav.js

I also replaced the script with the following line:

<SCRIPT LANGUAGE="JavaScript" SRC="lefthandnav.js" TYPE="text/javascript"></SCRIPT>

But the left hand nav is not working on the homepage (click on cufflinks - it should open further options but doesnt) and I cant figure out why?

Can anyone review and suggest what I have done wrong?

Note - only the homepage has the update (e.g. script moved to lefthandnav.js) - all other pages work fine as they have the script in the page still.

Paul

leehack
20-Mar-2007, 06:06 PM
There is an error in that JS file you have provided a link to, there are words not commented out, maybe that's the problem.

paulbeckett
20-Mar-2007, 08:13 PM
Oooops. Thanks. :)