I have included jQuery as well as colorize plugin reference in my master page and I want to use it in my Content pages. My scripts are located in Scripts folder in MVCApplication. I am referencing it in my master pages as :
<script language="javascript" type="text/javascript"
src="<%= Url.Content ("~/Scripts/jquery-1.3.2.min.js")%> " />
and same for colorize.js.
In my Content page, I am using colorize plugin for my table.
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<script language="javascript" type="text/javascript">
$(document).ready(function() {
$('#mytable').colorize();
// put all your jQuery goodness in here.
});
</script>
<table id="mytable">
...
...
</table>
</asp:Content>
But whenever I run this application, neither jQuery works nor the colorize function work.
Solutions I tried :
Viewed the source in IE 7 and jQuery.js & colorize.js are references properly.
Viewed the source in FF 3.5.6 and Google Chrome, and I saw that jquery.js is referenced properly but colorize.js reference is not at all included in HTML.
Later in FF, I jQuerified my mvc app, and all worked properly(references as well as colorize fn ).
So I want to know where I am doing wrong, in referencing script files in master pages or using colorize plugin in Content page?
Also other suggestions are welcome.