<?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>ADM Blog &#187; event</title> <atom:link href="http://blog.another-d-mention.ro/tag/event/feed/" rel="self" type="application/rss+xml" /><link>http://blog.another-d-mention.ro</link> <description>No matter how you see things, reality changes when you reach understanding</description> <lastBuildDate>Fri, 22 Jul 2011 06:56:49 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.1</generator> <item><title>On typing finished jQuery plugin</title><link>http://blog.another-d-mention.ro/programming/java-script/on-typing-complete-jquery-plugin/</link> <comments>http://blog.another-d-mention.ro/programming/java-script/on-typing-complete-jquery-plugin/#comments</comments> <pubDate>Wed, 11 Aug 2010 08:06:01 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Java Script]]></category> <category><![CDATA[event]]></category> <category><![CDATA[form]]></category> <category><![CDATA[input]]></category> <category><![CDATA[jquery]]></category> <category><![CDATA[plugin]]></category> <category><![CDATA[type]]></category> <category><![CDATA[validation]]></category> <guid
isPermaLink="false">http://blog.another-d-mention.ro/?p=832</guid> <description><![CDATA[If you are developing a form and you require certain validations; check if username is available or not for example - the way to do that is to listen for the change/focusout DOM events. You can also check it on every keypress but if the validation does some expensive checking in the background that is [...]
Related posts:<ol><li><a
href='http://blog.another-d-mention.ro/programming/java-script/jquery-quickeach/' rel='bookmark' title='Permanent Link: jQuery.quickEach'>jQuery.quickEach</a></li><li><a
href='http://blog.another-d-mention.ro/programming/java-script/parse-xml-in-javascript-with-jquery/' rel='bookmark' title='Permanent Link: Parse XML in JavaScript with jQuery'>Parse XML in JavaScript with jQuery</a></li><li><a
href='http://blog.another-d-mention.ro/programming/java-script/for-javascript-devs/' rel='bookmark' title='Permanent Link: For Javascript devs'>For Javascript devs</a></li></ol>]]></description> <content:encoded><![CDATA[<p>If you are developing a form and you require certain validations; check if username is available or not for example - the way to do that is to listen for the change/focusout DOM events. You can also check it on every keypress but if the validation does some expensive checking in the background that is out of the question. So here is a really small jQuery plugin that does tell you when a user finished typing inside a text box. The way it does it is to compute the speed the user is typing with and when a delay longer than twice the speed average occurs, the event is triggered and your validation function is called. Simple enough.</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
</pre></td><td
class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  $.<span style="color: #660066;">fn</span>.<span style="color: #660066;">onTypeFinished</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>func<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
     <span style="color: #003366; font-weight: bold;">var</span> T <span style="color: #339933;">=</span> undefined<span style="color: #339933;">,</span> S <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> D <span style="color: #339933;">=</span> <span style="color: #CC0000;">1000</span><span style="color: #339933;">;</span>
     $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">bind</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;keypress&quot;</span><span style="color: #339933;">,</span> onKeyPress<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">bind</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;focusout&quot;</span><span style="color: #339933;">,</span> onTimeOut<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #003366; font-weight: bold;">function</span> onKeyPress<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        clearTimeout<span style="color: #009900;">&#40;</span>T<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>S <span style="color: #339933;">==</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> S <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Date<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getTime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> D <span style="color: #339933;">=</span> <span style="color: #CC0000;">1000</span><span style="color: #339933;">;</span> T <span style="color: #339933;">=</span> setTimeout<span style="color: #009900;">&#40;</span>onTimeOut<span style="color: #339933;">,</span> <span style="color: #CC0000;">1000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000066; font-weight: bold;">return</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
        <span style="color: #003366; font-weight: bold;">var</span> t <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Date<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getTime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        D <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>D <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span>t <span style="color: #339933;">-</span> S<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">/</span> <span style="color: #CC0000;">2</span><span style="color: #339933;">;</span> S <span style="color: #339933;">=</span> t<span style="color: #339933;">;</span> T <span style="color: #339933;">=</span> setTimeout<span style="color: #009900;">&#40;</span>onTimeOut<span style="color: #339933;">,</span> D <span style="color: #339933;">*</span> <span style="color: #CC0000;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #009900;">&#125;</span>
&nbsp;
      <span style="color: #003366; font-weight: bold;">function</span> onTimeOut<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
           func.<span style="color: #660066;">apply</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> S <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span>
      <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">this</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p>The way to use it:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
</pre></td><td
class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;input[name='username']&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">onTypeFinished</span><span style="color: #009900;">&#40;</span>myValidationFunction<span style="color: #009900;">&#41;</span></pre></td></tr></table></div><p>And here is a small demo:<br
/> <iframe
src="http://cache.another-d-mention.ro/stuff/jquery/jquerytest.html" border="0" width="100%" height="100"></iframe></p><p>Related posts:<ol><li><a
href='http://blog.another-d-mention.ro/programming/java-script/jquery-quickeach/' rel='bookmark' title='Permanent Link: jQuery.quickEach'>jQuery.quickEach</a></li><li><a
href='http://blog.another-d-mention.ro/programming/java-script/parse-xml-in-javascript-with-jquery/' rel='bookmark' title='Permanent Link: Parse XML in JavaScript with jQuery'>Parse XML in JavaScript with jQuery</a></li><li><a
href='http://blog.another-d-mention.ro/programming/java-script/for-javascript-devs/' rel='bookmark' title='Permanent Link: For Javascript devs'>For Javascript devs</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://blog.another-d-mention.ro/programming/java-script/on-typing-complete-jquery-plugin/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>Flex vs Silverlight vs AJAX</title><link>http://blog.another-d-mention.ro/misc/flex-vs-silverlight-vs-ajax/</link> <comments>http://blog.another-d-mention.ro/misc/flex-vs-silverlight-vs-ajax/#comments</comments> <pubDate>Sat, 14 Nov 2009 07:45:17 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Misc]]></category> <category><![CDATA[ajax]]></category> <category><![CDATA[event]]></category> <category><![CDATA[flex]]></category> <category><![CDATA[silverlight]]></category> <category><![CDATA[transylvania]]></category> <category><![CDATA[usergroup]]></category> <guid
isPermaLink="false">http://blog.another-d-mention.ro/?p=763</guid> <description><![CDATA[Our Transylvania Flex Group 3th event will be held this Saturday (November 21, 2009) in Cluj-Napoca. This one will be a showdown between RIA technologies, with advocates from our Betfair Office. Iosif George for Flex, Vlad Nemes for AJAX and Silviu Niculita from RIASolutionsGroup for Silvelight. Registration is free and you can signup for the [...]
Related posts:<ol><li><a
href='http://blog.another-d-mention.ro/misc/flex-and-visual-studio/' rel='bookmark' title='Permanent Link: Flex and Visual Studio'>Flex and Visual Studio</a></li><li><a
href='http://blog.another-d-mention.ro/misc/flex-camp/' rel='bookmark' title='Permanent Link: Flex Camp'>Flex Camp</a></li><li><a
href='http://blog.another-d-mention.ro/programming/right-click-and-custom-context-menu-in-flash-flex/' rel='bookmark' title='Permanent Link: Right click and custom context menu in Flash/Flex'>Right click and custom context menu in Flash/Flex</a></li></ol>]]></description> <content:encoded><![CDATA[<p>Our <a
href="http://groups.adobe.com/groups/15724342f4/summary">Transylvania Flex Group</a> 3th event will be held this Saturday (November 21, 2009) in Cluj-Napoca.<br
/> This one will be a showdown between RIA technologies, with advocates from our Betfair Office. Iosif George for Flex, Vlad Nemes for AJAX and Silviu Niculita from RIASolutionsGroup for Silvelight.</p><p>Registration is free and you can signup for the event <a
href="http://fsacluj.eventbrite.com/">here</a>. See you there !</p><p><a
href="http://cache.another-d-mention.ro/images/wp-content/uploads/2009/11/fl_vs_ajax_vs_silverlight.jpg" target="_blank"><img
src="http://cache.another-d-mention.ro/images/wp-content/uploads/2009/11/fl_vs_ajax_vs_silverlight.jpg" alt="fl vs ajax vs silverlight Flex vs Silverlight vs AJAX" title="Flex vs Silvelight vs AJAX" width="403" height="570" class="aligncenter size-full wp-image-765" /></a></p><p>Related posts:<ol><li><a
href='http://blog.another-d-mention.ro/misc/flex-and-visual-studio/' rel='bookmark' title='Permanent Link: Flex and Visual Studio'>Flex and Visual Studio</a></li><li><a
href='http://blog.another-d-mention.ro/misc/flex-camp/' rel='bookmark' title='Permanent Link: Flex Camp'>Flex Camp</a></li><li><a
href='http://blog.another-d-mention.ro/programming/right-click-and-custom-context-menu-in-flash-flex/' rel='bookmark' title='Permanent Link: Right click and custom context menu in Flash/Flex'>Right click and custom context menu in Flash/Flex</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://blog.another-d-mention.ro/misc/flex-vs-silverlight-vs-ajax/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
