<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Brant Burnett&#039;s Development Blog &#187; jQuery</title>
	<atom:link href="http://btburnett.com/category/jquery/feed" rel="self" type="application/rss+xml" />
	<link>http://btburnett.com</link>
	<description></description>
	<lastBuildDate>Tue, 27 Apr 2010 12:48:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>jQuery.themescript 1.1.0 Released</title>
		<link>http://btburnett.com/2010/02/jquery-themescript-1-1-0-released.html</link>
		<comments>http://btburnett.com/2010/02/jquery-themescript-1-1-0-released.html#comments</comments>
		<pubDate>Tue, 09 Feb 2010 22:51:39 +0000</pubDate>
		<dc:creator>Brant Burnett</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://btburnett.com/?p=112</guid>
		<description><![CDATA[Today I&#8217;ve released version 1.1.0 of jQuery.themescript.  This release includes some significant improvements that make it far more functional in the real world. The original design concept was for a web store framework I was working on.  I wanted each store be able to easily change their javascript based themes without making changes to the [...]]]></description>
			<content:encoded><![CDATA[<p>Today I&#8217;ve released version 1.1.0 of jQuery.themescript.  This release includes some significant improvements that make it far more functional in the real world.</p>
<p>The original design concept was for a web store framework I was working on.  I wanted each store be able to easily change their javascript based themes without making changes to the javascript files for the basic theme.  This made for a much easier file based deployment of new versions to each store.  The obvious downside is that you&#8217;re downloading lots of extra javascript, particularly if you&#8217;re turning features back off that were in the basic theme.  This type of functionality is only useful in certain cases, and is never the most efficient system possible with regards to performance and bandwidth, just maintainability.</p>
<p>This new release still maintains that basic functionality, but now I address a more common concern as well, applying themes to AJAX updates.  In order to support this, I&#8217;ve added several new features.</p>
<ul>
<li>$.themescript.exec now accepts a context parameter.  This can be a jQuery object or an HTML DOM element, just like the context to jQuery&#8217;s <a href="http://api.jquery.com/jQuery/">jQuery(selector, [context])</a> selector function.  All registered functions will receive this context as a parameter, and it will be automatically used as the context to selector-based theming to restrict the elements returned.</li>
</ul>
<ul>
<li>themescript is a new function added to jQuery objects which allows you to execute the themescripts against a specific jQuery object.  $(&#8216;#selector&#8217;).themescript() is equivalent to $.themescript.exec( $(&#8216;#selector&#8217;) )</li>
</ul>
<ul>
<li>themescript( url, [data], [callback] ) works just like the jQuery <a href="http://api.jquery.com/load/">load</a> method, except that it will automatically run themescripts against the updated HTML if the request is successful.</li>
</ul>
<p>You can also easily add support for jQuery.themescript to ASP.Net AJAX partial page updates (a.k.a. UpdatePanels).  Just add this script code to your files and the themescripts will be automatically executed against any UpdatePanels which are changed during an asynchronous postback.</p>
<pre class="brush: jscript;">
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_pageLoaded(function(sender, args) {
    var&lt;/span&gt; updated = args.get_panelsUpdated();
    if&lt;/span&gt; (updated &amp;&amp; updated.length) {
        $.themescript.exec($(updated));
    }
});
</pre>
<p>Here are the links where you can access the GitHub repository or download the files:</p>
<p><a href="http://github.com/btburnett3/jquery.themescript">GitHub</a><br />
<a href="http://github.com/btburnett3/jquery.themescript/zipball/1.1.0">Download</a></p>
]]></content:encoded>
			<wfw:commentRss>http://btburnett.com/2010/02/jquery-themescript-1-1-0-released.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simplify Asynchronous Javascript Loading In ASP.Net Using LABjs</title>
		<link>http://btburnett.com/2010/01/simplify-asynchronous-javascript-loading-in-asp-net.html</link>
		<comments>http://btburnett.com/2010/01/simplify-asynchronous-javascript-loading-in-asp-net.html#comments</comments>
		<pubDate>Wed, 27 Jan 2010 21:41:48 +0000</pubDate>
		<dc:creator>Brant Burnett</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://btburnett.com/?p=100</guid>
		<description><![CDATA[LABjs is an excellent javascript library that performs asynchronous loading of javascript files. This can help to greatly increase the load speed of your web pages. Now, instead of blocking while one file is being downloaded, other scripts further down the chain can be downloaded while waiting. On top of that, it can maintain processing [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://labjs.com">LABjs</a> is an excellent javascript library that performs asynchronous loading of javascript files.  This can help to greatly increase the load speed of your web pages.  Now, instead of blocking while one file is being downloaded, other scripts further down the chain can be downloaded while waiting.  On top of that, it can maintain processing order, waiting to process certain scripts until others are complete, and optionally executing code on completion.</p>
<p>All of this is great for the client side.  But how do you define which scripts to include in the LABjs chain on the server side?</p>
<p>Since for work I primarily operate in ASP.Net, I&#8217;ve created an ASP.Net solution to the problem, LABjs.Net.  This library provides two key controls, LabScriptManager and LabScriptManagerProxy.  These controls loosely follow the behavior of the AJAX ScriptManager and ScriptManagerProxy controls, at least their script loading aspects.</p>
<p>Key supported features include:</p>
<ol>
<li>Refer to script files using application relative paths (i.e. ~/js/jquery.min.js)</li>
<li>Load script files from assembly resources</li>
<li>Specify if debug or release scripts should be used, or use the debug setting from the web.config file</li>
<li>Ability to set any of the options provided by LABjs</li>
<li>Include wait() calls in the chain, and provide inline functions to be executed after the wait</li>
<li>Use LabScriptManagerProxy to add scripts and waits to the chain in content pages and user controls</li>
<li>Use LabActionGroup inside LabScriptManagerProxy to add script() calls at a specific point in the primary chain</li>
<li>LABjs debug and release versions are embedded in the DLL and automatically referenced, but you can opti0nally override this with your own URL</li>
<li>Experimental support for the cdnLABjs library I am working on, which provides automatic failover to a local file if a file fails to load from a CDN (for information about why, see <a href="http://bit.ly/8YKQ2f">Using CDN Hosted jQuery with a Local Fall-back Copy</a>)</li>
</ol>
<p>Below you will find links to the current release candidate, 1.0rc1.  Please review it and give me any feedback you might have.</p>
<p><a href="http://cloud.github.com/downloads/btburnett3/LABjs.Net/LABjs.Net-1.0rc3.zip">Download Binaries</a><br />
<a href="http://github.com/btburnett3/LABjs.Net/raw/master/README">Readme File</a><br />
<a href="http://github.com/btburnett3/LABjs.Net">Git Repository</a></p>
<p><strong>Update 2/8/2010:</strong> <a href="http://btburnett.com/2010/02/labjs-net-release-candidate-1-0rc4.html">Updated to version 1.0rc4</a></p>
]]></content:encoded>
			<wfw:commentRss>http://btburnett.com/2010/01/simplify-asynchronous-javascript-loading-in-asp-net.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery UI spinner widget</title>
		<link>http://btburnett.com/2009/05/jquery-ui-spinner-widget.html</link>
		<comments>http://btburnett.com/2009/05/jquery-ui-spinner-widget.html#comments</comments>
		<pubDate>Mon, 04 May 2009 14:26:40 +0000</pubDate>
		<dc:creator>Brant Burnett</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://btburnett.com/?p=71</guid>
		<description><![CDATA[In a project I was working on I was using jQuery UI and wanted to put a spinner on a numeric text box.  Then I discovered that jQuery UI, while an excellent UI library, doesn&#8217;t yet have a spinner widget.  So I decided to write one myself, and hope that one day it gets included [...]]]></description>
			<content:encoded><![CDATA[<p>In a project I was working on I was using jQuery UI and wanted to put a spinner on a numeric text box.  Then I discovered that jQuery UI, while an excellent UI library, doesn&#8217;t yet have a spinner widget.  So I decided to write one myself, and hope that one day it gets included in the core jQuery UI release.  Until then, please feel free to use the widget for yourselves, it&#8217;s a simple plugin for the jQuery UI core.</p>
<p><a href="http://github.com/btburnett3/jquery.ui.spinner">jquery.ui.spinbuttons Git Repository</a></p>
]]></content:encoded>
			<wfw:commentRss>http://btburnett.com/2009/05/jquery-ui-spinner-widget.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery.Net</title>
		<link>http://btburnett.com/2009/05/jquerynet.html</link>
		<comments>http://btburnett.com/2009/05/jquerynet.html#comments</comments>
		<pubDate>Sat, 02 May 2009 14:49:25 +0000</pubDate>
		<dc:creator>Brant Burnett</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://btburnett.com/?p=68</guid>
		<description><![CDATA[In the last few months, I&#8217;ve discovered jQuery and jQuery UI, which are a pair pretty awesome of open source javascript libraries.  I know, I&#8217;m a little behind the times here, but all I can say is &#8220;Wow&#8221;.  Frankly, using jQuery makes the AJAX library that comes with .NET 3.0/3.5 from Microsoft seem foolish and [...]]]></description>
			<content:encoded><![CDATA[<p>In the last few months, I&#8217;ve discovered<a href="http://jquery.com"> jQuery</a> and <a href="http://ui.jquery.com">jQuery UI</a>, which are a pair pretty awesome of open source javascript libraries.  I know, I&#8217;m a little behind the times here, but all I can say is &#8220;Wow&#8221;.  Frankly, using jQuery makes the AJAX library that comes with .NET 3.0/3.5 from Microsoft seem foolish and clunky.  I&#8217;ve now transitioned away from using Microsoft&#8217;s open source AJAX Control Library, instead choosing to use jQuery.</p>
<p>The only downside of using jQuery with ASP.Net is the lack of integration.  They now include a vsdoc file which helps with Intellisense, but there&#8217;s a long way to go.  For simplicity, I&#8217;m still using Microsoft&#8217;s AJAX code for their page methods and UpdatePanels, and primarily using jQuery for the client side controls and animations.</p>
<p>I&#8217;ve written a library to help with the creation of ASP.Net server controls that utilize jQuery.  I&#8217;m calling it, very creatively, jQuery.Net.  You can access the code and binaries for the library on github, the link&#8217;s below.</p>
<p><a href="http://github.com/btburnett3/jquery.net/tree/master" target="_blank">jQuery.Net Git Repository</a></p>
]]></content:encoded>
			<wfw:commentRss>http://btburnett.com/2009/05/jquerynet.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
