<?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>Techbray &#187; jQuery</title>
	<atom:link href="http://www.techbray.com/category/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techbray.com</link>
	<description>Tech, Tips N Tricks and Web 2.0</description>
	<lastBuildDate>Wed, 18 Jan 2012 06:08:57 +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>Text with moving backgrounds using jQuery</title>
		<link>http://www.techbray.com/2010/01/text-with-moving-backgrounds-using-jquery/</link>
		<comments>http://www.techbray.com/2010/01/text-with-moving-backgrounds-using-jquery/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 17:04:42 +0000</pubDate>
		<dc:creator>Jaan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[How To's]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.techbray.com/?p=355</guid>
		<description><![CDATA[I have come across a wonderful article on Gayadesign on how to create a moving backgrounds for text using jquery like flash. Read more on gayadesign >>]]></description>
			<content:encoded><![CDATA[<p>I have come across a wonderful article on Gayadesign on how to create a moving backgrounds for text using jquery like flash.</p>
<p><img src="http://www.techbray.com/wp-content/uploads/2010/01/textjquery.jpg" alt="textjquery" title="textjquery" width="600" height="549" class="alignleft size-full wp-image-356" /></p>
<p><a href="http://www.gayadesign.com/diy/text-with-moving-backgrounds-with-jquery/" target="_blank">Read more on gayadesign >> </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techbray.com/2010/01/text-with-moving-backgrounds-using-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Colorful Clock With CSS &amp; jQuery</title>
		<link>http://www.techbray.com/2009/12/a-colorful-clock-with-css-jquery/</link>
		<comments>http://www.techbray.com/2009/12/a-colorful-clock-with-css-jquery/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 05:34:46 +0000</pubDate>
		<dc:creator>Jaan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[How To's]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Clocks]]></category>

		<guid isPermaLink="false">http://www.techbray.com/?p=336</guid>
		<description><![CDATA[A wonderful clock design explained on tutorialzine site using css &#038; jquery. Read more >>]]></description>
			<content:encoded><![CDATA[<p>A wonderful clock design explained on tutorialzine site using css &#038; jquery.</p>
<p><img src="http://www.techbray.com/wp-content/uploads/2010/01/clock.jpg" alt="clock" title="clock" width="600" height="260" class="alignleft size-full wp-image-337" /></p>
<p><strong><a href="http://tutorialzine.com/2009/12/colorful-clock-jquery-css/">Read more >></a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techbray.com/2009/12/a-colorful-clock-with-css-jquery/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to highlight the important keywords in text using jQuery.</title>
		<link>http://www.techbray.com/2009/12/how-to-highlight-the-important-keywords-in-text-using-jquery/</link>
		<comments>http://www.techbray.com/2009/12/how-to-highlight-the-important-keywords-in-text-using-jquery/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 17:03:34 +0000</pubDate>
		<dc:creator>Jaan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[How To's]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.techbray.com/?p=348</guid>
		<description><![CDATA[A solution to highlight identified keywords (using named entity recognition) inside the chunk of user generated text had been posted on 5thirtyone .Look at the below pictures which demonstrates the actual working. With format selected, highlights the particular meaningful text. Read more on 5thirtyone >>]]></description>
			<content:encoded><![CDATA[<p>A solution to highlight identified keywords (using named entity recognition) inside the chunk of user generated text had been posted on 5thirtyone .Look at the below pictures which demonstrates the actual working.<br />
<img src="http://www.techbray.com/wp-content/uploads/2010/01/img1.jpg" alt="img1" title="img1" width="564" height="504" class="alignleft size-full wp-image-349" /><br />
With format selected, highlights the particular meaningful text.<br />
<img src="http://www.techbray.com/wp-content/uploads/2010/01/img2.png" alt="img2" title="img2" width="558" height="499" class="alignleft size-full wp-image-350" /></p>
<p><a href="http://5thirtyone.com/archives/2206">Read more on 5thirtyone >></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techbray.com/2009/12/how-to-highlight-the-important-keywords-in-text-using-jquery/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Click and Increase the Size of an Image using jQuery</title>
		<link>http://www.techbray.com/2009/12/click-and-increase-the-size-of-an-image-using-jquery/</link>
		<comments>http://www.techbray.com/2009/12/click-and-increase-the-size-of-an-image-using-jquery/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 16:26:24 +0000</pubDate>
		<dc:creator>Jaan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[How To's]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Tips 'N' Tricks]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.techbray.com/?p=331</guid>
		<description><![CDATA[The article on dotnetcurry demonstrates how to click and view a larger image when the thumbnail is clicked on. Read more on dotnetcurrey.com]]></description>
			<content:encoded><![CDATA[<p>The article on dotnetcurry demonstrates how to click and view a larger image when the thumbnail is clicked on.<img src="http://www.techbray.com/wp-content/uploads/2009/12/imageincrease.jpg" alt="imageincrease" title="imageincrease" width="600" height="527" class="alignleft size-full wp-image-332" /> </p>
<p><a href="http://www.dotnetcurry.com/ShowArticle.aspx?ID=437&#038;utm_source=feedburner&#038;utm_medium=feed&#038;utm_campaign=Feed%253a+netCurryRecentArticles+%28.NET+Curry%253a+Recent+Microsoft+ASP.NET%252c+Silverlight%252c+WinForms%252c+Vista%252c+C%2523%252c+VB.NET+Articles%29&#038;utm_content=Google+Reader&#038;AspxAutoDetectCookieSupport=1" target="_blank" >Read more on dotnetcurrey.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techbray.com/2009/12/click-and-increase-the-size-of-an-image-using-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to disable the right click using jQuery</title>
		<link>http://www.techbray.com/2009/12/how-to-disable-the-right-click-using-jquery/</link>
		<comments>http://www.techbray.com/2009/12/how-to-disable-the-right-click-using-jquery/#comments</comments>
		<pubDate>Sat, 26 Dec 2009 18:17:24 +0000</pubDate>
		<dc:creator>Jaan</dc:creator>
				<category><![CDATA[How To's]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Tips 'N' Tricks]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.techbray.com/?p=343</guid>
		<description><![CDATA[How to disable the right click using jquery]]></description>
			<content:encoded><![CDATA[<p>Some of us might want to disable the mouse right click .Below simple code snippet can be  used to d the job easily using jQuery.</p>
<p><code>$(document).ready(function(){<br />
    $(document).bind("contextmenu",function(e){<br />
        return false;<br />
    });<br />
});</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techbray.com/2009/12/how-to-disable-the-right-click-using-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to prevent form submission when enter key is pressed using jquery.</title>
		<link>http://www.techbray.com/2009/12/how-to-prevent-form-submission-when-enter-key-is-pressed-using-jquery/</link>
		<comments>http://www.techbray.com/2009/12/how-to-prevent-form-submission-when-enter-key-is-pressed-using-jquery/#comments</comments>
		<pubDate>Sat, 26 Dec 2009 09:02:39 +0000</pubDate>
		<dc:creator>Jaan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[How To's]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.techbray.com/?p=353</guid>
		<description><![CDATA[As a web developer, most of the times you would have to do some functionality / operation before form gets submitted.By default form gets submitted on click of enter key when the input field is focussed.Below code snipppet can be used to avoid default form submision. $(document).ready(function() { $(&#8220;form&#8221;).bind(&#8220;keypress&#8221;, function(e) { if (e.keyCode == 13) [...]]]></description>
			<content:encoded><![CDATA[<p>As a web developer, most of the times you would have to do some functionality / operation before form gets submitted.By default form gets submitted on click of enter key when the input field is focussed.Below code snipppet can be used to avoid default form submision.</p>
<p>  $(document).ready(function() {<br />
         $(&#8220;form&#8221;).bind(&#8220;keypress&#8221;, function(e) {<br />
             if (e.keyCode == 13) {<br />
                 searchFunc($(&#8220;#searchInput&#8221;).attr(&#8216;value&#8217;)); //perform some operation<br />
                 return false;<br />
            }<br />
         });<br />
     }); </p>
]]></content:encoded>
			<wfw:commentRss>http://www.techbray.com/2009/12/how-to-prevent-form-submission-when-enter-key-is-pressed-using-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to count the number of lines in the input textarea</title>
		<link>http://www.techbray.com/2009/12/how-to-count-the-number-of-lines-in-the-input-textarea/</link>
		<comments>http://www.techbray.com/2009/12/how-to-count-the-number-of-lines-in-the-input-textarea/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 17:13:50 +0000</pubDate>
		<dc:creator>Jaan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[How To's]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[How to count the number of lines in the input textarea]]></category>

		<guid isPermaLink="false">http://www.techbray.com/?p=358</guid>
		<description><![CDATA[Below code snippet helps you to find the number of lines in the input textarea using Jquery &#038; native RegEx functionality. var textInput = $(&#8220;#textareaId&#8221;).val(); var lines = textInput .split(/\r&#124;\r\n&#124;\n/); alert(lines.length);]]></description>
			<content:encoded><![CDATA[<p>Below code snippet helps you to find the number of lines in the input textarea using Jquery &#038; native RegEx functionality.</p>
<p>var textInput = $(&#8220;#textareaId&#8221;).val();<br />
var lines = textInput .split(/\r|\r\n|\n/);<br />
alert(lines.length);</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techbray.com/2009/12/how-to-count-the-number-of-lines-in-the-input-textarea/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to parse XML data using Jquery</title>
		<link>http://www.techbray.com/2009/11/how-to-parse-xml-data-using-jquery/</link>
		<comments>http://www.techbray.com/2009/11/how-to-parse-xml-data-using-jquery/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 18:50:14 +0000</pubDate>
		<dc:creator>Jaan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[How To's]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[xml parser]]></category>

		<guid isPermaLink="false">http://www.techbray.com/?p=287</guid>
		<description><![CDATA[How to parse XMl data using Jquery ]]></description>
			<content:encoded><![CDATA[<p>Due to  the increase in  popularity of Web 2.0 applications and web services it has become increasingly important to be able to parse XML from the client browser.Parsing is not the easiest thing till the JavaScript libraries that supports XML made their way.</p>
<p>With jQuery, when you receive an XML from a callback (usually thro&#8217; Ajax) which is basically a DOM (document object model) that jQuery can traverse seamlessly and efficiently to get the data you need.<br />
we are using jQuery to parse XML due to its ubiquity&#038; for cross browser compatibility. </p>
<p><strong>The below xml file is used for reference.</strong></p>
<p>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;<br />
&lt;country&gt;<br />
  &lt;state&gt;<br />
     &lt;city&gt;Bangalore&lt;/city&gt;<br />
     &lt;id&gt;24378&lt;/id&gt;<br />
  &lt;/state&gt;<br />
  &lt;state&gt;<br />
     &lt;city&gt;Chennai&lt;/city&gt;<br />
     &lt;id&gt;42378&lt;/id&gt;<br />
  &lt;/state&gt;<br />
   &lt;state&gt;<br />
     &lt;city&gt;Mumbai&lt;/city&gt;<br />
     &lt;id&gt;324782&lt;/id&gt;<br />
  &lt;/state&gt;<br />
   &lt;state&gt;<br />
     &lt;city&gt;Hyderabad&lt;/city&gt;<br />
     &lt;id&gt;6524&lt;/id&gt;<br />
  &lt;/state&gt;<br />
&lt;/country&gt;</p>
<p>To parse the xml file we&#8217;re going to set up a function that will search each parent element and output the specified child element&#8217;s value as text using the find and each statement.The xml data gets parsed on success of ajax callback through parseXml function.<strong>Don&#8217;t forget to set dataType as &#8220;xml&#8221; while making an ajax call</strong>.<br />
$(this).find(&#8220;city&#8221;).text()  represents the textual value of city by striping the city tags -&lt;city&gt; &amp;&lt;/city&gt;</p>
<p><code>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;<br />
&lt;title&gt;xml parser using jquery&lt;/title&gt;<br />
&lt;script type=&quot;text/javascript&quot; src=&quot;/jquery-min.1.3.2.js&quot;&gt;&lt;/script&gt;<br />
&lt;script type=&quot;text/javascript&quot;&gt;</p>
<p>$(document).ready(function() {<br />
  $.ajax({<br />
    type: &quot;GET&quot;,<br />
    url: &quot;/statecity.xml&quot;,<br />
    dataType: &quot;xml&quot;,<br />
    success: parseXml<br />
});</p>
<p>function parseXml(xml) {<br />
$(xml).find(&quot;state&quot;).each(function() {<br />
//Loops through each state &amp; find's respective instance of city &amp; id in the xml file </p>
<p>$(&quot;table#Citylist&quot;).append('&lt;tr&gt;&lt;td&gt;'+ $(this).find(&quot;city&quot;).text() +'&lt;/td&gt;&lt;td&gt;'+$(this).find(&quot;id&quot;).text()+'&lt;/td&gt;&lt;/tr&gt;');</p>
<p> });<br />
}<br />
});<br />
&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;table id=&quot;Citylist&quot;&gt;<br />
&lt;tr &gt;&lt;td &gt;City List&lt;/td&gt;  &lt;td &gt;ID&lt;/td&gt;&lt;tr&gt;<br />
&lt;/table&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</code></p>
<p>The output would be displayed as below after parsing the xml file:</p>
<table border="1px">
<tr>
<td>The City List</td>
<td> ID</td>
</tr>
<tr>
<td>Bangalore </td>
<td>24378</td>
</tr>
<tr>
<td>Chennai </td>
<td>42378</td>
</tr>
<tr>
<td>Mumbai </td>
<td> 324782</td>
</tr>
<tr>
<td>Hyderabad </td>
<td>6524</td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.techbray.com/2009/11/how-to-parse-xml-data-using-jquery/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to switch a stylesheet using jQuery.</title>
		<link>http://www.techbray.com/2009/09/how-to-switch-a-stylesheet-using-jquery/</link>
		<comments>http://www.techbray.com/2009/09/how-to-switch-a-stylesheet-using-jquery/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 16:28:59 +0000</pubDate>
		<dc:creator>Jaan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[css switcher]]></category>

		<guid isPermaLink="false">http://www.techbray.com/?p=279</guid>
		<description><![CDATA[How to switch a stylesheet using jQuery.]]></description>
			<content:encoded><![CDATA[<p>Switching stylesheets may be necessary to accommodate different screen resolutions, or entirely different look &#8216;n&#8217; feel of web page .<br />
It really helps in complex styles where more no of styles are included.<br />
Include the following jQuery script to the header section of your HTML file.</p>
<p>&lt;script type=&quot;text/javascript&quot;&gt;<br />
  $(&quot;.cssswitch&quot;).click(function() {<br />
    $(&#8216;link[rel=stylesheet]&#8216;).attr(&#8216;href&#8217; , $(this).attr(&#8216;rel&#8217;));<br />
  });<br />
&lt;/script&gt;</p>
<p>If you are referring  your default stylesheet like below :</p>
<p>&lt;link rel=&quot;stylesheet&quot; href=&quot;greentheme.css&quot; type=&quot;text/css&quot;&gt;</p>
<p>For switching the styles, just assign the cssswitch class to an HTML element &#038; use the rel attribute to reference the location of your stylesheets.</p>
<p>&lt;a href=&quot;#&quot; class=&quot;cssswitch&quot; rel=&quot;greentheme.css&quot;&gt;greentheme&lt;/a&gt;<br />
&lt;a href=&quot;#&quot; class=&quot; cssswitch &quot; rel=&quot;bluetheme.css&quot;&gt;bluetheme(new one)&lt;/a&gt;</p>
<p>Clicking on the second link above (blue theme) will modify the DOM in such a way that the href attribute will take on the value of bluetheme.css.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techbray.com/2009/09/how-to-switch-a-stylesheet-using-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get the values of the selected checkboxes into an Array using Jquery</title>
		<link>http://www.techbray.com/2009/08/how-to-get-the-values-of-the-selected-checkboxes-into-an-array-using-jquery/</link>
		<comments>http://www.techbray.com/2009/08/how-to-get-the-values-of-the-selected-checkboxes-into-an-array-using-jquery/#comments</comments>
		<pubDate>Sat, 01 Aug 2009 06:08:21 +0000</pubDate>
		<dc:creator>Jaan</dc:creator>
				<category><![CDATA[How To's]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[array]]></category>

		<guid isPermaLink="false">http://www.techbray.com/?p=272</guid>
		<description><![CDATA[How to get the values of the selected checkboxes into an Array using Jquery]]></description>
			<content:encoded><![CDATA[<p>For the below html code snippet ,we can retreive the selected(checked) checkbox values into an javascript array for further processing.<br />
<code><br />
&lt;div&gt;<br />
&lt;input type=&quot;checkbox&quot; name=&quot;list_group&quot; value=&quot;one&quot; /&gt;<br />
&lt;input type=&quot;checkbox&quot; name=&quot;list_group&quot; value=&quot;two&quot; /&gt;<br />
&lt;input type=&quot;checkbox&quot; name=&quot;list_group&quot; value=&quot;three&quot; /&gt;<br />
&lt;input type=&quot;checkbox&quot; name=&quot;list_group&quot; value=&quot;four&quot; /&gt;<br />
&lt;input type=&quot;checkbox&quot; name=&quot;list_group&quot; value=&quot;five&quot; /&gt;<br />
&lt;/div&gt;<br />
</code></p>
<p>jQuery code to be used on onready or onclick event.<br />
<code><br />
var values = new Array();<br />
$.each($("input[@name='list_group']:checked"), function() {<br />
  values.push($(this).val());<br />
});<br />
 </code><br />
</hr>
]]></content:encoded>
			<wfw:commentRss>http://www.techbray.com/2009/08/how-to-get-the-values-of-the-selected-checkboxes-into-an-array-using-jquery/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

