<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>caffeine to code</title>
	<atom:link href="http://ctcode.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ctcode.wordpress.com</link>
	<description>Coffee coffee = new Coffee(); coffee.ConvertToCode();</description>
	<lastBuildDate>Wed, 30 Nov 2011 13:31:36 +0000</lastBuildDate>
	<language>nl</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ctcode.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>caffeine to code</title>
		<link>http://ctcode.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ctcode.wordpress.com/osd.xml" title="caffeine to code" />
	<atom:link rel='hub' href='http://ctcode.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Personal project called MessyBrain</title>
		<link>http://ctcode.wordpress.com/2011/06/30/personal-project-called-messybrain/</link>
		<comments>http://ctcode.wordpress.com/2011/06/30/personal-project-called-messybrain/#comments</comments>
		<pubDate>Thu, 30 Jun 2011 11:25:11 +0000</pubDate>
		<dc:creator>Thomas</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[MessyBrain]]></category>

		<guid isPermaLink="false">http://ctcode.wordpress.com/?p=48</guid>
		<description><![CDATA[Yesterday I launched my own little project on CodePlex called MessyBrain! This way I hope to improve my coding skills and learn some new things. I never worked with ASP.NET MVC so this is the first hurdle to get over&#8230; An extra pair of brain cells is always welcome! &#160; MessyBrain Project Description Organize your [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctcode.wordpress.com&amp;blog=12721990&amp;post=48&amp;subd=ctcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Yesterday I launched my own little project on CodePlex called <a href="http://messybrain.codeplex.com/">MessyBrain</a>!<br />
This way I hope to improve my coding skills and learn some new things. I never worked with ASP.NET MVC so this is the first hurdle to get over&#8230;</p>
<p>An extra pair of brain cells is always welcome!</p>
<p>&nbsp;</p>
<h2>MessyBrain</h2>
<p><strong>Project Description</strong><br />
Organize your tasks in an efficient way. Assign tasks to members of your team. Create workflows for your team.<br />
Written in C# and ASP.NET MVC.</p>
<p><strong>Why did I start this project?</strong><br />
Making mistakes is part of the learning process. They can be painful especially when they are made at work; there’s a cost attached to it.</p>
<p>Why not start a project on my own? Mistakes will be less painful (only my ego will be damaged), I learn something new and there isn’t a cost attached to it. I can share the code with the world and hopefully people will optimize my code so I will learn something new! But what sort of application should I develop?</p>
<p>Because I’m having some trouble to find an efficient and organized way to manage my tasks I was thinking to create a planning tool. It’s not only for my messy brain but I also noticed that some people are using Excel to manage their tasks.</p>
<p>Why not use a special developed application for this purpose? Or wouldn’t it be easier if the head of the department could centralize this data? He can assign tasks to specific people in his team and see how much of the task has been completed so far.</p>
<p>The people in the team will have a nice overview of all the assigned tasks and can see which tasks are more important… Maybe each task could contain multiple steps and maybe each step must be completed by a different department. This way the person who created the task can see which department is currently working on the task. Some sort of workflow…</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ctcode.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ctcode.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ctcode.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ctcode.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ctcode.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ctcode.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ctcode.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ctcode.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ctcode.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ctcode.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ctcode.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ctcode.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ctcode.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ctcode.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctcode.wordpress.com&amp;blog=12721990&amp;post=48&amp;subd=ctcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ctcode.wordpress.com/2011/06/30/personal-project-called-messybrain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b9bca04ccd1cbe156722454246c77d28?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Thomas</media:title>
		</media:content>
	</item>
		<item>
		<title>Telerik AsyncUpload: InvalidFiles-property</title>
		<link>http://ctcode.wordpress.com/2010/11/26/telerik-asyncupload-invalidfiles-property/</link>
		<comments>http://ctcode.wordpress.com/2010/11/26/telerik-asyncupload-invalidfiles-property/#comments</comments>
		<pubDate>Fri, 26 Nov 2010 12:33:41 +0000</pubDate>
		<dc:creator>Thomas</dc:creator>
				<category><![CDATA[Telerik]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://ctcode.wordpress.com/?p=43</guid>
		<description><![CDATA[I&#8217;ve upgraded the Telerik ASP.NET AJAX-controls to the latest version this week (2010.3.1109) and experienced some problems with the AsyncUpload-control. I always check the release notes of the newly released versions but nothing indicated breaking changes: Added: Silverlight Module Added: Inline Progress indicator What&#8217;s Fixed Fixed: RadAsyncUpload now works with Forms/Windows authentication and Anonymous Authentication [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctcode.wordpress.com&amp;blog=12721990&amp;post=43&amp;subd=ctcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve upgraded the Telerik ASP.NET AJAX-controls to the latest version this week (2010.3.1109) and experienced some problems with the AsyncUpload-control.<br />
I always check the<a href="http://www.telerik.com/products/aspnet-ajax/whats-new/release-history/q3-2010-version-2010-3-1109.aspx" target="_blank"> release notes</a> of the newly released versions but nothing indicated breaking changes:</p>
<blockquote>
<ul>
<li>Added: Silverlight Module</li>
<li>Added: Inline Progress indicator</li>
</ul>
<p><strong>What&#8217;s Fixed</strong></p>
<ul>
<li>Fixed:  RadAsyncUpload now works with Forms/Windows authentication and  Anonymous Authentication disabled as long as there is Silvelright  installed on the client&#8217;s browser</li>
<li>Fixed: RadAsyncUpload manual server-side validation not working</li>
</ul>
</blockquote>
<p>However when compiling our project I got the error that the property InvalidFiles didn&#8217;t exist for the AsyncUpload-control. I used this property to check if any file was selected with the wrong extension and show the appropiate error message.</p>
<p>I&#8217;ve contacted the Telerik support for this with the following answer:</p>
<blockquote><p>With RadAsyncUpload we wanted to undertake a different approach in handling files. In RadAsyncUpload the FileUploaded event is fired for each and every uploaded file and the event argument object of that event contains IsValid property, which specifies whether the uploaded file is valid or not.  You can use that event in order to perform actions regarding invalid files. Despite that, I believe that it might be a good idea to bring back the InvalidFiles collection, or at least a property to RadAsyncUpload specifying whether there are invalid files or not.</p></blockquote>
<p>So they will include the property again in one of the following releases. When trying to implement a fix I noticed that the browse control is now filtering automatically on the allowed extensions set on the AsyncUpload-control.</p>
<div id="attachment_44" class="wp-caption alignnone" style="width: 310px"><a href="http://ctcode.files.wordpress.com/2010/11/telerik-async-new-impl.png"><img class="size-medium wp-image-44" title="Automatically filter the files on the allowed extensions" src="http://ctcode.files.wordpress.com/2010/11/telerik-async-new-impl.png?w=300&#038;h=44" alt="Telerik AsyncUpload-control" width="300" height="44" /></a><p class="wp-caption-text">Automatically filter the files on the allowed extensions</p></div>
<p>A nice upgrade! No need to validate this myself anymore!<br />
At first I was a little bit frustrated about the breaking change (without mentioning it in the release notes) but the new implementation is actually much better!</p>
<p>Thank you Telerik!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ctcode.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ctcode.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ctcode.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ctcode.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ctcode.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ctcode.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ctcode.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ctcode.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ctcode.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ctcode.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ctcode.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ctcode.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ctcode.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ctcode.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctcode.wordpress.com&amp;blog=12721990&amp;post=43&amp;subd=ctcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ctcode.wordpress.com/2010/11/26/telerik-asyncupload-invalidfiles-property/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b9bca04ccd1cbe156722454246c77d28?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Thomas</media:title>
		</media:content>

		<media:content url="http://ctcode.files.wordpress.com/2010/11/telerik-async-new-impl.png?w=300" medium="image">
			<media:title type="html">Automatically filter the files on the allowed extensions</media:title>
		</media:content>
	</item>
		<item>
		<title>Contact Form 7: digit module</title>
		<link>http://ctcode.wordpress.com/2010/08/26/contact-form-7-digit-module/</link>
		<comments>http://ctcode.wordpress.com/2010/08/26/contact-form-7-digit-module/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 22:15:31 +0000</pubDate>
		<dc:creator>Thomas</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://ctcode.wordpress.com/?p=38</guid>
		<description><![CDATA[I&#8217;m currently in the progress to migrate our current website (www.smashforfun.be) to WordPress. Because it will be used primarly as CMS, I&#8217;m using a lot of plugins and one of them is Contact Form 7. A great plugin to rapidly create a form on your website/Wordpress but&#8230; I was lacking one functionality. Numeric validation. Because [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctcode.wordpress.com&amp;blog=12721990&amp;post=38&amp;subd=ctcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m currently in the progress to migrate our current website (<a href="http://www.smashforfun.be">www.smashforfun.be</a>) to WordPress.<br />
Because it will be used primarly as CMS, I&#8217;m using a lot of plugins and one of them is <a href="http://contactform7.com">Contact Form 7</a>.</p>
<p>A great plugin to rapidly create a form on your website/Wordpress but&#8230; I was lacking one functionality. Numeric validation.<br />
Because Contact Form 7 uses modules it was fairly easy to create <a href="http://www.smashforfun.be/files/digit.php.zip">a module</a> <em>(right-click and Save as)</em> myself.</p>
<p>The only thing you need to do is add a error message in includes/functions.php (in the folder of Contact Form 7).<br />
And that should do the trick&#8230; well&#8230; there was a problem when I added a new element to the messages array. My WordPress didn&#8217;t work anymore. When I add a new element something terrible happens I guess <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>For now, I just replaced an existing error message (which I don&#8217;t use right now) but if someone knows what causing this issue&#8230; please do tell!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ctcode.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ctcode.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ctcode.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ctcode.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ctcode.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ctcode.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ctcode.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ctcode.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ctcode.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ctcode.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ctcode.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ctcode.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ctcode.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ctcode.wordpress.com/38/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctcode.wordpress.com&amp;blog=12721990&amp;post=38&amp;subd=ctcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ctcode.wordpress.com/2010/08/26/contact-form-7-digit-module/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b9bca04ccd1cbe156722454246c77d28?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Thomas</media:title>
		</media:content>
	</item>
		<item>
		<title>Photography: The Antwerp Zoo</title>
		<link>http://ctcode.wordpress.com/2010/05/22/photography-the-antwerp-zoo/</link>
		<comments>http://ctcode.wordpress.com/2010/05/22/photography-the-antwerp-zoo/#comments</comments>
		<pubDate>Sat, 22 May 2010 09:57:37 +0000</pubDate>
		<dc:creator>Thomas</dc:creator>
				<category><![CDATA[Photography]]></category>
		<category><![CDATA[antwerp]]></category>
		<category><![CDATA[nature]]></category>
		<category><![CDATA[photography]]></category>
		<category><![CDATA[zoo]]></category>

		<guid isPermaLink="false">http://ctcode.wordpress.com/?p=33</guid>
		<description><![CDATA[Last week I&#8217;ve been to the Antwerp Zoo (I think it has been 6 years that I&#8217;ve been to the zoo) and took my camera with me (a Canon 1000D)&#8230; These are the first two pictures I&#8217;ve choosen from the ones I&#8217;ve shot there:<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctcode.wordpress.com&amp;blog=12721990&amp;post=33&amp;subd=ctcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Last week I&#8217;ve been to the Antwerp Zoo (I think it has been 6 years that I&#8217;ve been to the zoo) and took my camera with me (a Canon 1000D)&#8230;<br />
These are the first two pictures I&#8217;ve choosen from the ones I&#8217;ve shot there:</p>
<div class="wp-caption alignnone" style="width: 250px"><a href="http://www.flickr.com/photos/thomasvandenbossche/4616443708/"><img alt="okapi - antwerp zoo" src="http://farm5.static.flickr.com/4037/4616443708_28f6a52ea8_m.jpg" title="Okapi" width="240" height="160" /></a><p class="wp-caption-text">Okapi</p></div>
<div class="wp-caption alignnone" style="width: 250px"><a href="http://www.flickr.com/photos/thomasvandenbossche/4616406556/"><img alt="Monkey - Antwerp Zoo" src="http://farm4.static.flickr.com/3380/4616406556_c052ed2f63_m.jpg" title="Monkey - Antwerp Zoo" width="240" height="160" /></a><p class="wp-caption-text">A monkey at the Antwerp Zoo</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ctcode.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ctcode.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ctcode.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ctcode.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ctcode.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ctcode.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ctcode.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ctcode.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ctcode.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ctcode.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ctcode.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ctcode.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ctcode.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ctcode.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctcode.wordpress.com&amp;blog=12721990&amp;post=33&amp;subd=ctcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ctcode.wordpress.com/2010/05/22/photography-the-antwerp-zoo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b9bca04ccd1cbe156722454246c77d28?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Thomas</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4037/4616443708_28f6a52ea8_m.jpg" medium="image">
			<media:title type="html">Okapi</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3380/4616406556_c052ed2f63_m.jpg" medium="image">
			<media:title type="html">Monkey - Antwerp Zoo</media:title>
		</media:content>
	</item>
		<item>
		<title>Create a website intro with jQuery</title>
		<link>http://ctcode.wordpress.com/2010/05/18/create-a-website-intro-with-jquery/</link>
		<comments>http://ctcode.wordpress.com/2010/05/18/create-a-website-intro-with-jquery/#comments</comments>
		<pubDate>Tue, 18 May 2010 21:11:15 +0000</pubDate>
		<dc:creator>Thomas</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://ctcode.wordpress.com/?p=28</guid>
		<description><![CDATA[A couple of days ago I was asked if I could create a little intro for a website. The person, who asked the question, showed me some examples&#8230; in Flash&#8230; I&#8217;ve never been a fan of Flash websites so I was thinking if it would be possible to create an intro in jQuery? Well let&#8217;s [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctcode.wordpress.com&amp;blog=12721990&amp;post=28&amp;subd=ctcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A couple of days ago I was asked if I could create a little intro for a website.<br />
The person, who asked the question, showed me some examples&#8230; in Flash&#8230;</p>
<p>I&#8217;ve never been a fan of Flash websites so I was thinking if it would be possible to create an intro in <a title="jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript." href="http://jquery.com/">jQuery</a>?<br />
Well let&#8217;s get started! <em>Example of the <a href="http://www.smashforfun.be/dev/thomas/intro.html" target="_blank">jQuery intro</a>&#8230; </em></p>
<h2>HTML</h2>
<p>The HTML-code is quite straightforward:</p>
<pre>&lt;div id="intro"&gt;
 &lt;ul&gt;
 &lt;li&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit.&lt;/li&gt;
 &lt;li&gt;Phasellus id enim ut turpis dictum tincidunt.&lt;/li&gt;
 &lt;/ul&gt;
</pre>
<pre> &lt;ul&gt;
 &lt;li&gt;In tincidunt metus ut arcu ultricies a tempus est pretium.&lt;/li&gt;
 &lt;li&gt;Nam tristique ultricies nunc, at ultrices nulla fringilla quis.&lt;/li&gt;
 &lt;/ul&gt;
</pre>
<pre> &lt;ul&gt;
 &lt;li&gt;Sed sit amet ante ut enim aliquam pulvinar a sed eros.&lt;/li&gt;
 &lt;/ul&gt;
 &lt;/div&gt;
</pre>
<h2>CSS</h2>
<p>Nothing special here; the only important thing is the position: absolute so the text will always come from the same spot.</p>
<pre>#intro { margin-top: 25px; }
 #intro ul { position: absolute; }
 #intro li {
 font-size: 28px;
 margin-bottom: 15px;
 }
</pre>
<h2>Javascript</h2>
<pre>if(jQuery) {
    var listItems = new Array();
    var next_index = 0;

    $(document).ready(function() {
        // hide each list in the div intro
        $("#intro ul").each(function() {
            // add each list to a global array
            listItems.push($(this));
            // position each list outside the screen
            $(this).children().css("margin-left", -700);
        });

        // start the intro
        animateList(listItems);
 });

function animateElement(elements, index) {
      if(!index) index = 0;

      var next_childIndex = index + 1;
       if(next_childIndex &gt; elements.length) {
           // all listitems of the list has been animated; hide the complete list
           $(elements[0]).parent().animate({
                opacity: 0
            }, 1000, function() {
                // start animating the next list
                animateList(listItems, next_index);
            });

           return;
       }

       var element = elements[index];
       // start animating the current listitem
       $(element).animate({
           marginLeft: 10
       }, 3000, function() {
           // start animating the next listitem
           animateElement(elements, next_childIndex);
       });
 }

function animateList(elements, index) {
      if(!index) index = 0;

      next_index = index + 1;
      if(next_index &gt; elements.length) { return; }

      var element = elements[index];

      var itemChildren = new Array();
      $(element).children().each(function() {
          // get each listitem from the current list and add them to an array
          itemChildren.push($(this));
      });

      // start the animation of the listitems of the current list
      animateElement(itemChildren);
 }
 }
</pre>
<p>Credits for most of the code: <a href="http://stackoverflow.com/questions/2168485/wait-for-each-jquery" target="_blank">wait for each jQuery on StackOverflow</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ctcode.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ctcode.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ctcode.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ctcode.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ctcode.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ctcode.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ctcode.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ctcode.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ctcode.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ctcode.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ctcode.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ctcode.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ctcode.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ctcode.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctcode.wordpress.com&amp;blog=12721990&amp;post=28&amp;subd=ctcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ctcode.wordpress.com/2010/05/18/create-a-website-intro-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b9bca04ccd1cbe156722454246c77d28?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Thomas</media:title>
		</media:content>
	</item>
		<item>
		<title>Telerik RadGrid: filter column on date range</title>
		<link>http://ctcode.wordpress.com/2010/03/22/telerik-radgrid-filter-column-on-date-range/</link>
		<comments>http://ctcode.wordpress.com/2010/03/22/telerik-radgrid-filter-column-on-date-range/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 12:04:16 +0000</pubDate>
		<dc:creator>Thomas</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Telerik]]></category>

		<guid isPermaLink="false">http://ctcode.wordpress.com/?p=10</guid>
		<description><![CDATA[Het filteren van een Telerik RadGrid is doodeenvoudig. Je zet de property AllowFilteringByColumn op true en dat is het eigenlijk. Nu is er een probleem als je niet wil filteren op tekst maar op datum en niet louter op 1 datum maar tussen bepaalde datums&#8230; Daarom moeten we een eigen filter gaan maken; wat vrij [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctcode.wordpress.com&amp;blog=12721990&amp;post=10&amp;subd=ctcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Het filteren van een <a title="telerik asp.net grid" href="http://www.telerik.com/products/aspnet-ajax/grid.aspx" target="_blank">Telerik RadGrid</a> is doodeenvoudig. Je zet de property AllowFilteringByColumn op true en dat is het eigenlijk. Nu is er een probleem als je niet wil filteren op tekst maar op datum en niet louter op 1 datum maar tussen bepaalde datums&#8230;</p>
<p>Daarom moeten we een eigen filter gaan maken; wat vrij eenvoudig is.<br />
In plaats van</p>
<pre>&lt;telerik:GridBoundColumn HeaderText="Datum" UniqueName="Datum" DataField="EventDate" AutoPostBackOnFilter="true" /&gt;</pre>
<p>moeten we nu gebruik maken van</p>
<pre>&lt;telerik:GridBoundColumn HeaderText="Date" UniqueName="EventDate" DataField="eventdate"&gt;
 &lt;FilterTemplate&gt;
 &lt;telerik:RadDatePicker ID="dateFrom" runat="server" ClientEvents-OnDateSelected="FromDateSelected" SelectedDate='&lt;%# fromDate %&gt;'  /&gt;
 &lt;telerik:RadDatePicker ID="dateTo" runat="server" ClientEvents-OnDateSelected="ToDateSelected" SelectedDate='&lt;%# toDate %&gt;' /&gt;
&lt;telerik:RadScriptBlock ID="scriptFilterEventDate" runat="server"&gt;
 &lt;script type="text/javascript"&gt;
 function FromDateSelected(sender, args) {
 var tableView = $find("&lt;%# ((GridItem)Container).OwnerTableView.ClientID %&gt;");
 var ToPicker = $find('&lt;%# ((GridItem)Container).FindControl("dateTo").ClientID %&gt;');

 var fromDate = FormatSelectedDate(sender);
 var toDate = FormatSelectedDate(ToPicker);

 if (toDate != '') {
 tableView.filter("EventDate", fromDate + " " + toDate, "Between");
 }
 }
function ToDateSelected(sender, args) {
 var tableView = $find("&lt;%# ((GridItem)Container).OwnerTableView.ClientID %&gt;");
 var FromPicker = $find('&lt;%# ((GridItem)Container).FindControl("dateFrom").ClientID %&gt;');

 var fromDate = FormatSelectedDate(FromPicker);
 var toDate = FormatSelectedDate(sender);

 if (fromDate != '') {
 tableView.filter("EventDate", fromDate + " " + toDate, "Between");
 }
 }
function FormatSelectedDate(picker) {
 var date = picker.get_selectedDate();
 var dateInput = picker.get_dateInput();
 var formattedDate = dateInput.get_dateFormatInfo().FormatDate(date, dateInput.get_displayDateFormat());

 return formattedDate;
 }
 &lt;/script&gt;
 &lt;/telerik:RadScriptBlock&gt;
 &lt;/FilterTemplate&gt;
&lt;/telerik:GridBoundColumn&gt;</pre>
<p>Ok, het is een aardig stukje code meer maar als je het eens rustig bekijkt, is er eigenlijk niets aan.</p>
<h2>Wat willen we nu juist doen?</h2>
<p>Aangezien we gaan filteren tussen bepaalde datums, moeten we dus eerst en vooral de standaard tekstvelden gaan vervangen door twee kalenders.<br />
Dit kunnen we eenvoudig doen door een <em>&lt;FilterTemplate&gt;&lt;/FilterTemplate&gt;</em> te gaan definïeren voor onze kolom en tussen deze tags onze twee kalenders te gaan plaatsen.</p>
<pre>&lt;telerik:GridBoundColumn HeaderText="Date" UniqueName="EventDate" DataField="eventdate"&gt;
     &lt;FilterTemplate&gt;
         &lt;telerik:RadDatePicker ID="dateFrom" runat="server" /&gt;
         &lt;telerik:RadDatePicker ID="dateTo" runat="server" /&gt;
     &lt;/FilterTemplate&gt;
&lt;/telerik:GridBoundColumn&gt;</pre>
<p>Mooi zo! We hebben nu twee kalenders bovenaan onze kolom.<br />
<img class="alignnone" title="filter met kalender" src="http://public.bay.livefilestore.com/y1pTOfnZ_SMe4ZE3v5EIqjwKKdDqptOl3727B_TU8sGwZm3YtO1u5Gmb9dOcsLeMHpCs_rKWTE9x848Nd_CybHTsw/filter-telerik-date-range-part1.png" alt="filter Telerik ASP.NET grid met kalender" width="263" height="82" /></p>
<p>Nu moeten we nog de code voorzien om de grid te gaan filteren als we een datum hebben gekozen. We mogen pas dit event gaan uitvoeren als zowel de begin- als de einddatum is gekozen.<br />
De events gaan we gaan uitvoeren via Javascript; daarom voegen we aan onze twee kalenders de methodes toe die worden uitgevoerd wanneer er een datum wordt geselecteerd.</p>
<pre>&lt;telerik:GridBoundColumn HeaderText="Date" UniqueName="EventDate" DataField="eventdate"&gt;
     &lt;FilterTemplate&gt;
         &lt;telerik:RadDatePicker ID="dateFrom" ClientEvents-OnDateSelected="FromDateSelected" runat="server" /&gt;
         &lt;telerik:RadDatePicker ID="dateTo" ClientEvents-OnDateSelected="ToDateSelected" runat="server" /&gt;
     &lt;/FilterTemplate&gt;
&lt;/telerik:GridBoundColumn&gt;</pre>
<p>Goed, nu de Javascript-methodes zelf:</p>
<pre>&lt;telerik:RadScriptBlock ID="scriptFilterEventDate" runat="server"&gt;
&lt;script type="text/javascript"&gt;
    function FromDateSelected(sender, args) {
        var tableView = $find("&lt;%# ((GridItem)Container).OwnerTableView.ClientID %&gt;");
        var ToPicker = $find('&lt;%# ((GridItem)Container).FindControl("dateTo").ClientID %&gt;');

        var fromDate = FormatSelectedDate(sender);
        var toDate = FormatSelectedDate(ToPicker);

        // filter alleen de tabel als we de andere datum al gekozen hebben
        if (toDate != '') {
            tableView.filter("EventDate", fromDate + " " + toDate, "Between");
        }
    }

    function ToDateSelected(sender, args) {
        var tableView = $find("&lt;%# ((GridItem)Container).OwnerTableView.ClientID %&gt;");
        var FromPicker = $find('&lt;%# ((GridItem)Container).FindControl("dateFrom").ClientID %&gt;');

        var fromDate = FormatSelectedDate(FromPicker);
        var toDate = FormatSelectedDate(sender);

        // filter alleen de tabel als we de andere datum al gekozen hebben
        if (fromDate != '') {
            tableView.filter("EventDate", fromDate + " " + toDate, "Between");
        }
    }

    function FormatSelectedDate(picker) {
        var date = picker.get_selectedDate();
        var dateInput = picker.get_dateInput();

        var formattedDate = dateInput.get_dateFormatInfo().FormatDate(date, dateInput.get_displayDateFormat()
        return formattedDate;
    }
&lt;/script&gt;
&lt;/telerik:RadScriptBlock&gt;</pre>
<p>Voilà! We kunnen onze grid nu filteren en tot nu toe niet echt grote problemen. Maar je zal zien dat de gekozen datums niet worden bewaard tussen de postbacks&#8230;<br />
En dit is de reden waarom ik eigenlijk deze blogpost ben begonnnen. Ik vond niet direct de methode om de waardes tussen de postbacks te gaan bewaren&#8230;</p>
<p>Het is de bedoeling om aan de kalenders volgende code toe te voegen:</p>
<pre>SelectedDate='&lt;%# fromDate %&gt;'</pre>
<p>Allemaal goed en wel maar vanwaar komt deze variabele nu?! Ik vond het niet direct terug in de documentatie tot ik bij de demo&#8217;s van Telerik kwam.<br />
Blijkbaar moet je in je code-behind twee properties gaan declareren die de waarde gaan bewaren in de ASP.NET ViewState.</p>
<p>Rustig rustig! De code komt er zo aan:</p>
<pre>protected DateTime? fromDate {
   set {
       ViewState["fromDate"] = value;
   }

   get {
       if ( ViewState["fromDate"] != null ) {
           return ( DateTime )ViewState["fromDate"];
       }

       return null;
   }
 }

 protected DateTime? toDate {
    set {
        ViewState["toDate"] = value;
     }

     get {
         if ( ViewState["toDate"] != null ) {
             return ( DateTime )ViewState["toDate"];
         }

         return null;
     }
 }</pre>
<p>Ziezo! Nu blijven je gekozen waardes bewaard tussen de postbacks en is onze filter volledig!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ctcode.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ctcode.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ctcode.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ctcode.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ctcode.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ctcode.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ctcode.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ctcode.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ctcode.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ctcode.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ctcode.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ctcode.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ctcode.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ctcode.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctcode.wordpress.com&amp;blog=12721990&amp;post=10&amp;subd=ctcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ctcode.wordpress.com/2010/03/22/telerik-radgrid-filter-column-on-date-range/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b9bca04ccd1cbe156722454246c77d28?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Thomas</media:title>
		</media:content>

		<media:content url="http://public.bay.livefilestore.com/y1pTOfnZ_SMe4ZE3v5EIqjwKKdDqptOl3727B_TU8sGwZm3YtO1u5Gmb9dOcsLeMHpCs_rKWTE9x848Nd_CybHTsw/filter-telerik-date-range-part1.png" medium="image">
			<media:title type="html">filter met kalender</media:title>
		</media:content>
	</item>
	</channel>
</rss>
