<?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>BLOGS@DiGiTSS &#187; Javascript</title>
	<atom:link href="http://blogs.digitss.com/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.digitss.com</link>
	<description>DiGiTSS Team&#039;s Programming experience with PHP, MySQL, Ajax, Javascript, jQuery, C# and Microsoft technologies</description>
	<lastBuildDate>Sat, 13 Aug 2011 06:26:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Implementing Quick Table Search using jQuery filter</title>
		<link>http://blogs.digitss.com/javascript/jquery-javascript/implementing-quick-table-search-using-jquery-filter/</link>
		<comments>http://blogs.digitss.com/javascript/jquery-javascript/implementing-quick-table-search-using-jquery-filter/#comments</comments>
		<pubDate>Sat, 13 Aug 2011 05:35:38 +0000</pubDate>
		<dc:creator>Dharmavirsinh Jhala</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://blogs.digitss.com/?p=619</guid>
		<description><![CDATA[Before sometime I had written a post on jQuery case-insensitive expression filter. Now today we will learn about how to put simple filter for our HTML table using jQuery and it's case-insensitive expression.]]></description>
			<content:encoded><![CDATA[<p>Before sometime I had written a post on <a href="http://blogs.digitss.com/javascript/jquery-javascript/jquery-case-insensitive-contains-expression/" target="_blank">jQuery case-insensitive expression</a> filter. Now today we will learn about how to put simple filter for our <em>HTML table</em> using <strong>jQuery</strong> and it's <em>case-insensitive expression</em>.</p>
<p>It's takes just few lines of Javascript / jQuery code to implement quick filter for an HTML table, here you go:</p>
<p><strong>The HTML</strong></p>
<pre>&nbsp;
&lt;label for=&quot;kwd_search&quot;&gt;Search:&lt;/label&gt;
&lt;input type=&quot;text&quot; id=&quot;kwd_search&quot; value=&quot;&quot;/&gt;
&lt;table id=&quot;my-table&quot; border=&quot;1&quot; style=&quot;border-collapse:collapse&quot;&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Name&lt;/th&gt;
&lt;th&gt;Sports&lt;/th&gt;
&lt;th&gt;Country&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Sachin Tendulkar&lt;/td&gt;
&lt;td&gt;Cricket&lt;/td&gt;
&lt;td&gt;India&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tiger Woods&lt;/td&gt;
&lt;td&gt;Golf&lt;/td&gt;
&lt;td&gt;USA&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Maria Sharapova&lt;/td&gt;
&lt;td&gt;Tennis&lt;/td&gt;
&lt;td&gt;Russia&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&nbsp;</pre>
<p><span id="more-619"></span><br />
<strong>The Javascript</strong></p>
<pre class="javascript">&nbsp;
<span style="color: #009900; font-style: italic;">// When document is ready: this gets fired before body onload &lt;img src='http://blogs.digitss.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /&gt;</span>
$<span style="color: #66cc66;">&#40;</span>document<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">ready</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
	<span style="color: #009900; font-style: italic;">// Write on keyup event of keyword input element</span>
	$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;#kwd_search&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">keyup</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
		<span style="color: #009900; font-style: italic;">// When value of the input is not blank</span>
		<span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span> $<span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">val</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> != <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #66cc66;">&#41;</span>
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #009900; font-style: italic;">// Show only matching TR, hide rest of them</span>
			$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;#my-table tbody&gt;tr&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">hide</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;#my-table td:contains-ci('&quot;</span> + $<span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">val</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> + <span style="color: #3366CC;">&quot;')&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">parent</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;tr&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">show</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
		<span style="color: #000066; font-weight: bold;">else</span>
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #009900; font-style: italic;">// When there is no input or clean again, show everything back</span>
			$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;#my-table tbody&gt;tr&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">show</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
	<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #009900; font-style: italic;">// jQuery expression for case-insensitive filter</span>
$.<span style="color: #006600;">extend</span><span style="color: #66cc66;">&#40;</span>$.<span style="color: #006600;">expr</span><span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">&quot;:&quot;</span><span style="color: #66cc66;">&#93;</span>,
<span style="color: #66cc66;">&#123;</span>
    <span style="color: #3366CC;">&quot;contains-ci&quot;</span>: <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>elem, i, match, array<span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #66cc66;">&#40;</span>elem.<span style="color: #006600;">textContent</span> || elem.<span style="color: #006600;">innerText</span> || $<span style="color: #66cc66;">&#40;</span>elem<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">text</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> || <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">toLowerCase</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">indexOf</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>match<span style="color: #66cc66;">&#91;</span><span style="color: #CC0000;">3</span><span style="color: #66cc66;">&#93;</span> || <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">toLowerCase</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> &gt;= <span style="color: #CC0000;">0</span>;
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;</pre>
<p>That's all it takes to put a quick filter using <strong>jQuery</strong>, see a <a title="jQuery quick filter for HTML Table" href="http://blogs.digitss.com/demo/jquery-table-search.html" target="_blank">live working demo here</a>.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://blogs.digitss.com/javascript/jquery-javascript/jquery-case-insensitive-contains-expression/" rel="bookmark" title="April 20, 2011">jQuery case-insensitive Contains Expression..!</a></li>
<li><a href="http://blogs.digitss.com/javascript/jquery-javascript/jquery-fancy-custom-radio-and-checkbox/" rel="bookmark" title="April 8, 2010">jQuery Fancy Custom Radio-button and Checkbox</a></li>
<li><a href="http://blogs.digitss.com/javascript/jquery-tablesorter-plugin-a-friend-in-need/" rel="bookmark" title="February 28, 2008">jQuery tablesorter plugin &#8211; a friend in need&#8230;</a></li>
<li><a href="http://blogs.digitss.com/technology/hacking-jquery-thickbox/" rel="bookmark" title="April 27, 2008">Hacking jQuery Thickbox..!</a></li>
<li><a href="http://blogs.digitss.com/programming/printing-data-table-vertically-why-and-how/" rel="bookmark" title="January 3, 2011">Printing data table vertically..! Why? and How?</a></li>
</ul>
<p><!-- Similar Posts took 8.704 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.digitss.com/javascript/jquery-javascript/implementing-quick-table-search-using-jquery-filter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple / Plain Ajax &#8211; without any JavaScript library</title>
		<link>http://blogs.digitss.com/javascript/simple-plain-ajax-without-any-javascript-library/</link>
		<comments>http://blogs.digitss.com/javascript/simple-plain-ajax-without-any-javascript-library/#comments</comments>
		<pubDate>Fri, 22 Apr 2011 09:35:28 +0000</pubDate>
		<dc:creator>Dharmavirsinh Jhala</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://blogs.digitss.com/?p=597</guid>
		<description><![CDATA[Yes, we are in the world of AJAX where we don't live without jQuery, Prototype or Mootools but when it comes to explaining someone that how raw ajax works, you need an example of plain AJAX which we have been using 5 years back when these libraries were either just born and were not as famous as today. Because my favorite jQuery has become a de facto standard when it comes to DOM manipulation or AJAX.

Recently I have to give an example to one of my friend on how raw AJAX works and here I am sharing that sample with my blog readers as a reference.]]></description>
			<content:encoded><![CDATA[<p>Yes, we are in the world of <strong>AJAX</strong> where we don't live without <strong>jQuery</strong>, <strong>Prototype</strong> or <strong>Mootool</strong>s but when it comes to explaining someone that how raw ajax works, you need an example of plain AJAX which we have been using 5 years back when these libraries were either just born and were not as famous as today. Because my favorite jQuery has become a <em>de facto standard</em> when it comes to <strong>DOM manipulation</strong> or <strong>AJAX</strong>.</p>
<p>Recently I have to give an example to one of my friend on <em>how raw AJAX works</em> and here I am sharing that sample with my blog readers as a reference.</p>
<p><span style="text-decoration: underline;"><strong>Raw AJAX Example</strong></span>:</p>
<p><strong><span style="text-decoration: underline;"><em>The Problem Statement</em></span></strong>: We want to SUM 2 values and we want to achieve that using server-side scripting as we don't want to do that using JavaScript due to some ABC reason.</p>
<p><strong><span style="text-decoration: underline;"><em>The HTML</em></span>:</strong></p>
<pre>Raw AJAX Example Demo
&nbsp;
Val 1: 
&lt;input id=&quot;val1&quot; name=&quot;val1&quot; type=&quot;text&quot; /&gt;
 + 
Val 2: 
&lt;input id=&quot;val2&quot; name=&quot;val2&quot; type=&quot;text&quot; /&gt;
&lt;input onclick=&quot;doSum()&quot; type=&quot;button&quot; value=&quot;=&quot; /&gt;
&lt;input id=&quot;sum&quot; name=&quot;sum&quot; type=&quot;text&quot; /&gt;</pre>
<p><strong><span style="text-decoration: underline;"><em>The Javascript</em></span>:</strong></p>
<pre class="javascript"><span style="color: #003366; font-weight: bold;">function</span> doSum<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">var</span> url = <span style="color: #3366CC;">&quot;simple_ajax_server.php&quot;</span>;
	<span style="color: #003366; font-weight: bold;">var</span> data = <span style="color: #3366CC;">&quot;val1=&quot;</span> + document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;val1&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">value</span> + <span style="color: #3366CC;">&quot;&amp;amp;val2=&quot;</span> + document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;val2&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">value</span>;
	<span style="color: #003366; font-weight: bold;">var</span> method = <span style="color: #3366CC;">'POST'</span>;
	<span style="color: #003366; font-weight: bold;">var</span> async = <span style="color: #003366; font-weight: bold;">true</span>;
	<span style="color: #003366; font-weight: bold;">var</span> xmlHttpRequst = <span style="color: #003366; font-weight: bold;">false</span>;
&nbsp;
	<span style="color: #009900; font-style: italic;">// Mozilla/Safari/Non-IE</span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>window.<span style="color: #006600;">XMLHttpRequest</span><span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</span>
        xmlHttpRequst = <span style="color: #003366; font-weight: bold;">new</span> XMLHttpRequest<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #66cc66;">&#125;</span>
    <span style="color: #009900; font-style: italic;">// IE</span>
    <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>window.<span style="color: #006600;">ActiveXObject</span><span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</span>
        xmlHttpRequst = <span style="color: #003366; font-weight: bold;">new</span> ActiveXObject<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;Microsoft.XMLHTTP&quot;</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #66cc66;">&#125;</span>
&nbsp;
	<span style="color: #009900; font-style: italic;">// If AJAX supported</span>
	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span>xmlHttpRequst != <span style="color: #003366; font-weight: bold;">false</span><span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #009900; font-style: italic;">// Open Http Request connection</span>
		xmlHttpRequst.<span style="color: #000066;">open</span><span style="color: #66cc66;">&#40;</span>method, url, async<span style="color: #66cc66;">&#41;</span>;
		<span style="color: #009900; font-style: italic;">// Set request header (optional if GET method is used)</span>
		xmlHttpRequst.<span style="color: #006600;">setRequestHeader</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'Content-Type'</span>, <span style="color: #3366CC;">'application/x-www-form-urlencoded'</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #009900; font-style: italic;">// Callback when ReadyState is changed.</span>
		xmlHttpRequst.<span style="color: #006600;">onreadystatechange</span> = <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>xmlHttpRequst.<span style="color: #006600;">readyState</span> == <span style="color: #CC0000;">4</span><span style="color: #66cc66;">&#41;</span>
			<span style="color: #66cc66;">&#123;</span>
				document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;sum&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">value</span> = xmlHttpRequst.<span style="color: #006600;">responseText</span>;
			<span style="color: #66cc66;">&#125;</span>
		<span style="color: #66cc66;">&#125;</span>
		xmlHttpRequst.<span style="color: #006600;">send</span><span style="color: #66cc66;">&#40;</span>data<span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
	<span style="color: #000066; font-weight: bold;">else</span>
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #000066;">alert</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;Please use browser with Ajax support.!&quot;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre>
<p><strong><em># How does it work?</em></strong><br />
As you can see in above JavaScript example code that, first we need to initialize XMLHttpRequest object. For IE and non-IE there is a different way to initialize that object. IE being Microsoft product supports XMLHTTPRequest object creation using ActiveX while rest of the browser does it the common way.<br />
If you're successful creating the HTTP-Request object then you open the connection to URL/URI with which you want to interact to perform desired operation; with method either POST or GET. 3rd optional parameter to open method indicates whether you want to make async request or sync request.<br />
<strong><em># What is sync / async?</em></strong><br />
Due to the behavior of JavaScript when you perform any operation in JavaScript statements start executing in parallel. So if you go the async way your next line of code will start getting executed irrespective of whether request is completed or not?<br />
<strong><em># When to use sync?</em></strong> When you have to perform some operation which is dependent on the result of AJAX request and you can't define them in request-handler function (one which is defined as onreadystatechange) than you must use sync request.<br />
<strong><em># When to use async?</em></strong> When you're loading some static content which is for information purpose and there is no dependent operation to be performed on the data being received from the AJAX request at that time you have to use async.<br />
If you omit that argument it defaults to true meaning an asynchronous request to the server.</p>
<p><em><strong># What is readyState?</strong></em><span id="more-597"></span><br />
Here is the list of possible values and meaning of each value of XMLHttpObject's property <em>readyState</em>, for more reference refer <a title="w3.org docs" href="http://www.w3.org/TR/2006/WD-XMLHttpRequest-20060405/" target="_blank">w3.org</a> docs.</p>
<table style="border-collapse: collapse;" border="1">
<tbody>
<tr>
<td>0</td>
<td>Uninitialized</td>
<td>The initial value.</td>
</tr>
<tr>
<td>1</td>
<td>Open</td>
<td>The open() method has been successfully called.</td>
</tr>
<tr>
<td>2</td>
<td>Sent</td>
<td>The UA successfully completed the request, but no data has yet been received.</td>
</tr>
<tr>
<td>3</td>
<td>Receiving</td>
<td>Immediately before receiving the message body (if any). All HTTP headers have been received.</td>
</tr>
<tr>
<td>4</td>
<td>Loaded</td>
<td>The data transfer has been completed.</td>
</tr>
</tbody>
</table>
<h3>Raw AJAX Example Demo</h3>
<p><strong><em><span style="text-decoration: underline;">The PHP/Server-side</span></em>:</strong></p>
<pre class="php"><span style="color: #0000ff;">$val1</span> = <span style="color: #66cc66;">&#40;</span>int<span style="color: #66cc66;">&#41;</span><span style="color: #0000ff;">$_POST</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'val1'</span><span style="color: #66cc66;">&#93;</span>;
<span style="color: #0000ff;">$val2</span> = <span style="color: #66cc66;">&#40;</span>int<span style="color: #66cc66;">&#41;</span><span style="color: #0000ff;">$_POST</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'val2'</span><span style="color: #66cc66;">&#93;</span>;
&nbsp;
<a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #0000ff;">$val1</span> + <span style="color: #0000ff;">$val2</span>;</pre>
<p>If you can see in open method we are making a post request on simple_ajax_server.php file. In that file we have simply written above content.</p>
<p>See this example <a title="Simple Ajax Demo" href="http://blogs.digitss.com/demo/simple_ajax.html" target="_blank">live in action</a>.</p>
<p><span style="text-decoration: underline;"><em><strong>Generalizing JavaScript</strong></em></span>: <a title="Plain_Ajax.js" href="http://blogs.digitss.com/demo/plain_ajax.js" target="_blank">plain_ajax.js</a></p>
<pre class="javascript"><span style="color: #009900; font-style: italic;">// Common function to initialize XML Http Request object</span>
<span style="color: #003366; font-weight: bold;">function</span> getHttpRequestObject<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #009900; font-style: italic;">// Define and initialize as false</span>
	<span style="color: #003366; font-weight: bold;">var</span> xmlHttpRequst = <span style="color: #003366; font-weight: bold;">false</span>;
&nbsp;
	<span style="color: #009900; font-style: italic;">// Mozilla/Safari/Non-IE</span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>window.<span style="color: #006600;">XMLHttpRequest</span><span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</span>
        xmlHttpRequst = <span style="color: #003366; font-weight: bold;">new</span> XMLHttpRequest<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #66cc66;">&#125;</span>
    <span style="color: #009900; font-style: italic;">// IE</span>
    <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>window.<span style="color: #006600;">ActiveXObject</span><span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</span>
        xmlHttpRequst = <span style="color: #003366; font-weight: bold;">new</span> ActiveXObject<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;Microsoft.XMLHTTP&quot;</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #66cc66;">&#125;</span>
	<span style="color: #000066; font-weight: bold;">return</span> xmlHttpRequst;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">// Does the AJAX call to URL specific with rest of the parameters</span>
<span style="color: #003366; font-weight: bold;">function</span> doAjax<span style="color: #66cc66;">&#40;</span>url, method, async, responseHandler, data<span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #009900; font-style: italic;">// Set the variables</span>
	url = url || <span style="color: #3366CC;">&quot;&quot;</span>;
	method = method || <span style="color: #3366CC;">&quot;GET&quot;</span>;
	async = async || <span style="color: #003366; font-weight: bold;">true</span>;
	data = data || <span style="color: #003366; font-weight: bold;">null</span>;
&nbsp;
	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span>url == <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #000066;">alert</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;URL can not be null/blank&quot;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span>;
	<span style="color: #66cc66;">&#125;</span>
	<span style="color: #003366; font-weight: bold;">var</span> xmlHttpRequst = getHttpRequestObject<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
	<span style="color: #009900; font-style: italic;">// If AJAX supported</span>
	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span>xmlHttpRequst != <span style="color: #003366; font-weight: bold;">false</span><span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #009900; font-style: italic;">// Open Http Request connection</span>
		<span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span>method == <span style="color: #3366CC;">&quot;GET&quot;</span><span style="color: #66cc66;">&#41;</span>
		<span style="color: #66cc66;">&#123;</span>
			url = url + <span style="color: #3366CC;">&quot;?&quot;</span> + data;
			data = <span style="color: #003366; font-weight: bold;">null</span>;
		<span style="color: #66cc66;">&#125;</span>
		xmlHttpRequst.<span style="color: #000066;">open</span><span style="color: #66cc66;">&#40;</span>method, url, async<span style="color: #66cc66;">&#41;</span>;
		<span style="color: #009900; font-style: italic;">// Set request header (optional if GET method is used)</span>
		<span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span>method == <span style="color: #3366CC;">&quot;POST&quot;</span><span style="color: #66cc66;">&#41;</span>
		<span style="color: #66cc66;">&#123;</span>
			xmlHttpRequst.<span style="color: #006600;">setRequestHeader</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'Content-Type'</span>, <span style="color: #3366CC;">'application/x-www-form-urlencoded'</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
		<span style="color: #009900; font-style: italic;">// Assign (or define) response-handler/callback when ReadyState is changed.</span>
		xmlHttpRequst.<span style="color: #006600;">onreadystatechange</span> = responseHandler;
		<span style="color: #009900; font-style: italic;">// Send data</span>
		xmlHttpRequst.<span style="color: #006600;">send</span><span style="color: #66cc66;">&#40;</span>data<span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
	<span style="color: #000066; font-weight: bold;">else</span>
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #000066;">alert</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;Please use browser with Ajax support.!&quot;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre>
<p><em># Same JavaScript can be generalized and written in following way</em>: (embed in html)</p>
<p><em># How to use?</em>: (include plain_ajax.js first and then embed following code;)</p>
<pre class="javascript"><span style="color: #003366; font-weight: bold;">var</span> displaySum = <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">readyState</span> == <span style="color: #CC0000;">4</span><span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</span>
		document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;sum&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">value</span> = <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">responseText</span>;
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> doSum<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">var</span> url = <span style="color: #3366CC;">&quot;simple_ajax_server.php&quot;</span>;
	<span style="color: #003366; font-weight: bold;">var</span> data = <span style="color: #3366CC;">&quot;val1=&quot;</span> + document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;val1&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">value</span> + <span style="color: #3366CC;">&quot;&amp;amp;val2=&quot;</span> + document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;val2&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">value</span>;
	<span style="color: #003366; font-weight: bold;">var</span> method = <span style="color: #3366CC;">'GET'</span>;
	<span style="color: #003366; font-weight: bold;">var</span> async = <span style="color: #003366; font-weight: bold;">true</span>;
	doAjax<span style="color: #66cc66;">&#40;</span>url, method, async, displaySum, data<span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre>
<p>Example can be <a title="Download Simple Ajax Tutorial source-code" href="http://blogs.digitss.com/demo/simple_ajax.zip" target="_blank">downloaded here</a> or find it in my <a title="Gist Repository - for this example tutorial code" href="https://gist.github.com/936328" target="_blank">gist repository</a>.</p>
<p>&nbsp;<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://blogs.digitss.com/technology/hacking-jquery-thickbox/" rel="bookmark" title="April 27, 2008">Hacking jQuery Thickbox..!</a></li>
<li><a href="http://blogs.digitss.com/javascript/calculate-datetime-difference-simple-javascript-code-snippet/" rel="bookmark" title="April 4, 2010">Calculate Date/Time difference &#8211; Simple Javascript code snippet</a></li>
<li><a href="http://blogs.digitss.com/php/truncate-last-n-lines-of-a-file-using-php/" rel="bookmark" title="April 23, 2011">Truncate last N lines of a file using PHP</a></li>
<li><a href="http://blogs.digitss.com/php/curl-php/posting-or-uploading-files-using-curl-with-php/" rel="bookmark" title="March 6, 2011">Posting or Uploading Files using cURL with PHP</a></li>
<li><a href="http://blogs.digitss.com/php/php-downloading-a-file-from-secure-website-https-using-curl/" rel="bookmark" title="October 25, 2008">PHP &#8211; Downloading a File from Secure website (https) using CURL</a></li>
</ul>
<p><!-- Similar Posts took 742.464 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.digitss.com/javascript/simple-plain-ajax-without-any-javascript-library/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery case-insensitive Contains Expression..!</title>
		<link>http://blogs.digitss.com/javascript/jquery-javascript/jquery-case-insensitive-contains-expression/</link>
		<comments>http://blogs.digitss.com/javascript/jquery-javascript/jquery-case-insensitive-contains-expression/#comments</comments>
		<pubDate>Wed, 20 Apr 2011 18:35:10 +0000</pubDate>
		<dc:creator>Dharmavirsinh Jhala</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://blogs.digitss.com/?p=595</guid>
		<description><![CDATA[Most of the time to search through DOM and filter text we need a jQuery Expression/filter which gives us case-insensitive result. I believe it's required to have it as a part of jQuery base-library but anyway writing your own is very simple.

I have gone through some of other implementation before writing this but here this version is complete copy of jQuery library's "contains" filter except it is case-insensitive.]]></description>
			<content:encoded><![CDATA[<p>Most of the time to search through DOM and filter text we need a <strong>jQuery Expression/filter</strong> which gives us <strong>case-insensitive</strong> result. I believe it's required to have it as a part of <strong>jQuery</strong> base-library but anyway writing your own is very simple.</p>
<p>I have gone through some of other implementation before writing this but here this version is complete copy of jQuery library's "<strong>contains</strong>" filter except it is <strong>case-insensitive</strong>.</p>
<p>In below code when it's using <strong>$(elem).text()</strong> it's calling <strong>Sizzle.getText</strong> internally which is Utility function for retreiving the text value of an array of DOM nodes.</p>
<pre class="javascript">$.<span style="color: #006600;">extend</span><span style="color: #66cc66;">&#40;</span>$.<span style="color: #006600;">expr</span><span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">&quot;:&quot;</span><span style="color: #66cc66;">&#93;</span>,
<span style="color: #66cc66;">&#123;</span>
    <span style="color: #3366CC;">&quot;contains-ci&quot;</span>: <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>elem, i, match, array<span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #66cc66;">&#40;</span>elem.<span style="color: #006600;">textContent</span> || elem.<span style="color: #006600;">innerText</span> || $<span style="color: #66cc66;">&#40;</span>elem<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">text</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> || <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">toLowerCase</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">indexOf</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>match<span style="color: #66cc66;">&#91;</span><span style="color: #CC0000;">3</span><span style="color: #66cc66;">&#93;</span> || <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">toLowerCase</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> &gt;= <span style="color: #CC0000;">0</span>;
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</pre>
<p>Here are some other nice <strong>jQuery Selectors</strong> and <strong>Expressions</strong>:<span id="more-595"></span></p>
<ul>
<li><a title="JQuery Plugin: Extra selectors for JQuery" href="http://www.softwareunity.com/jquery/JQueryMoreSelectors/" target="_blank">JQuery Plugin: Extra selectors for JQuery</a></li>
<li><a title="jQuery Custom [:] Expression Test" href="http://www.malsup.com/jquery/expr/" target="_blank">jQuery Custom [:] Expressions</a></li>
</ul>
<p>I thought let me use <a title="Gist is a simple way to share snippets and pastes with others. All gists are git repositories, so they are automatically versioned, forkable and usable as a git repository." href="https://gist.github.com" target="_blank">gist</a> to host this tiny piece of code, may be just to make it easy to share and live as long as possible..! <img src='http://blogs.digitss.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<script src="https://gist.github.com/932198.js"> </script><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://blogs.digitss.com/javascript/jquery-javascript/implementing-quick-table-search-using-jquery-filter/" rel="bookmark" title="August 13, 2011">Implementing Quick Table Search using jQuery filter</a></li>
<li><a href="http://blogs.digitss.com/javascript/jquery-javascript/jquery-1-4-released-jquery-ui-has-yet-to-achieve-compatibility-with-it/" rel="bookmark" title="January 24, 2010">jQuery 1.4 Released &#8211; jQuery UI has yet to achieve compatibility with it&#8230;</a></li>
<li><a href="http://blogs.digitss.com/programming/printing-data-table-vertically-why-and-how/" rel="bookmark" title="January 3, 2011">Printing data table vertically..! Why? and How?</a></li>
<li><a href="http://blogs.digitss.com/javascript/jquery-javascript/jquery-fancy-custom-radio-and-checkbox/" rel="bookmark" title="April 8, 2010">jQuery Fancy Custom Radio-button and Checkbox</a></li>
<li><a href="http://blogs.digitss.com/wordpress/wordpress-auto-login-for-friend-ally-websites/" rel="bookmark" title="February 2, 2010">WordPress Auto-Login for Friend/Ally Websites</a></li>
</ul>
<p><!-- Similar Posts took 4.242 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.digitss.com/javascript/jquery-javascript/jquery-case-insensitive-contains-expression/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery or non-jQuery Calendar Schedulers</title>
		<link>http://blogs.digitss.com/javascript/jquery-or-non-jquery-calendar-schedulers/</link>
		<comments>http://blogs.digitss.com/javascript/jquery-or-non-jquery-calendar-schedulers/#comments</comments>
		<pubDate>Sun, 10 Apr 2011 10:10:35 +0000</pubDate>
		<dc:creator>Dharmavirsinh Jhala</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Calendar]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Scheduler]]></category>

		<guid isPermaLink="false">http://blogs.digitss.com/?p=585</guid>
		<description><![CDATA[If you're looking for Google-like Calendar for your next web-application than, here is list of jQuery/ non-jQuery but Javascript based Calendar Schedulers which you can use in your web-application to provide scheduling and/or even calendars.]]></description>
			<content:encoded><![CDATA[<div id="attachment_586" class="wp-caption alignleft" style="width: 262px"><a href="http://blogs.digitss.com/wp-content/uploads/2011/04/Google-Calendar.png"><img class="size-full wp-image-586" title="Google Calendar" src="http://blogs.digitss.com/wp-content/uploads/2011/04/Google-Calendar.png" alt="Google Calendar" width="252" height="190" /></a><p class="wp-caption-text">Google Calendar</p></div>
<p>If you're looking for <strong>Google-like Calendar</strong> for your next web-application than, here is list of jQuery/ non-jQuery but Javascript based Calendar Schedulers which you can use in your web-application to provide <strong>scheduling</strong> and/or <strong>event calendars</strong>.</p>
<p><strong>1) </strong><span style="text-decoration: underline;"><strong>jQuery FullCalendar</strong></span>: <strong>FullCalendar</strong> is a <strong>jQuery plugin</strong> that provides a <em>full-sized</em>, <em>drag &amp; drop calendar</em> like the one below. It uses AJAX to fetch events on-the-fly for each month and is easily configured to use your own feed format (an extension is provided for <em>Google Calendar</em>). It is visually customizable and exposes hooks for user-triggered events (like clicking or dragging an event). It is open source and dual licensed under the MIT or GPL Version 2 licenses.</p>
<p>Just recently <strong>FullCalendar 1.5.1</strong> is released which is bundled with <strong>jQuery 1.5.2</strong>. It has all 3 <strong>Day</strong>, <strong>Week</strong> and <strong>Month</strong> view. You can see it's preview in screen-capture below:<span id="more-585"></span></p>
<div id="attachment_587" class="wp-caption alignleft" style="width: 401px"><a href="http://blogs.digitss.com/wp-content/uploads/2011/04/jQuery-FullCalendar.png"><img class="size-full wp-image-587" title="jQuery FullCalendar" src="http://blogs.digitss.com/wp-content/uploads/2011/04/jQuery-FullCalendar.png" alt="jQuery FullCalendar" width="391" height="315" /></a><p class="wp-caption-text">jQuery FullCalendar</p></div>
<div style="clear: both;">Download: <a title="Download jQuery FullCalendar" href="http://arshaw.com/fullcalendar/download/" target="_blank">http://arshaw.com/fullcalendar/download/</a>&nbsp;</p>
<p>jQuery plugin repository: <a title="jQuery FullCalendar at jQuery Plugin Repository" href="http://plugins.jquery.com/project/fullcalendar" target="_blank">http://plugins.jquery.com/project/fullcalendar</a></p>
<p>Demo: <a title="See live demo of jQuery FullCalendar" href="http://arshaw.com/fullcalendar/" target="_blank">http://arshaw.com/fullcalendar/</a></p>
</div>
<p><strong>2) <span style="text-decoration: underline;">jQuery Frontier Calendar</span></strong>: Is a full month calendar plugin that looks like Google Calendar. Supports Drag and Drop, tooltips, iCal Event import, Customizable style via css file, resizable and well documented.</p>
<div id="attachment_588" class="wp-caption alignleft" style="width: 452px"><a href="http://blogs.digitss.com/wp-content/uploads/2011/04/jQuery-Frontier-Calendar.png"><img class="size-full wp-image-588" title="jQuery Frontier Calendar" src="http://blogs.digitss.com/wp-content/uploads/2011/04/jQuery-Frontier-Calendar.png" alt="jQuery Frontier Calendar" width="442" height="278" /></a><p class="wp-caption-text">jQuery Frontier Calendar</p></div>
<div style="clear: both;">Negative point is it <strong>only supports Month view</strong>, so if you're looking for Day and Week view you will be disappointed else it has got good documentation.&nbsp;</p>
<p>Download: <a href="http://code.google.com/p/jquery-frontier-calendar/">http://code.google.com/p/jquery-frontier-calendar/</a></p>
<p>jQuery plugin repository: <a href="http://plugins.jquery.com/project/jqFrontierCal">http://plugins.jquery.com/project/jqFrontierCal</a></p>
<p>Demo: Interactive demo not available.</p>
</div>
<p><strong>3) j<span style="text-decoration: underline;">Query jMonthCalendar</span></strong>: jMonthCalendar is a full month calendar that supports events. You simply initialize the calendar with options and an events array and it can handle the rest. The plugin does have extension points that allow the developer to interact with the calendar when the display is about to change months, after the display has changed months and when the event bubbles are clicked on. jMonthCalendar now supports hover extension points, hover over an event and trigger an event like an alert(); By default the events would each have a URL supplied that would link to a details page.</p>
<p>Negative point again here is it comes with <strong>only Month view</strong> and since last 20 months project is silent.</p>
<p>Download: <a href="http://code.google.com/p/jmonthcalendar/downloads/list">http://code.google.com/p/jmonthcalendar/downloads/list</a></p>
<p>jQuery plugin repository: <a href="http://plugins.jquery.com/project/jMonthCalendar">http://plugins.jquery.com/project/jMonthCalendar</a></p>
<p>Demo: Interactive demo not available.</p>
<p><strong>4) <span style="text-decoration: underline;">jQuery Week Calendar</span></strong>: Excellent plugin if you're looking for just <strong>Week view</strong>, <strong>Work Day view</strong> and <strong>Day view</strong>. Good documentation and demonstration.</p>
<p>The jquery-week-calendar plugin provides a simple and flexible way of including a weekly calendar in your application. It is built on top of jquery and jquery ui and is inspired by other online weekly calendars such as google calendar. If you require a monthly calendar view, I highly recommend checking out the FullCalendar plugin by Adam Shaw.</p>
<ul>
<li>Display of calendar events within a weekly grid</li>
<li>Calendar events can be supplied as an array, url or function returning json</li>
<li>Calendar events can be dragged, dropped and resized</li>
<li>Lots of callbacks for customizing the way events are rendered plus callbacks for drag, drop, resize, mouseover, click etc</li>
<li>Automatically scrolls to current time</li>
<li>Extend the core calendar event data structure with your own data</li>
<li>Highly configurable, enabling variable timeslots, readonly calendars, display of partial days, custom date formatting, direct manipulation of individual events for create, update, delete of events and much more.</li>
</ul>
<div id="attachment_589" class="wp-caption alignleft" style="width: 430px"><a href="http://blogs.digitss.com/wp-content/uploads/2011/04/jQuery-week-calendar.png"><img class="size-full wp-image-589" title="jQuery week calendar" src="http://blogs.digitss.com/wp-content/uploads/2011/04/jQuery-week-calendar.png" alt="jQuery week calendar" width="420" height="296" /></a><p class="wp-caption-text">jQuery week calendar</p></div>
<div style="clear: both;">Now it's not being maintained by original author and recommended repository on github is: <a href="https://github.com/themouette/jquery-week-calendar">https://github.com/themouette/jquery-week-calendar</a></div>
<p><strong>5) <span style="text-decoration: underline;">jQuery wdCalendar</span></strong>: It's a jQuery plugin supporting both <strong>Day</strong>, <strong>Week</strong> and <strong>Month view</strong>. Not well documented or decent api for extending but decent tool if you want to just get it plug-in to your application. But be sure that if you want to make some modification you gotta understand the code and hack into that without much helpful documentation. If you have to many overlapping events it will not arrange them all properly so one has to tweak the code as per the need because it's not being maintained well so far.</p>
<div id="attachment_590" class="wp-caption alignleft" style="width: 389px"><a href="http://blogs.digitss.com/wp-content/uploads/2011/04/jQuery-wdCalendar.png"><img class="size-full wp-image-590" title="jQuery wdCalendar" src="http://blogs.digitss.com/wp-content/uploads/2011/04/jQuery-wdCalendar.png" alt="jQuery wdCalendar" width="379" height="247" /></a><p class="wp-caption-text">jQuery wdCalendar</p></div>
<p><strong>6)</strong> <span style="text-decoration: underline;"><strong>dhtmlxScheduler</strong></span>: Unlike rest of above plugins it's not jQuery based and another point is it's not free for commercial projects so unless you want to use it for your open-source project you gotta buy license for this.</p>
<p>Well documented and API. Comes with <strong>Day, Week, Month, Year and Agenda view</strong>. There is <strong>multiple resource view</strong> as well. By far the best one which highly customizable but licensing (paid) is required if you want to commercialize it.</p>
<p><strong>dhtmlxScheduler</strong> is a web-based JavaScript events calendar that provides a rich and intuitive scheduling solution similar to Microsoft Outlook Calendar, Apple's iCal, or Google Calendar. The events can be displayed in Day, Week, Month, Year, or Agenda views. Advanced drag-and-drop functionality allows users to change date and time of an event by easily moving or resizing event boxes. Very lightweight (about 20Kb gzipped) and fast-performing, the calendar uses Ajax to smoothly update and display the events schedule.</p>
<div id="attachment_592" class="wp-caption alignleft" style="width: 328px"><a href="http://blogs.digitss.com/wp-content/uploads/2011/04/dhtmlxScheduler.png"><img class="size-full wp-image-592" title="dhtmlxScheduler - Ajax Events Calendar/Scheduler" src="http://blogs.digitss.com/wp-content/uploads/2011/04/dhtmlxScheduler.png" alt="dhtmlxScheduler - Ajax Events Calendar/Scheduler" width="318" height="240" /></a><p class="wp-caption-text">dhtmlxScheduler - Ajax Events Calendar/Scheduler</p></div>
<div style="clear: both;">Home: <a href="http://dhtmlx.com/docs/products/dhtmlxScheduler/index.shtml">http://dhtmlx.com/docs/products/dhtmlxScheduler/index.shtml</a></div>
<p>Other than this list if you can try <a title="Create astonishing iCal-like calendars with jQuery" href="http://www.stefanoverna.com/log/create-astonishing-ical-like-calendars-with-jquery" target="_blank">Create astonishing iCal-like calendars with jQuery</a> tutorial to do it yourself and if you can write Java you can always pick up the best of all <strong>Google's <a title="Google Web Toolkit - Cal component" href="http://code.google.com/p/gwt-cal/" target="_blank">gwt-cal</a></strong>.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://blogs.digitss.com/javascript/jquery-javascript/jquery-fancy-custom-radio-and-checkbox/" rel="bookmark" title="April 8, 2010">jQuery Fancy Custom Radio-button and Checkbox</a></li>
<li><a href="http://blogs.digitss.com/javascript/jquery-plugin-radio-button-with-checkbox-behavior-updated/" rel="bookmark" title="March 6, 2008">jQuery Plugin &#8211; Radio button with Checkbox Behavior &#8211; Updated</a></li>
<li><a href="http://blogs.digitss.com/javascript/jquery-javascript/jquery-1-4-released-jquery-ui-has-yet-to-achieve-compatibility-with-it/" rel="bookmark" title="January 24, 2010">jQuery 1.4 Released &#8211; jQuery UI has yet to achieve compatibility with it&#8230;</a></li>
<li><a href="http://blogs.digitss.com/javascript/jquery-javascript/jquery-magnet-multi-select-list-dg-magnet-combo/" rel="bookmark" title="January 25, 2011">jQuery Magnet Multi-Select List &#8211; DG Magnet Combo</a></li>
<li><a href="http://blogs.digitss.com/javascript/radio-button-with-checkbox-behavior/" rel="bookmark" title="February 25, 2008">Radio-button with Checkbox behavior</a></li>
</ul>
<p><!-- Similar Posts took 79.882 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.digitss.com/javascript/jquery-or-non-jquery-calendar-schedulers/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>jQuery 1.5.2 and jQuery mobile alpha 4 released</title>
		<link>http://blogs.digitss.com/javascript/jquery-javascript/jquery-1-5-2-and-jquery-mobile-alpha-4-released/</link>
		<comments>http://blogs.digitss.com/javascript/jquery-javascript/jquery-1-5-2-and-jquery-mobile-alpha-4-released/#comments</comments>
		<pubDate>Sun, 03 Apr 2011 13:07:14 +0000</pubDate>
		<dc:creator>Dharmavirsinh Jhala</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Web Developer]]></category>

		<guid isPermaLink="false">http://blogs.digitss.com/?p=577</guid>
		<description><![CDATA[jQuery 1.5.2 is released (on April 2nd) as a bug-fix release of jQuery version 1.5.x, fixing about 18+ issues/bugs reported. Along with that couple of days back on 31st March 2011 jQuery Mobile's alpha-4 version has been released.

jQuery mobile project is making good and steady progress though from their road-map published earlier I was expecting production ready release of jQuery mobile in Jan 2011. As I have invested into jQuery mobile as a technology and tool for one of my project and it's obvious that I can not release that when framework itself is not mature for production.]]></description>
			<content:encoded><![CDATA[<div id="attachment_578" class="wp-caption alignleft" style="width: 132px"><a href="http://blogs.digitss.com/wp-content/uploads/2011/04/jQuery-mobile.png"><img class="size-full wp-image-578" title="jQuery mobile framework" src="http://blogs.digitss.com/wp-content/uploads/2011/04/jQuery-mobile.png" alt="jQuery mobile framework" width="122" height="239" /></a><p class="wp-caption-text">jQuery mobile framework</p></div>
<p><strong>jQuery</strong> 1.5.2 is released (on April 2nd) as a bug-fix release of <strong>jQuery</strong> version 1.5.x, fixing about 18+ issues/bugs reported. Along with that couple of days back on 31st March 2011 <strong>jQuery Mobile</strong>'s alpha-4 version has been released.</p>
<p><strong>jQuery mobile</strong> project is making good and steady progress though from their road-map published earlier I was expecting production ready release of <strong>jQuery mobile</strong> in Jan 2011. As I have invested into <strong>jQuery mobile</strong> as a technology and tool for one of my project and it's obvious that I can not release that when framework itself is not mature for production.</p>
<p>I am highly impressed with <strong>jQuery mobile framework</strong> project and I have chosen <strong>jQuery mobile</strong> over <a href="http://www.sencha.com/products/touch/"><strong>Sencha Touch</strong></a> after researching over it for sometime. One of the reason behind choosing <strong>jQuery mobile</strong> was number of devices they support. Look at the <a title="jQuery mobile - device support grid" href="http://jquerymobile.com/gbs/" target="_blank">device support grid here</a>.<span id="more-577"></span></p>
<p>I will be writing more on <em><strong>ExtJS Mobile (Sencha Touch) vs jQuery mobile</strong></em> in coming weeks, hopefully which will make developers take a smart decision depending upon the features they are looking for.</p>
<p>I would appreciate if you can share your experiences on above topic if you are about to take or have already taken decision in favor of one of them.</p>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://blogs.digitss.com/javascript/jquery-javascript/jquery-1-4-released-jquery-ui-has-yet-to-achieve-compatibility-with-it/" rel="bookmark" title="January 24, 2010">jQuery 1.4 Released &#8211; jQuery UI has yet to achieve compatibility with it&#8230;</a></li>
<li><a href="http://blogs.digitss.com/javascript/jquery-1-2-5-released/" rel="bookmark" title="May 21, 2008">jQuery 1.2.5 released</a></li>
<li><a href="http://blogs.digitss.com/php/when-php-frameworks-are-going-to-stop-php-4-support/" rel="bookmark" title="August 15, 2009">When PHP Frameworks are going to stop PHP 4 support?</a></li>
<li><a href="http://blogs.digitss.com/javascript/jquery-1-3-2-is-out/" rel="bookmark" title="February 22, 2009">jQuery 1.3.2 is out</a></li>
<li><a href="http://blogs.digitss.com/php/symfony-11-rc1-released/" rel="bookmark" title="May 10, 2008">Symfony 1.1 RC1 Released</a></li>
</ul>
<p><!-- Similar Posts took 526.832 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.digitss.com/javascript/jquery-javascript/jquery-1-5-2-and-jquery-mobile-alpha-4-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Magnet Multi-Select List &#8211; DG Magnet Combo</title>
		<link>http://blogs.digitss.com/javascript/jquery-javascript/jquery-magnet-multi-select-list-dg-magnet-combo/</link>
		<comments>http://blogs.digitss.com/javascript/jquery-javascript/jquery-magnet-multi-select-list-dg-magnet-combo/#comments</comments>
		<pubDate>Mon, 24 Jan 2011 19:05:23 +0000</pubDate>
		<dc:creator>Dharmavirsinh Jhala</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blogs.digitss.com/?p=521</guid>
		<description><![CDATA[No Control+Click combo or list, just with your simple HTML and little jQuery magic (or magnet)
dg-magnet-combo is smart combo won't require you to provide 2 list/combo-box in user interface to have them choose options easily, Users don't need to keep CTL pressed while they select another option of the select-control. If you're wondering how just try this sample. ]]></description>
			<content:encoded><![CDATA[<div id="attachment_520" class="wp-caption alignleft" style="width: 237px"><a href="http://blogs.digitss.com/wp-content/uploads/2011/01/dg-magnet-combo.png"><img class="size-full wp-image-520" title="jQuery dg-magnet-combo (no CTL+Click Select/List with just one line)" src="http://blogs.digitss.com/wp-content/uploads/2011/01/dg-magnet-combo.png" alt="jQuery dg-magnet-combo (no CTL+Click Select/List with just one line)" width="227" height="113" /></a><p class="wp-caption-text">jQuery dg-magnet-combo (no CTL+Click Select)</p></div>
<p>Basically I wanted to write this plugin since long long time but could not get a while to hold and push my thoughts as a code to form this plugin. As the name suggests (which seems kind of difficult to understand the real purpose of this plugin) it does not deselect existing option when one selects another option in multi-selection list/combo-box.  How does this sound? Yes, w/o having your <em>control</em> key pressed. Basically I have been found of changing the default behavior of the html controls and with this new jQuery Magnet Multi-select List plugin, I will continue this trend. If you have already understood the meaning and purpose of this plugin you can move to plugin-usage without reading more boarding story about the plugin.</p>
<p>One would say that it's very easy you just have to hold the CTL key while selecting another option in combo-box but it's going to be very irritating when you have hundreds of options in your list and you have to select multiple out of them one of them is on top and the other one at the end of list, which makes it keeping that CTL key difficult and if one misses out CTL hold for a while and clicks he's gone. He has to start from all over again. To get rid of this problem many web-developers implement their lists/combo-box in ways where one has to click &gt; select and move options from left-to-right and those on the right-side are the ones which are being selected by users. But this plugin will make your life as a developer and users life much easier by not dropping down the selected option each time they select another. Basically this will help many users who are less-friendly with computers and web in general and this plugin development with jQuery came in mind just out of need for such a plugin who can do so and as per my knowledge so far we don't have such plugin available for any javascript library.</p>
<p>Learning from the past experiences, this plugin will support accessibility from the beginning. Yes, there is a keyboard support too.</p>
<p>To use <strong>DG Magnet Combo</strong> plugin just add following code in your javascript:</p>
<pre class="javascript">$<span style="color: #66cc66;">&#40;</span>document<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">ready</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
	$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;#my_list&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">dgMagnetCombo</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</pre>
<p><a title="jQuery DG-Magnet-Combo" href="http://digitss.com/jquery/dg-magnet-combo/dg-magnet-combo.html" target="_blank">See live demo here</a> or goto <a title="DG-Magnet-Combo github repository" href="https://github.com/dharmavir/DG-Magnet-Combo" target="_blank">github repository</a> to download or fork.</p>
<p><strong>Update:</strong> Plugin updated to 1.1 with following changes:<span id="more-521"></span></p>
<p>- Used inbuilt javascript/jQuery functions instead of self-made.<br />
- Made it work with CTL key pressed. So now it works normal when someone uses it with CTL key pressed and then takes back (in hybrid mode)</p>
<p><strong>Todo:</strong> Need to verify and test SHIFT key compatibility to make it work in natural mode when used with SHIFT key.</p>
<p><strong>Bugs:</strong> Please let me know if you encounter any problem/bug while using this plugin. Either post comment on this blog or create an issue on <a title="DG-Magnet-Combo on github repository" href="https://github.com/dharmavir/DG-Magnet-Combo/issues" target="_blank">github repository</a>.</p>
<p>PS: I should have done a Google search properly before writing this one, I saw <a href="http://growingtech.blogspot.com/2010/11/html-multi-select-maintain-multiple.html" target="_blank">Anup Gupta</a> has made his efforts in this direction and this plugin has some inspiration from his code for v1.1. But additionally this plugin has CTL key support which I could not see available somewhere else.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://blogs.digitss.com/javascript/jquery-tablesorter-plugin-a-friend-in-need/" rel="bookmark" title="February 28, 2008">jQuery tablesorter plugin &#8211; a friend in need&#8230;</a></li>
<li><a href="http://blogs.digitss.com/javascript/jquery-javascript/jquery-1-4-released-jquery-ui-has-yet-to-achieve-compatibility-with-it/" rel="bookmark" title="January 24, 2010">jQuery 1.4 Released &#8211; jQuery UI has yet to achieve compatibility with it&#8230;</a></li>
<li><a href="http://blogs.digitss.com/javascript/radio-button-with-checkbox-behavior/" rel="bookmark" title="February 25, 2008">Radio-button with Checkbox behavior</a></li>
<li><a href="http://blogs.digitss.com/javascript/jquery-javascript/jquery-ui-171-is-released/" rel="bookmark" title="April 12, 2009">jQuery UI &#8211; 1.7.1 is released..</a></li>
<li><a href="http://blogs.digitss.com/javascript/jquery-1-2-5-released/" rel="bookmark" title="May 21, 2008">jQuery 1.2.5 released</a></li>
</ul>
<p><!-- Similar Posts took 323.014 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.digitss.com/javascript/jquery-javascript/jquery-magnet-multi-select-list-dg-magnet-combo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>jQuery Fancy Custom Radio-button and Checkbox</title>
		<link>http://blogs.digitss.com/javascript/jquery-javascript/jquery-fancy-custom-radio-and-checkbox/</link>
		<comments>http://blogs.digitss.com/javascript/jquery-javascript/jquery-fancy-custom-radio-and-checkbox/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 19:19:58 +0000</pubDate>
		<dc:creator>Dharmavirsinh Jhala</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Tools / Plugins / Extenstion]]></category>
		<category><![CDATA[Forms]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Plugins]]></category>

		<guid isPermaLink="false">http://blogs.digitss.com/?p=363</guid>
		<description><![CDATA[jQuery plugin which makes Radio-button and checkbox elements fancy in your html forms.]]></description>
			<content:encoded><![CDATA[<div id="attachment_368" class="wp-caption alignleft" style="width: 50px"><a href="http://blogs.digitss.com/wp-content/uploads/2010/04/fancy-radio-checkbox.png"><img class="size-full wp-image-368" title="Fancy Radio-button and Checkbox" src="http://blogs.digitss.com/wp-content/uploads/2010/04/fancy-radio-checkbox.png" alt="Fancy Radio-button and Checkbox" width="40" height="100" /></a><p class="wp-caption-text">Fancy Radio/ Checkbox</p></div>
<p>I have written a <strong>jQuery Plugin</strong> for <strong>Fancy Custom Checkbox</strong> and <strong>Radio-buttons</strong>. To make form elements visually more expressive. I required this for one of my project and later on I have rewritten it completely to make it more generic and easier for <strong>jQuery Lovers</strong>. I am great fan of jQuery and I am inspired by <a href="http://ryanfait.com/resources/custom-checkboxes-and-radio-buttons/" target="_blank">http://ryanfait.com/resources/custom-checkboxes-and-radio-buttons</a>/ to write this plugin.</p>
<p>It's fairly easy to use just like any other <strong>jQuery plugin</strong> you just have to write couple of lines of <strong>javascript </strong>code and add some <strong>CSS </strong>to your <strong>html</strong>.</p>
<p><strong>Javascript</strong> You need:</p>
<pre class="javascript">$<span style="color: #66cc66;">&#40;</span>document<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">ready</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
	$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;.radio&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">dgStyle</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;.checkbox&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">dgStyle</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</pre>
<p><span id="more-363"></span><br />
<strong>CSS</strong> You need:</p>
<pre class="css"><span style="color: #6666ff;">.radio</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">height</span>: <span style="color: #933;">25px</span>;
	<span style="color: #000000; font-weight: bold;">width</span>: <span style="color: #933;">19px</span>;
	clear<span style="color: #3333ff;">:left</span>;
	float<span style="color: #3333ff;">:left</span>;
	<span style="color: #000000; font-weight: bold;">margin</span>: <span style="color: #933;">0</span> <span style="color: #933;">0</span> <span style="color: #933;">3px</span>;
	<span style="color: #000000; font-weight: bold;">padding</span>: <span style="color: #933;">0</span> <span style="color: #933;">0</span> <span style="color: #933;">0</span> <span style="color: #933;">26px</span>;
	<span style="color: #000000; font-weight: bold;">background</span>: <span style="color: #993333;">url</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;radio.png&quot;</span><span style="color: #66cc66;">&#41;</span>;
	background-repeat<span style="color: #3333ff;">:no-repeat</span>;
	<span style="color: #000000; font-weight: bold;">cursor</span>: <span style="color: #993333;">default</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #6666ff;">.checkbox</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">height</span>: <span style="color: #933;">25px</span>;
	<span style="color: #000000; font-weight: bold;">width</span>: <span style="color: #933;">19px</span>;
	clear<span style="color: #3333ff;">:left</span>;
	float<span style="color: #3333ff;">:left</span>;
	<span style="color: #000000; font-weight: bold;">margin</span>: <span style="color: #933;">0</span> <span style="color: #933;">0</span> <span style="color: #933;">3px</span>;
	<span style="color: #000000; font-weight: bold;">padding</span>: <span style="color: #933;">0</span> <span style="color: #933;">0</span> <span style="color: #933;">0</span> <span style="color: #933;">26px</span>;
	<span style="color: #000000; font-weight: bold;">background</span>: <span style="color: #993333;">url</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;checkbox.gif&quot;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333;">no-repeat</span>;
	<span style="color: #000000; font-weight: bold;">cursor</span>: <span style="color: #993333;">default</span>;
	text-align<span style="color: #3333ff;">:left</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #6666ff;">.checkbox</span> input,<span style="color: #6666ff;">.radio</span> input <span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">none</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #6666ff;">.checkbox</span> input<span style="color: #6666ff;">.show</span>,<span style="color: #6666ff;">.radio</span> input<span style="color: #6666ff;">.show</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">inline</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #6666ff;">.selected</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span>: <span style="color: #933;">0</span> -<span style="color: #933;">52px</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #6666ff;">.block</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span>: <span style="color: #933;"><span style="color: #933;">50</span>%</span>;
	<span style="color: #000000; font-weight: bold;">float</span>: <span style="color: #000000; font-weight: bold;">left</span>;
<span style="color: #66cc66;">&#125;</span>
label <span style="color: #66cc66;">&#123;</span>
	padding-left<span style="color: #3333ff;">:<span style="color: #933;">10px</span></span>;
	float<span style="color: #3333ff;">:left</span>;
	text-align<span style="color: #3333ff;">:left</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<p>Here, <em><strong>CSS class</strong></em> which we need to give is not fixed and it can be changed in <strong>CSS</strong> code and <strong>Javascript</strong> as well. So in above example it is "radio" and "checkbox", which could be anything you want. The only thing which needs to be taken care of is it has to be consistent in all <strong>CSS</strong>, <strong>Javascript</strong> and <strong>HTML</strong> we generate.</p>
<p>See <a title="jQuery Fancy Custom Radio-button and Checkbox for Form Live in Action" href="http://www.digitss.com/jquery/custom-radio-checkbox/fancy_radio_button_and_checkbox.html" target="_blank">live demo in action</a> or just <a title="Download jQuery fancy custom radio/checkbox" href="http://www.digitss.com/jquery/custom-radio-checkbox.zip" target="_blank">download a zip</a> file consisting sample image, js and html code to play with.</p>
<p>Please comment your experience or any enhancement/feature you add to it or wish to have or any bug encountered while using it.</p>
<p><span style="color: #ff0000;">Love </span>to hear back from You..! <img src='http://blogs.digitss.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://blogs.digitss.com/javascript/radio-button-with-checkbox-behavior/" rel="bookmark" title="February 25, 2008">Radio-button with Checkbox behavior</a></li>
<li><a href="http://blogs.digitss.com/javascript/jquery-javascript/implementing-quick-table-search-using-jquery-filter/" rel="bookmark" title="August 13, 2011">Implementing Quick Table Search using jQuery filter</a></li>
<li><a href="http://blogs.digitss.com/javascript/jquery-plugin-radio-button-with-checkbox-behavior-updated/" rel="bookmark" title="March 6, 2008">jQuery Plugin &#8211; Radio button with Checkbox Behavior &#8211; Updated</a></li>
<li><a href="http://blogs.digitss.com/javascript/jquery-tablesorter-plugin-a-friend-in-need/" rel="bookmark" title="February 28, 2008">jQuery tablesorter plugin &#8211; a friend in need&#8230;</a></li>
<li><a href="http://blogs.digitss.com/technology/hacking-jquery-thickbox/" rel="bookmark" title="April 27, 2008">Hacking jQuery Thickbox..!</a></li>
</ul>
<p><!-- Similar Posts took 50.028 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.digitss.com/javascript/jquery-javascript/jquery-fancy-custom-radio-and-checkbox/feed/</wfw:commentRss>
		<slash:comments>38</slash:comments>
		</item>
		<item>
		<title>Calculate Date/Time difference &#8211; Simple Javascript code snippet</title>
		<link>http://blogs.digitss.com/javascript/calculate-datetime-difference-simple-javascript-code-snippet/</link>
		<comments>http://blogs.digitss.com/javascript/calculate-datetime-difference-simple-javascript-code-snippet/#comments</comments>
		<pubDate>Sun, 04 Apr 2010 05:47:11 +0000</pubDate>
		<dc:creator>Dharmavirsinh Jhala</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://blogs.digitss.com/?p=364</guid>
		<description><![CDATA[It's very often we come across requirement when we need to calculate time difference between two dates in Javascript. Here is a simple Javascript function which can do it in quick and dirty way :)]]></description>
			<content:encoded><![CDATA[<p>It's very often we come across requirement when we need to <strong>calculate time difference between two dates in Javascript</strong>. Here is a simple Javascript function which can do it in quick and dirty way <img src='http://blogs.digitss.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Dirty because I would have to say because I would have made it little more generalized by provide options and formats which convert string to date automatically..!</p>
<p>Anyway for that matter I would rather suggest using <a title="php.js library" href="http://phpjs.org/functions/index" target="_blank"><strong>php.js</strong></a> which is interesting and helpful library which let's us use lot of <em><strong>PHP functions in Javascript</strong></em>.. It includes hundreds of useful and handy functions which we are used to while we develop PHP Applications.</p>
<p>This simple functions takes only 2 arguments as <strong>Javascript Date objects</strong> and in return provides an object with <em>days</em>, <em>hours</em>, <em>minutes</em> and <em>seconds</em> as the property in difference between these 2 date provided as parameter to function.</p>
<p>Here is the code for simple Date-time difference calculation:<br />
<span id="more-364"></span></p>
<pre class="javascript"><span style="color: #009900; font-style: italic;">// Simple function to calculate time difference between 2 Javascript date objects</span>
<span style="color: #003366; font-weight: bold;">function</span> get_time_difference<span style="color: #66cc66;">&#40;</span>earlierDate,laterDate<span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
       <span style="color: #003366; font-weight: bold;">var</span> nTotalDiff = laterDate.<span style="color: #006600;">getTime</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> - earlierDate.<span style="color: #006600;">getTime</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
       <span style="color: #003366; font-weight: bold;">var</span> oDiff = <span style="color: #003366; font-weight: bold;">new</span> Object<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
       oDiff.<span style="color: #006600;">days</span> = Math.<span style="color: #006600;">floor</span><span style="color: #66cc66;">&#40;</span>nTotalDiff<span style="color: #0066FF;">/<span style="color: #CC0000;">1000</span>/<span style="color: #CC0000;">60</span>/<span style="color: #CC0000;">60</span>/</span><span style="color: #CC0000;">24</span><span style="color: #66cc66;">&#41;</span>;
       nTotalDiff -= oDiff.<span style="color: #006600;">days*</span><span style="color: #CC0000;">1000</span>*<span style="color: #CC0000;">60</span>*<span style="color: #CC0000;">60</span>*<span style="color: #CC0000;">24</span>;
&nbsp;
       oDiff.<span style="color: #006600;">hours</span> = Math.<span style="color: #006600;">floor</span><span style="color: #66cc66;">&#40;</span>nTotalDiff<span style="color: #0066FF;">/<span style="color: #CC0000;">1000</span>/<span style="color: #CC0000;">60</span>/</span><span style="color: #CC0000;">60</span><span style="color: #66cc66;">&#41;</span>;
       nTotalDiff -= oDiff.<span style="color: #006600;">hours*</span><span style="color: #CC0000;">1000</span>*<span style="color: #CC0000;">60</span>*<span style="color: #CC0000;">60</span>;
&nbsp;
       oDiff.<span style="color: #006600;">minutes</span> = Math.<span style="color: #006600;">floor</span><span style="color: #66cc66;">&#40;</span>nTotalDiff<span style="color: #0066FF;">/<span style="color: #CC0000;">1000</span>/</span><span style="color: #CC0000;">60</span><span style="color: #66cc66;">&#41;</span>;
       nTotalDiff -= oDiff.<span style="color: #006600;">minutes*</span><span style="color: #CC0000;">1000</span>*<span style="color: #CC0000;">60</span>;
&nbsp;
       oDiff.<span style="color: #006600;">seconds</span> = Math.<span style="color: #006600;">floor</span><span style="color: #66cc66;">&#40;</span>nTotalDiff/<span style="color: #CC0000;">1000</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
       <span style="color: #000066; font-weight: bold;">return</span> oDiff;
&nbsp;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #009900; font-style: italic;">// Function Usage</span>
<span style="color: #003366; font-weight: bold;">function</span> use_time_difference<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	dateWhenIndiaWonFirstCricketWorldCup = <span style="color: #003366; font-weight: bold;">new</span> Date<span style="color: #66cc66;">&#40;</span><span style="color: #CC0000;">1983</span>, <span style="color: #CC0000;">6</span>, <span style="color: #CC0000;">25</span>, <span style="color: #CC0000;">5</span>, <span style="color: #CC0000;">0</span>, <span style="color: #CC0000;">0</span><span style="color: #66cc66;">&#41;</span>;
	dateCurrent = <span style="color: #003366; font-weight: bold;">new</span> Date<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	oDiff = get_time_difference<span style="color: #66cc66;">&#40;</span>dateWhenIndiaWonFirstCricketWorldCup, dateCurrent<span style="color: #66cc66;">&#41;</span>;
	<span style="color: #000066;">alert</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;It has been &quot;</span> + oDiff.<span style="color: #006600;">days</span> + <span style="color: #3366CC;">&quot; days since India won it's first cricket worldcup&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
use_time_difference<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;</pre>
<p><a title="Demonstration of Date-Time difference calculation" href="http://www.digitss.com/code_snippets/javascript_time_calculation.html" target="_blank">Go see live demonstration or download and view source code</a>.</p>
<p>I hope it would help some Javascript beginners.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://blogs.digitss.com/javascript/jquery-javascript/implementing-quick-table-search-using-jquery-filter/" rel="bookmark" title="August 13, 2011">Implementing Quick Table Search using jQuery filter</a></li>
<li><a href="http://blogs.digitss.com/javascript/jquery-javascript/jquery-case-insensitive-contains-expression/" rel="bookmark" title="April 20, 2011">jQuery case-insensitive Contains Expression..!</a></li>
<li><a href="http://blogs.digitss.com/javascript/simple-plain-ajax-without-any-javascript-library/" rel="bookmark" title="April 22, 2011">Simple / Plain Ajax &#8211; without any JavaScript library</a></li>
<li><a href="http://blogs.digitss.com/programming/printing-data-table-vertically-why-and-how/" rel="bookmark" title="January 3, 2011">Printing data table vertically..! Why? and How?</a></li>
<li><a href="http://blogs.digitss.com/technology/hacking-jquery-thickbox/" rel="bookmark" title="April 27, 2008">Hacking jQuery Thickbox..!</a></li>
</ul>
<p><!-- Similar Posts took 65.343 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.digitss.com/javascript/calculate-datetime-difference-simple-javascript-code-snippet/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>jQuery 1.4 Released &#8211; jQuery UI has yet to achieve compatibility with it&#8230;</title>
		<link>http://blogs.digitss.com/javascript/jquery-javascript/jquery-1-4-released-jquery-ui-has-yet-to-achieve-compatibility-with-it/</link>
		<comments>http://blogs.digitss.com/javascript/jquery-javascript/jquery-1-4-released-jquery-ui-has-yet-to-achieve-compatibility-with-it/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 06:07:34 +0000</pubDate>
		<dc:creator>Dharmavirsinh Jhala</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://blogs.digitss.com/?p=341</guid>
		<description><![CDATA[Last week jQuery 1.4 is released with a new website for the version. Lot of code has been rewritten to improve code and reduce function calls. I have been using jQuery since more than 2 years now and it is always good to upgrade to newer version of jQuery which brings more function to help [...]]]></description>
			<content:encoded><![CDATA[<p>Last week <strong>jQuery 1.4</strong> is released with a <a title="jQuery 1.4 Home" href="http://jquery14.com" target="_blank">new website for the version</a>. Lot of code has been rewritten to improve code and reduce function calls. I have been using jQuery since more than 2 years now and it is always good to upgrade to newer version of jQuery which brings more function to help us more <strong>speed</strong> and <strong>performance</strong>. There are more than dozens of new additions for developers and it will just help all of us to do things in better way with jQuery now..!</p>
<h3>jQuery and jQuery-UI Compatibility:</h3>
<p>The fact is <strong>jQuery and </strong><strong>jQueryUI are not compatible, YES they are not</strong>. I tried to upgrade my application with <strong>jQuery1.4</strong> but <strong>UI components</strong> are failed to work. I was using <strong>jQueryUI 1.7.2</strong>, later on I digg-in on the web to see how soon <strong>UI</strong> will support <strong>jQuery1.4</strong> but seems like <strong>1.7.x </strong>won't do that probably <strong>1.8.x</strong> would.  So I tried looking at what is cooking with <strong>jQueryUI 1.8</strong> but when I downloaded <strong>alpha</strong> release of <strong>UI1.8.a1</strong> it had<strong> jQuery1.3.2</strong> powering it...!<span id="more-341"></span></p>
<p>So I am just positive that before <strong>jQuery UI 1.8</strong> will be released for production they would probably add support or make it compatible with <strong>jQuery 1.4</strong>.</p>
<h3>Help/Reference:</h3>
<div id="attachment_342" class="wp-caption alignleft" style="width: 510px"><a href="http://blogs.digitss.com/wp-content/uploads/2010/01/function_calls_for_popular_jquery_methods.jpg"><img class="size-full wp-image-342" title="Function calls for Popular jQuery methods" src="http://blogs.digitss.com/wp-content/uploads/2010/01/function_calls_for_popular_jquery_methods.jpg" alt="Function calls for Popular jQuery methods" width="500" height="375" /></a><p class="wp-caption-text">Function calls for Popular jQuery methods</p></div>
<p>See how dramatically the function calls are reduced in <strong>1.4</strong> compared to <strong>1.3.2</strong>..! It's just indication that how hard-work <strong>John Resig and </strong><strong>Team</strong> would have put in.</p>
<p>To learn jQuery 1.4 and more about it's feature visit official website <a title="jQuery 1.4 14 days of jQuery" href="http://jquery14.com/day-01/jquery-14" target="_blank">http://jquery14.com/</a> or take a look at this post on <a title="The 15 New Features you Must Know" href="http://net.tutsplus.com/tutorials/javascript-ajax/jquery-1-4-released-the-15-new-features-you-must-know/" target="_blank">net-tuts website to checkout 15 must-know features</a> of <strong>jQuery 1.4</strong>.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://blogs.digitss.com/javascript/jquery-javascript/jquery-1-5-2-and-jquery-mobile-alpha-4-released/" rel="bookmark" title="April 3, 2011">jQuery 1.5.2 and jQuery mobile alpha 4 released</a></li>
<li><a href="http://blogs.digitss.com/javascript/jquery-javascript/jquery-case-insensitive-contains-expression/" rel="bookmark" title="April 20, 2011">jQuery case-insensitive Contains Expression..!</a></li>
<li><a href="http://blogs.digitss.com/javascript/jquery-javascript/implementing-quick-table-search-using-jquery-filter/" rel="bookmark" title="August 13, 2011">Implementing Quick Table Search using jQuery filter</a></li>
<li><a href="http://blogs.digitss.com/technology/hacking-jquery-thickbox/" rel="bookmark" title="April 27, 2008">Hacking jQuery Thickbox..!</a></li>
<li><a href="http://blogs.digitss.com/javascript/jquery-1-2-5-released/" rel="bookmark" title="May 21, 2008">jQuery 1.2.5 released</a></li>
</ul>
<p><!-- Similar Posts took 3.885 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.digitss.com/javascript/jquery-javascript/jquery-1-4-released-jquery-ui-has-yet-to-achieve-compatibility-with-it/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Radio-buttons with Checkbox behavior &#8211; a jQuery Plugin 1.2.5</title>
		<link>http://blogs.digitss.com/javascript/jquery-javascript/radio-buttons-with-checkbox-behavior-a-jquery-plugin-1-2-5/</link>
		<comments>http://blogs.digitss.com/javascript/jquery-javascript/radio-buttons-with-checkbox-behavior-a-jquery-plugin-1-2-5/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 15:02:28 +0000</pubDate>
		<dc:creator>Dharmavirsinh Jhala</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Tools / Plugins / Extenstion]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Radio-buttons]]></category>

		<guid isPermaLink="false">http://blogs.digitss.com/?p=325</guid>
		<description><![CDATA[This is almost final release to a innovative plug-in which changes the basic behavior of any Radio-button in our form and makes it selectable or un-selectable just like a checkbox.]]></description>
			<content:encoded><![CDATA[<p>This is almost final release to a innovative plug-in which changes the basic behavior of any Radio-button in our form and makes it selectable or un-selectable just like a checkbox.</p>
<p>It includes some code improvements and stays compatible to latest version of jQuery 1.3.2 just like 1.2.4. It has been tested on Safari 4.x, Internet Explorer 7.0+, Firefox 3.x and will work on Chrome 2.x or 3.x as well.</p>
<p>I request any users to post back any problems/bugs they encounter or enhancements they need to be included.<br />
<span id="more-325"></span></p>
<div id="attachment_326" class="wp-caption alignleft" style="width: 416px"><img class="size-full wp-image-326" title="jQuery Radio-button with Checkbox behavior" src="http://blogs.digitss.com/wp-content/uploads/2009/12/jquery-radio-button-with-checkbox-behavior.jpg" alt="jQuery Radio-button with Checkbox behavior" width="406" height="445" /><p class="wp-caption-text">jQuery Radio-button with Checkbox behavior</p></div>
<p>I saw a bug reported by <a title="Bug Reported by ReneLeonhardt" href="http://plugins.jquery.com/user/8243" target="_blank">ReneLeonhardt</a> and tried to find out bug everything seemed all-right. Though I have made some changes, but still if you think that there is any patch required please let me know.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://blogs.digitss.com/javascript/jquery-plugin-radio-button-with-checkbox-behavior-updated/" rel="bookmark" title="March 6, 2008">jQuery Plugin &#8211; Radio button with Checkbox Behavior &#8211; Updated</a></li>
<li><a href="http://blogs.digitss.com/javascript/jquery-javascript/jquery-magnet-multi-select-list-dg-magnet-combo/" rel="bookmark" title="January 25, 2011">jQuery Magnet Multi-Select List &#8211; DG Magnet Combo</a></li>
<li><a href="http://blogs.digitss.com/javascript/jquery-javascript/jquery-1-5-2-and-jquery-mobile-alpha-4-released/" rel="bookmark" title="April 3, 2011">jQuery 1.5.2 and jQuery mobile alpha 4 released</a></li>
<li><a href="http://blogs.digitss.com/javascript/radio-button-with-checkbox-behavior/" rel="bookmark" title="February 25, 2008">Radio-button with Checkbox behavior</a></li>
<li><a href="http://blogs.digitss.com/database/mysql/mysql-5-1-general-availability-announced/" rel="bookmark" title="November 27, 2008">MySQL 5.1 General Availability announced</a></li>
</ul>
<p><!-- Similar Posts took 4.953 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.digitss.com/javascript/jquery-javascript/radio-buttons-with-checkbox-behavior-a-jquery-plugin-1-2-5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 2.364 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2011-08-13 12:45:11 -->

