Blog Home  Home Feed your aggregator (RSS 2.0)  
.Net Jonesie - Script Tag Madness - Blank Pages
A simple programmers blog
 
# Sunday, December 28, 2008

I've been writing a small app using the latest ASP.Net MVC Beta and JQuery - for fun and for work - and got caught out by a problem I'm sure Ive had before.

When ever you have a script tag dont self close it like this:

<script type="text/javascript" src="Scripts/jquery-1.2.6.min.js" />

For me this would stop all subsequent scripts from executing and sometimes result in a completly blank page.   I had the same result in Firefox and IE 7.  Instead, allways have a seperate end tag:

<script type="text/javascript" src="Scripts/jquery-1.2.6.min.js"></script>

Happy New Year :)

Sunday, December 28, 2008 4:57:44 PM (New Zealand Daylight Time, UTC+13:00)  #    Comments [0]   General  | 
Comments are closed.
Copyright © 2010 Peter G Jones. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.
Pick a theme: