I don’t see where you linked to the javascript file in the second example. Or did you actually use a PHP include(); to load the javascript file? I’ve never seen it done that way before.
There are no <script> tags supposed to be in the actual .js file – that’s HTML. BTW when you don’t know what’s going on, you might just check the console for errors… it says:
Yes, that was it. That is once we removed the tags from the .js file, then it is loading OK!
But wierd thing is that we tried that, and it was not. However having tried it again as per your message, now it is!
BTW, what is the best software you recommend using for viewing JS Errors? Beside Firbugs?
Yes, I am aware of that. But when you do that you get all sort of other things.
So a good JavaScript debugger, would be so good and I think so appreciated and in demand.