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



Will you give this article a +1 ? Thanks in advance




About The Author

Suprotim Agarwal, ASP.NET Architecture MVP works as an Architect Consultant and provides consultancy on how to design and develop Web applications.

Suprotim is also the founder and primary contributor to DevCurry, DotNetCurry and SQLServerCurry. He has also written an EBook 51 Recipes using jQuery with ASP.NET Controls.

Follow him on twitter @suprotimagarwal

comments

1 Response to "jQuery UI 1.8.5 Released to Microsoft CDN – Example with Live Demo"
  1. Anonymous said...
    September 20, 2010 at 9:37 AM

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

 

Copyright © 2009-2014 All Rights Reserved for DevCurry.com by Suprotim Agarwal | Terms and Conditions