james henderson
asked on
jquery doesn't run on local static site
I have a static web site on iis 7 on local machine. I have downoaded and added jquery and jquery ui. I have added the following to my index page:
<link href='css/themes/smoothnes s/jquery-u i-1.10.3.c ustom.css' rel='stylesheet' type='text/css' />
<link href='css/demos.css' rel='stylesheet' type='text/css' />
<link href='css/wdgt.css' rel='stylesheet' type='text/css' />
<script src='js/jquery-1.9.1.js' type='text/javascript'></s cript>
<script src='js/ui/jquery.ui.core. js' type='text/javascript'></s cript>
<script src='js/ui/jquery.ui.widge t.js' type='text/javascript'></s cript>
<script src='js/ui/jquery.ui.datep icker.js' type='text/javascript'></s cript>
obviously, I'm trying to use the datepicker.
I also have this in the head section:
<script type='text/javascript'>
$(document).ready(function () {
alert('ready');
$('#TourDate').datepicker( {
onSelect: function (dateText, inst) { checkDay(dateText); }
});
}
});
function checkDay(dateText)
{
alert('here');
}
</script>
nothing here works. it appears that the first document.ready() is never called. all pathing has been checked several times. it doesn't work in IE 10 or chrome. i'm totally stumped here and need help to show me the error of my ways!!
BTW, I can't ref the jquery stuff at google or any other external site. It's not an option.
<link href='css/themes/smoothnes
<link href='css/demos.css' rel='stylesheet' type='text/css' />
<link href='css/wdgt.css' rel='stylesheet' type='text/css' />
<script src='js/jquery-1.9.1.js' type='text/javascript'></s
<script src='js/ui/jquery.ui.core.
<script src='js/ui/jquery.ui.widge
<script src='js/ui/jquery.ui.datep
obviously, I'm trying to use the datepicker.
I also have this in the head section:
<script type='text/javascript'>
$(document).ready(function
alert('ready');
$('#TourDate').datepicker(
onSelect: function (dateText, inst) { checkDay(dateText); }
});
}
});
function checkDay(dateText)
{
alert('here');
}
</script>
nothing here works. it appears that the first document.ready() is never called. all pathing has been checked several times. it doesn't work in IE 10 or chrome. i'm totally stumped here and need help to show me the error of my ways!!
BTW, I can't ref the jquery stuff at google or any other external site. It's not an option.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER