jQuery UI 1.8.5 Released to Microsoft CDN – Example with Live Demo

The jQuery UI team released jQuery UI 1.8.5 yesterday which contains some bug fixes in the jQuery UI Core, Utiities, Widgets and Effects. You can see the release note here.

Along with this release, what particularly got me excited was that now we have a choice of CDN’s for the jQuery UI library. Along with the Google CDN, the jQuery UI is also available on Microsoft CDN. Here’s the link to jQuery UI on Microsoft CDN. This links includes the Libraries, Theme CSS and Internationalization/Localization files. Way cool!

Here’s an example of using jQuery UI Library and Themes from Microsoft CDN (adapted from one of my jQuery how-to-do’s) to prevent users from selecting weekends while using the jQuery UI DatePicker

<html xmlns="http://www.w3.org/1999/xhtml" >
<
head>
<
title>Prevent users from selecting weekends in jQuery UI
DatePicker(from DevCurry.com)</title>
<
link type="text/css" rel="Stylesheet"
href="http://ajax.microsoft.com/ajax/jquery.ui/1.8.5/themes/
smoothness/jquery-ui.css" />
<
script type="text/javascript" src="
http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js">
</
script>
<
script type="text/javascript" src="
http://ajax.microsoft.com/ajax/jquery.ui/1.8.5/jquery-ui.min.js">
</
script>

<
script type="text/javascript">
$(function () {
$("#datepic").datepicker({
beforeShowDay: $.datepicker.noWeekends
});
});
</script>
</
head>
<
body>
<
input id="datepic"/>
</
body>
</
html>
image 

See a Live Demo

I have also updated my link List Latest jQuery and jQuery UI Theme links on Google CDN






About The Author

Suprotim Agarwal
Suprotim Agarwal, Developer Technologies MVP (Microsoft Most Valuable Professional) is the founder and contributor for DevCurry, DotNetCurry and SQLServerCurry. He is the Chief Editor of a Developer Magazine called DNC Magazine. He has also authored two Books - 51 Recipes using jQuery with ASP.NET Controls. and The Absolutely Awesome jQuery CookBook.

Follow him on twitter @suprotimagarwal.

1 comment:

Anonymous said...

The biggest issue is how to handle this where you have some pages SSLed and some not and you're using master pages...