i wrote code to download jquery file from google CDN first and if not download then i download from local machine.
here is my code
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.js"></script>
<script type="text/javascript">
window.jQuery ||
document.write("<script type='text\/javascript' src=<%= this.ResolveClientUrl("~/Scripts/jquery-1.6.2.min.js") %>><\/script>");
</script>
what is wrong in the above code. i check the url http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.js and i saw this is valid url. i was sure that jquery file is not download because i watch it by firebug. in my case file is always is downloading from local machine……..need advise. thanks
1 Answer