According to this posting and this one, it’s faster to use a CDN than host it internally. (Redundancy, geolocation, more servers/bandwidth, etc). (love the snarky “So I assume you’re shipping a deprecated browser as well” comment). The redoubtable Scott H did a great writeup on having a backup for a CDN so you can fall back to local… should I find that necessary. However, for my purposes, it’s enough to note that using this:
<link
rel=”stylesheet”
href=”http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css”>
<script
src=”http://code.jquery.com/jquery-1.9.1.js”></script>
<script
src=”http://code.jquery.com/ui/1.10.3/jquery-ui.js”></script>
instead of local sources (href=”~/Content/jquery-ui.css”) will not slow down my code execution and in fact offers significant caching advantages.
Anyway, the long story short is, this little nugget of code is all I needed – in the end – to use the jquery datepicker.
<link
rel=”stylesheet”
href=”http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css”>
<script
src=”http://code.jquery.com/jquery-1.9.1.js”></script>
<script
src=”http://code.jquery.com/ui/1.10.3/jquery-ui.js”></script>
<script>
$(document).ready(function () {
$(function () {
$(“#<%= DateStartText.ClientID %>“).datepicker();
$(“#<%= DateEndText.ClientID %>“).datepicker();
});
});
</script>
I’m messing around with Accordions and tabbed panels now. From a design standpoint it couldn’t be easier to drag on these controls and limit what users see. From a UI perspective, it’s not great practice to stuff hundreds of fields and master/detail views on a form and show/reveal in tabs… There’s a reason why MVC encourages us to think in terms of very simple View logic (Edit/Index/List/Delete/Insert) instead of old-school VB6-type parent/child views. (Yes you CAN do this in MVC with little trouble, but IMHO it’s easier to create and especially scaffold your views in atomic pieces.)
Postings to look at in reference: http://weblogs.asp.net/stevewellens/archive/2010/09/04/goodbye-ajax-toolkit-hello-jquery-ui.aspx… and from jquery – http://jqueryui.com/datepicker/