Community blog feed

JavaScript makes me want to cry

Website
Blog
Mike Taulty
Posted
02 Oct 2008 at 13:37

Summary

I spent about 3 hours today trying to figure out why some little piece of script (in amongst some other masses of script) wasn't running. I think it ultimately came down to the difference between; <script .....> </script> and <script.... /> I know I'm a long way from being any good

Post extract

I spent about 3 hours today trying to figure out why some little piece of script (in amongst some other masses of script) wasn't running. I think it ultimately came down to the difference between;

<script .....>

</script>

and

<script.... />

I know I'm a long way from being any good at Javascript so someone with experience would find these kinds of problems straight away but please tell me that this is not meant to be the future of software development where we effectively do #includes of some massive lump of code at runtime.

</rantOver>

As an aside, I think I've done this before :-)

As a second aside, it was ultimately the developer tools in IE8 that sorted it out for me so thanks to those :-)

Want to stay in touch with what's going on? Follow us on twitter!