<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Creating jQuery plug-ins from MicrosoftAjax components</title><link>http://weblogs.asp.net/bleroy/archive/2009/05/04/creating-jquery-plug-ins-from-microsoftajax-components.aspx</link><description>We had an interesting discussion recently on the ASP Insiders mailing list and ended up talking about what cool stuff we could build on top of jQuery. Many interesting things were mentioned and it was a very useful discussion but one suggestion in particular</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: Creating jQuery plug-ins from MicrosoftAjax components</title><link>http://weblogs.asp.net/bleroy/archive/2009/05/04/creating-jquery-plug-ins-from-microsoftajax-components.aspx#7113734</link><pubDate>Mon, 08 Jun 2009 20:51:46 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7113734</guid><dc:creator>Bertrand Le Roy</dc:creator><author>Bertrand Le Roy</author><description>&lt;p&gt;@Oskar: awesome, but you should add var in front of that c to avoid a warning in strict mode.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7113734" width="1" height="1"&gt;</description></item><item><title>re: Creating jQuery plug-ins from MicrosoftAjax components</title><link>http://weblogs.asp.net/bleroy/archive/2009/05/04/creating-jquery-plug-ins-from-microsoftajax-components.aspx#7113430</link><pubDate>Mon, 08 Jun 2009 14:47:49 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7113430</guid><dc:creator>Oskar Austegard</dc:creator><author>Oskar Austegard</author><description>&lt;p&gt;#twitcode version of Bertrand&amp;#39;s exposeTojQuery function:&lt;/p&gt;
&lt;p&gt;c=Sys.Component;c.$it=function(t,pn){return jQuery.fn[pn]=function(p){return this.each(function(){c.create(t,p,{},{},this);});}}&lt;/p&gt;
&lt;p&gt;;-)&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7113430" width="1" height="1"&gt;</description></item><item><title>re: Creating jQuery plug-ins from MicrosoftAjax components</title><link>http://weblogs.asp.net/bleroy/archive/2009/05/04/creating-jquery-plug-ins-from-microsoftajax-components.aspx#7075477</link><pubDate>Thu, 07 May 2009 06:18:13 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7075477</guid><dc:creator>Andrew Webb</dc:creator><author>Andrew Webb</author><description>&lt;p&gt;It&amp;#39;s important to bear in mind that not everyone uses jQuery. &amp;nbsp;We started off with the intention to use it, but ended up with ExtJs for our current web app because of its far more mature widgets (check out the grid), which you can find all in one place. &amp;nbsp;No hunting around the plugin-o-sphere.&lt;/p&gt;
&lt;p&gt;ExtJs has 45 localization files, but they mainly contain localized resource strings for the widgets. &amp;nbsp;There&amp;#39;s limited support for formatting a date for display, and no support for formatting a floating point number (AFAICS). &amp;nbsp;Compare this with MS AJAX&amp;#39;s globalization files, which give you great support for formatting and parsing dates and numbers in 205 different cultures. &amp;nbsp;Most of our formatting for display takes place on the server, but occasionally we need the client-side globalization support (e.g. for formatting numbers that the user enters into the editable ExtJs grid).&lt;/p&gt;
&lt;p&gt;So if Bertrand and team are going to keep globalization (and other useful parts of MS AJAX) separate from jQuery, and applicable to both jQuery and other JavaScript libraries, I can only applaud.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7075477" width="1" height="1"&gt;</description></item><item><title>re: Creating jQuery plug-ins from MicrosoftAjax components</title><link>http://weblogs.asp.net/bleroy/archive/2009/05/04/creating-jquery-plug-ins-from-microsoftajax-components.aspx#7074997</link><pubDate>Wed, 06 May 2009 18:14:10 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7074997</guid><dc:creator>Bertrand Le Roy</dc:creator><author>Bertrand Le Roy</author><description>&lt;p&gt;@Hamza: I'm really just experimenting here, but we're talking about four lines of code here. This shouldn't be too risky to use in your next project. Just ping me if you have any problem with it.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7074997" width="1" height="1"&gt;</description></item><item><title>re: Creating jQuery plug-ins from MicrosoftAjax components</title><link>http://weblogs.asp.net/bleroy/archive/2009/05/04/creating-jquery-plug-ins-from-microsoftajax-components.aspx#7074982</link><pubDate>Wed, 06 May 2009 17:56:43 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7074982</guid><dc:creator>Hamza</dc:creator><author>Hamza</author><description>&lt;p&gt;Really great stuff here. Nice work guys but can i know when this will ship or be mature enough to be used in production. I really want to use it in my next project.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7074982" width="1" height="1"&gt;</description></item><item><title>re: Creating jQuery plug-ins from MicrosoftAjax components</title><link>http://weblogs.asp.net/bleroy/archive/2009/05/04/creating-jquery-plug-ins-from-microsoftajax-components.aspx#7074964</link><pubDate>Wed, 06 May 2009 17:32:48 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7074964</guid><dc:creator>Bertrand Le Roy</dc:creator><author>Bertrand Le Roy</author><description>&lt;p&gt;@Karl: if you're going to build a real client application that uses the browser as more than a dumb terminal, you're going to handle data on the client. On the wire, the data should be culture-neutral, which means that the client needs strong globalization capabilities. The built-in JavaScript support is just lame and US-centric. We had a long thread on Dave Ward's post on date handling.&lt;/p&gt;
&lt;p&gt;For data services, sure they are JSON, but that's beside the point. With Microsoft Ajax, you can just point at a data service and poof, you have automatic change tracking on the client and can send those back by just calling save. It doesn't get any easier, which some people value.&lt;/p&gt;
&lt;p&gt;Using jQuery *you* can build your own plugin faster. Good for you. About plugins.jquery.com, there are some real gems over there, I'm not the one who's going to say otherwise. But there is also a lot of junk, and it's mostly unsupported and unsupportable. Discovering the good ones takes time (despite the rating system: the organization of the catalog is showing signs of weakness under the load) and not everyone can afford that. Believe it or not, there are people who prefer to pay for a guaranteed level of quality and support. I would tend to be more on the side of exploring, building and using jQuery plugins myself for many things because that's the way my brain is wired but I know for a fact that this is not representative of the whole user base for ASP.NET.&lt;/p&gt;
&lt;p&gt;So for *you* it's not about bloat and size (although you just said &amp;quot;using jQuery you can build your own plugin quicker than you can download those 'professional' third-party components&amp;quot; so apparently it is, at least a little bit). Apparently, for the very brave &amp;quot;WHY 2&amp;quot; it is: &amp;quot;the .net ajax is so bloated&amp;quot;. So it's about streamlining. Sure. You streamline your applications the way you want (with jQuery), we streamline our framework and provide cool new features for our users to streamline their own applications. At least we try. Adapting? We adopted jQuery instead of building our own. How's that for adapting?&lt;/p&gt;
&lt;p&gt;I'm not sure what you're trying to say here. Sometimes it seems like you would only be satisfied if Microsoft stopped all software development. I'm afraid this is not going to happen.&lt;/p&gt;
&lt;p&gt;@Ewschone: that's an interesting idea, but it's actually already done, in a way. The Microsoft Ajax library contains all globalization files, which are perfectly fine to use with any other library. In 4.0, we also split our library into much smaller pieces so that you can pick just the pieces that you need. I'm not sure it's very interesting to tie those pieces onto the jQuery object (it's actually a few lines of code but what's the value really?). jQuery is mainly about DOM manipulation. Globalization is a little orthogonal to that. I'm really not sure there's much value in grafting globalization on it. But I'm absolutely open to any arguments you may have and as we're precisely exploring ways we can contribute to the jQuery ecosystem I'm really willing to listen to what you'd have to say about that.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7074964" width="1" height="1"&gt;</description></item><item><title>re: Creating jQuery plug-ins from MicrosoftAjax components</title><link>http://weblogs.asp.net/bleroy/archive/2009/05/04/creating-jquery-plug-ins-from-microsoftajax-components.aspx#7074794</link><pubDate>Wed, 06 May 2009 13:34:47 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7074794</guid><dc:creator>Karl</dc:creator><author>Karl</author><description>&lt;p&gt;Do you guys set aside a day of the week to justify the work you do? Globalization? Is that how people are dong it these days? Via javascript? Huh...&lt;/p&gt;
&lt;p&gt;Data Services return JSON, why do you need msAjax for that?&lt;/p&gt;
&lt;p&gt;Using jQuery you can build your own plugin quicker than you can download those &amp;quot;professional&amp;quot; third-party components. Or you know, you can just goto plugins.jquery.com&lt;/p&gt;
&lt;p&gt;It isn&amp;#39;t about size or bloat, but about continuing to put effort into outdated and inferior solutions (and dragging countless developers down with you). Its about streamlining and adapting. &lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7074794" width="1" height="1"&gt;</description></item><item><title>re: Creating jQuery plug-ins from MicrosoftAjax components</title><link>http://weblogs.asp.net/bleroy/archive/2009/05/04/creating-jquery-plug-ins-from-microsoftajax-components.aspx#7074779</link><pubDate>Wed, 06 May 2009 13:13:44 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7074779</guid><dc:creator>bcardiff</dc:creator><author>bcardiff</author><description>&lt;p&gt;Just nice. Between this and the my previous work on &amp;lt;a href=&amp;quot;&lt;a rel="nofollow" target="_new" href="http://weblogs.manas.com.ar/bcardiff/2008/12/declarative-jquery-with-microsoft-ajax/&amp;quot;&amp;gt;Declarative"&gt;weblogs.manas.com.ar/.../&amp;quot;&amp;gt;Declarative&lt;/a&gt; jQuery (with Microsoft Ajax)&amp;lt;/a&amp;gt; we are able to go from one side to the other :-) letting users of either libraries use the components of the other one with less effort.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7074779" width="1" height="1"&gt;</description></item><item><title>re: Creating jQuery plug-ins from MicrosoftAjax components</title><link>http://weblogs.asp.net/bleroy/archive/2009/05/04/creating-jquery-plug-ins-from-microsoftajax-components.aspx#7074777</link><pubDate>Wed, 06 May 2009 13:08:36 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7074777</guid><dc:creator>ewschone</dc:creator><author>ewschone</author><description>&lt;p&gt;If the globalization etc is indeed so good, then why not contribute to jquery ?&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7074777" width="1" height="1"&gt;</description></item><item><title>re: Creating jQuery plug-ins from MicrosoftAjax components</title><link>http://weblogs.asp.net/bleroy/archive/2009/05/04/creating-jquery-plug-ins-from-microsoftajax-components.aspx#7074591</link><pubDate>Wed, 06 May 2009 06:22:44 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7074591</guid><dc:creator>Andrew Webb</dc:creator><author>Andrew Webb</author><description>&lt;p&gt;For us, globalization is sooo important. &amp;nbsp;Every date and number that is displayed to the user must be formatted according to the browser&amp;#39;s preferred language. &amp;nbsp;Some of this formatting we do in web methods, but some formatting must be done client-side. &amp;nbsp;The MS AJAX 3.5 library is so good at this (although naturally it doesn&amp;#39;t have as full a range of formatting options as the .NET Framework itself).&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t know how the 4.0 library will do it, but I&amp;#39;ve written up how to enable script globalization in MS AJAX 3.5 for ASP.NET MVC apps here:-&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://stackoverflow.com/questions/817046/what-about-script-globalization-of-microsoftajax-js-in-asp-net-mvc"&gt;stackoverflow.com/.../what-about-script-globalization-of-microsoftajax-js-in-asp-net-mvc&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7074591" width="1" height="1"&gt;</description></item></channel></rss>