<?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>TechieDrill &#187; Jquery</title>
	<atom:link href="http://techiedrill.com/category/web-developement/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://techiedrill.com</link>
	<description>Your World Of Technical Tutorials</description>
	<lastBuildDate>Tue, 05 Jan 2010 16:50:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>jQuery Screencast &#8211; slideDown Login</title>
		<link>http://techiedrill.com/2009/11/jquery-screencast-slidedown-login/</link>
		<comments>http://techiedrill.com/2009/11/jquery-screencast-slidedown-login/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 20:27:35 +0000</pubDate>
		<dc:creator>bprashanth</dc:creator>
				<category><![CDATA[Jquery]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[slideDown]]></category>

		<guid isPermaLink="false">http://techiedrill.com/?p=37</guid>
		<description><![CDATA[
How to quickly implement a login form that slides down and slides up&#8230;
To download tutorial files (1.3 KB): Click Here
To Download this youtube video, Click Here
]]></description>
			<content:encoded><![CDATA[<p><object width="580" height="360"><param name="movie" value="http://www.youtube.com/v/UDajpPWHv98&#038;hl=en&#038;fs=1&#038;color1=0x234900&#038;color2=0x4e9e00&#038;border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/UDajpPWHv98&#038;hl=en&#038;fs=1&#038;color1=0x234900&#038;color2=0x4e9e00&#038;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="580" height="360"></embed></object></p>
<p>How to quickly implement a login form that slides down and slides up&#8230;</p>
<p>To download tutorial files (1.3 KB): <a href="http://dualshare.com/1xbxvxajvpme/login.zip">Click Here</a></p>
<p>To Download this youtube video, <a href="http://www.keephd.com/watch?v=UDajpPWHv98">Click Here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://techiedrill.com/2009/11/jquery-screencast-slidedown-login/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Screencast &#8211; jQuery slideDown &amp; slideToggle</title>
		<link>http://techiedrill.com/2009/11/jquery-screencast-jquery-slidedown-slidetoggle/</link>
		<comments>http://techiedrill.com/2009/11/jquery-screencast-jquery-slidedown-slidetoggle/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 20:18:11 +0000</pubDate>
		<dc:creator>bprashanth</dc:creator>
				<category><![CDATA[Jquery]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[slideDown]]></category>
		<category><![CDATA[toggle]]></category>

		<guid isPermaLink="false">http://techiedrill.com/?p=35</guid>
		<description><![CDATA[
How to use the slideDown and slideToggle functions&#8230;
To download this youtube video, Click Here
]]></description>
			<content:encoded><![CDATA[<p><object width="500" height="315"><param name="movie" value="http://www.youtube.com/v/KNYdxxV9Rbw&#038;hl=en&#038;fs=1&#038;color1=0x234900&#038;color2=0x4e9e00&#038;border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/KNYdxxV9Rbw&#038;hl=en&#038;fs=1&#038;color1=0x234900&#038;color2=0x4e9e00&#038;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="500" height="315"></embed></object></p>
<p>How to use the slideDown and slideToggle functions&#8230;</p>
<p>To download this youtube video, <a href="http://www.keephd.com/watch?v=KNYdxxV9Rbw">Click Here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://techiedrill.com/2009/11/jquery-screencast-jquery-slidedown-slidetoggle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jquery Toggle Function</title>
		<link>http://techiedrill.com/2009/11/jquery-toggle/</link>
		<comments>http://techiedrill.com/2009/11/jquery-toggle/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 20:15:44 +0000</pubDate>
		<dc:creator>bprashanth</dc:creator>
				<category><![CDATA[Jquery]]></category>
		<category><![CDATA[basics]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[toggle]]></category>

		<guid isPermaLink="false">http://techiedrill.com/?p=32</guid>
		<description><![CDATA[
The basics of Toggle function&#8230;
To download this youtube video, Click Here
Text Content:
This tutorial, a basic HTML page is created to show how Toggle function works.
A &#60;div&#62; is going to load and a link underneath is going to show/hide on clicking it.
To start off, create a HTML page and add reference to jQuery javascript library:
&#60;script type="text/javascript" [...]]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="315" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/cR6TYW-vkvI&amp;hl=en&amp;fs=1&amp;color1=0x234900&amp;color2=0x4e9e00&amp;border=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="500" height="315" src="http://www.youtube.com/v/cR6TYW-vkvI&amp;hl=en&amp;fs=1&amp;color1=0x234900&amp;color2=0x4e9e00&amp;border=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>The basics of Toggle function&#8230;</p>
<p>To download this youtube video, <a href="http://www.keephd.com/watch?v=cR6TYW-vkvI">Click Here</a></p>
<h3>Text Content:</h3>
<p>This tutorial, a basic HTML page is created to show how Toggle function works.</p>
<p>A &lt;div&gt; is going to load and a link underneath is going to show/hide on clicking it.</p>
<h4>To start off, create a HTML page and add reference to jQuery javascript library:</h4>
<pre>&lt;script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.2.6.js"&gt;&lt;/script&gt;</pre>
<h4>Add a &lt;div&gt; next:</h4>
<pre>&lt;div id="content"&gt;</pre>
<pre>&lt;/div&gt;</pre>
<h4>Create an Anchor tag:</h4>
<pre>&lt;a href="#"&gt;Click to Toggle&lt;/a&gt;</pre>
<h4>Add a CSS file (<em>style2.css</em>) and add the following content for the &lt;div&gt;:</h4>
<pre>#content</pre>
<pre>{</pre>
<pre> height:200px;</pre>
<pre> width:200px;</pre>
<pre> background-color:#FF9933;</pre>
<pre>}</pre>
<h4>Add reference to the CSS in the HTML page:</h4>
<pre>&lt;link href="CSS/style2.css" rel="stylesheet" type="text/css" /&gt;</pre>
<h4>Add a new javascript file (<em>toggleDemo.js</em>) and attach it to the HTML page:</h4>
<pre>&lt;script src="Scripts/toggleDemo.js" type="text/javascript"&gt;&lt;/script&gt;</pre>
<h4>Now, add the following code to the javascript file:</h4>
<pre>$(function() {</pre>
<pre> $('a').click(function() {</pre>
<pre> $('#content').toggle();</pre>
<pre> });</pre>
<pre>});</pre>
<p>First line, we get the reference for the document<br />
Second line, the click function of the anchor tag is obtained<br />
Third Line, the toggle() functionality is added to the div with id &#8216;content&#8217;</p>
<p>Here, since we take all &lt;a&gt; tags, any other link on the page is going to make the &lt;div&gt; toggle.</p>
]]></content:encoded>
			<wfw:commentRss>http://techiedrill.com/2009/11/jquery-toggle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introduction To JQuery</title>
		<link>http://techiedrill.com/2009/11/introduction-to-jquery/</link>
		<comments>http://techiedrill.com/2009/11/introduction-to-jquery/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 20:14:11 +0000</pubDate>
		<dc:creator>bprashanth</dc:creator>
				<category><![CDATA[Jquery]]></category>
		<category><![CDATA[basics]]></category>
		<category><![CDATA[Introduction]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://techiedrill.com/?p=30</guid>
		<description><![CDATA[
A basic introduction to jQuery
To download this youtube video, Click Here
Text Content:
Basically, jQuery is a javascript code library designed to make life easier. It can be used to animate using CSS and other developments on the web page.
It can also be used with AJAX to make it very simple to work with. This is because [...]]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="315" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/CR2h7HQCcLQ&amp;hl=en&amp;fs=1&amp;color1=0x234900&amp;color2=0x4e9e00&amp;border=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="500" height="315" src="http://www.youtube.com/v/CR2h7HQCcLQ&amp;hl=en&amp;fs=1&amp;color1=0x234900&amp;color2=0x4e9e00&amp;border=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>A basic introduction to jQuery</p>
<p>To download this youtube video, <a href="http://www.keephd.com/watch?v=CR2h7HQCcLQ">Click Here</a></p>
<h2>Text Content:</h2>
<p>Basically, jQuery is a javascript code library designed to make life easier. It can be used to animate using CSS and other developments on the web page.</p>
<p>It can also be used with AJAX to make it very simple to work with. This is because using DOM elements in javascript is a lengthy process. Thanks to jQuery, now it is a simple process. The elements can be referred by their id.</p>
<p>To start of with, just create a new HTML page.</p>
<p>The jQuery library has to be imported in the page. Just search for &#8220;jQuery google&#8221;, copy the link location from featured downloads to the js file directly.<br />
Now, the reference is added to the head part of the web page after title tag:</p>
<pre>&lt;script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.2.6.js"&gt;&lt;/script&gt;</pre>
<p>For testing, just add a &lt;div id=&#8221;content&#8221;&gt;&lt;/div&gt; tag to the page. Use CSS (<em>File-&gt;New-&gt;CSS</em>) to give the div content some width and background color.</p>
<pre>#content</pre>
<pre>{</pre>
<pre> height:200px;</pre>
<pre> width:200px;</pre>
<pre> background-color:#FF9900;</pre>
<pre>}</pre>
<p>Save both HTML and CSS page after adding reference to the stylesheet in the web page.</p>
<p>Now, we can add a function in jQuery to make the div disappear once the page is loaded.</p>
<p>Inline code can also be used to program, but it is better to use external js files because the files will be having a minimized load time (because it removes all blank files) when separated.</p>
<p>So, just add a new Javascript file (<em>File-&gt; New-&gt; Javascript</em>). Save it and add reference to the same in the current HTML page.</p>
<p>The coding part of the JS file:</p>
<p>Just like initialize function that developers use in javascript (which is used to execute some code after the document is loaded completely), the jQuery library provides the following:</p>
<pre>$(funciton{}{</pre>
<pre>});</pre>
<p>Now, the jQuery code is run when the page is loaded to the browser.</p>
<p>The &lt;div&gt; which was created in the HTML page can be referred like this  &#8212;</p>
<pre>$("#content")</pre>
<p>(Its really that simple&#8230; no document.getElementById and other complex names&#8230; Easy, isn&#8217;t it?)</p>
<p>The function that is going to be used is the toggle function. It toggles the visibility of the element for which the function is written for. (just makes it appear and disappear on executing the code)</p>
<p>Just type in the following code:</p>
<pre>$("#content").toggle();</pre>
<p>So now, when the page is loaded, the div will disappear and leave a blank page, which is what we wanted!!</p>
]]></content:encoded>
			<wfw:commentRss>http://techiedrill.com/2009/11/introduction-to-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Fade In, Fade Out</title>
		<link>http://techiedrill.com/2009/11/jquery-fade-in-fade-out/</link>
		<comments>http://techiedrill.com/2009/11/jquery-fade-in-fade-out/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 17:59:41 +0000</pubDate>
		<dc:creator>bprashanth</dc:creator>
				<category><![CDATA[Jquery]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[fade in]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://techiedrill.com/?p=26</guid>
		<description><![CDATA[
To download this youtube video, Click Here
Text Content:
This is a simple tutorial on fadein and fadeout functionalities in jQuery.
An extra piece of information: A Dreamweaver API extension for jQuery.
When typing in a javascript file, the code-ins in this extension are quite handy. They show up pop-ups of scroll-down lists of functions available to use, so [...]]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="315" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/P3WrZeKHDIQ&amp;hl=en&amp;fs=1&amp;color1=0x234900&amp;color2=0x4e9e00&amp;border=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="500" height="315" src="http://www.youtube.com/v/P3WrZeKHDIQ&amp;hl=en&amp;fs=1&amp;color1=0x234900&amp;color2=0x4e9e00&amp;border=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>To download this youtube video, <a href="http://www.keephd.com/watch?v=P3WrZeKHDIQ">Click Here</a></p>
<p><strong>Text Content:</strong></p>
<p>This is a simple tutorial on fadein and fadeout functionalities in jQuery.</p>
<p><span style="text-decoration: underline;">An extra piece of information</span>: A Dreamweaver API extension for jQuery.<br />
When typing in a javascript file, the code-ins in this extension are quite handy. They show up pop-ups of scroll-down lists of functions available to use, so that we need not keep all the available jQuery functions in our head.<br />
The extension can be obtained here: <em>http://xtnd.us/dreamweaver/jquery</em><br />
There is even a small video tutorial on how the extension speeds-up jQuery coding in Dreamweaver.</p>
<p>There are three files associated in this tutorial: HTML file, CSS file and the javascript function file.</p>
<p>The following links are added to the blank HTML page:</p>
<ol>
<li>The jQuery source link &#8212; &lt;script type=&#8221;text/javascript&#8221; src=&#8221;http://jqueryjs.googlecode.com/files/jquery-1.2.6.js&#8221;&gt;&lt;/script&gt;</li>
<li>The CSS file link &#8212; &lt;link href=&#8221;css/style3.css&#8221; rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; /&gt;</li>
<li>The javascript function file &#8212; &lt;script src=&#8221;js/fucntion3.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;</li>
</ol>
<p><strong>Note:</strong> It is important that your javascript function file tag comes after your jquery source link.</p>
<h4>The content of the CSS:</h4>
<pre><em>#content</em></pre>
<pre><em>{</em></pre>
<pre><em> height:200px;</em></pre>
<pre><em> width:200px;</em></pre>
<pre><em> background-color:#FF9933;</em></pre>
<pre><em>}</em></pre>
<h4>The HTML content:</h4>
<pre>&lt;body&gt;</pre>
<pre> &lt;div id="content"&gt;&lt;/div&gt;</pre>
<pre> &lt;a href="#" id="fadeout"&gt;Fade Out&lt;/a&gt;</pre>
<pre> &lt;a href="#" id="fadein"&gt;Fade In&lt;/a&gt;</pre>
<pre>&lt;/body&gt;</pre>
<h4>Now, the javascript function file is written as given below:</h4>
<pre>$(function() {</pre>
<pre> $("a#fadeout").click(function() {</pre>
<pre> $("#content").fadeOut(1000);</pre>
<pre> });</pre>
<pre> $("a#fadein").click(function() {</pre>
<pre> $("#content").fadeIn(1000);</pre>
<pre> });</pre>
<pre>});</pre>
<p>Here, we just get the &lt;a&gt; tag with id &#8220;fadeout&#8221; and assign its click function to fadeout the element with id &#8220;content&#8221; over a period of one second (1000 miliseconds).<br />
Similarly, the fadein function is also coded.</p>
]]></content:encoded>
			<wfw:commentRss>http://techiedrill.com/2009/11/jquery-fade-in-fade-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create An Accordion with jQuery</title>
		<link>http://techiedrill.com/2009/11/create-an-accordion-with-jquery/</link>
		<comments>http://techiedrill.com/2009/11/create-an-accordion-with-jquery/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 17:55:29 +0000</pubDate>
		<dc:creator>bprashanth</dc:creator>
				<category><![CDATA[Jquery]]></category>
		<category><![CDATA[accordion]]></category>
		<category><![CDATA[create]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://techiedrill.com/?p=24</guid>
		<description><![CDATA[
To download this youtube video, Click Here
Text Content:
This video is going to show you  how to create a simple Accordion. This video explains some of the important concepts in jQuery, so watch this video for sure!
First, a container element is created using
&#60;div id=&#8221;container&#8221;&#62;    &#60;/div&#62;
Within this, a Definition List is created. The list is structured so [...]]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="445" height="364" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/qBh_lMO_SDM&amp;hl=en&amp;fs=1&amp;color1=0x234900&amp;color2=0x4e9e00&amp;border=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="445" height="364" src="http://www.youtube.com/v/qBh_lMO_SDM&amp;hl=en&amp;fs=1&amp;color1=0x234900&amp;color2=0x4e9e00&amp;border=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>To download this youtube video, <a href="http://www.keephd.com/watch?v=qBh_lMO_SDM">Click Here</a></p>
<p>Text Content:</p>
<p>This video is going to show you  how to create a simple Accordion. This video explains some of the important concepts in jQuery, so watch this video for sure!</p>
<p>First, a container element is created using</p>
<p>&lt;div id=&#8221;container&#8221;&gt;    &lt;/div&gt;</p>
<p>Within this, a Definition List is created. The list is structured so that each definition term &lt;dt&gt; contains the main headings such as Home, About, Blog and Contact. Inside the definition description &lt;dd&gt; is an unordered list &lt;ul&gt; which has a series of links as its list elements.<br />
Altogether, the definition list looks something like this:<br />
&lt;dl&gt;<br />
&lt;dt&gt;&lt;a href=&#8221;#&#8221;&gt;Home&lt;/a&gt;&lt;/dt&gt;<br />
&lt;dd&gt;<br />
&lt;ul&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Link1&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Link2&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Link3&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;/dd&gt;<br />
&lt;dt&gt;&lt;a href=&#8221;#&#8221;&gt;About&lt;/a&gt;&lt;/dt&gt;<br />
&lt;dd&gt;<br />
&lt;ul&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Link1&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Link2&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Link3&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;/dd&gt;<br />
&lt;dt&gt;&lt;a href=&#8221;#&#8221;&gt;Blog&lt;/a&gt;&lt;/dt&gt;<br />
&lt;dd&gt;<br />
&lt;ul&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Link1&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Link2&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Link3&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;/dd&gt;<br />
&lt;dt&gt;&lt;a href=&#8221;#&#8221;&gt;Contact&lt;/a&gt;&lt;/dt&gt;<br />
&lt;dd&gt;<br />
&lt;ul&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Link1&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Link2&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Link3&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;/dd&gt;</p>
<p>Then, the jquery.js file (by dragging from Solution Explorer) and an empty Stylesheet are imported into the current page.</p>
<p>The initial styling is done in CSS as follows:</p>
<p>dl, dt, dd, ul, li, a<br />
{<br />
margin:0; padding:0;<br />
}</p>
<p>#container<br />
{<br />
margin:auto;<br />
}</p>
<p>a<br />
{<br />
text-decoration:none;<br />
color: #292929;<br />
outline: none;<br />
}</p>
<p>li<br />
{<br />
padding-left: .6em;<br />
list-style-type: none;<br />
}</p>
<p>dl<br />
{<br />
width:100px;<br />
}</p>
<p>dt<br />
{<br />
background-color: #faa41a;</p>
<p>}</p>
<p>To get clear about the functionality we are going to accomplish:<br />
First, the secondary links (in &lt;ul&gt;) should not be displayed at all times.<br />
And, when the user clicks on one of the main heading (orange background), we want to close any other open definition and then expand the list that the user clicked.</p>
<p>The following types of code are one and the same, so you can use whichever is comfortable for you. Since type2 is shorter, it is used in this program.<br />
Type1:<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
$(document).ready(function() {</p>
<p>});<br />
&lt;/script&gt;<br />
Type2:<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
$(function() {</p>
<p>});<br />
&lt;/script&gt;</p>
<p>Inside the function, the first line is:<br />
$(&#8221;dd:not(:first)&#8221;).hide();<br />
This signifies that all the definition description be obtained from the document but not the first one and be hidden when the document is loaded.</p>
<p>Then, the following piece of code is inserted.<br />
$(&#8221;dt a&#8221;).click(function() {<br />
$(&#8221;dd&#8221;).slideUp(&#8221;fast&#8221;);<br />
$(this).parent(&#8221;dt&#8221;).next(&#8221;dd&#8221;).slideDown(&#8221;normal&#8221;);<br />
});</p>
<p>The first line &#8212;$(&#8221;dt a&#8221;).click(function() {&#8212; gets the anchor element inside the &lt;dt&gt; tag and assigns a function to the click event to each of them in the page.<br />
The second line &#8212;$(&#8221;dd&#8221;).slideUp(&#8221;fast&#8221;);&#8212; makes all the definitions that are visible slideUp (i.e. hide from view)<br />
The third line &#8212; $(this).parent(&#8221;dt&#8221;).next(&#8221;dd&#8221;).slideDown(&#8221;normal&#8221;); &#8212; gets the parent &lt;dt&gt; of the (here this refers to &lt;a&gt; tag in &lt;dt&gt;) &lt;a&gt; tag. Then it gets the next &lt;dd&gt; element and slides it down (to make it visible) using the slideDown method of jQuery.</p>
<p>The border (which is displayed in firefox) can be removed by specifying &#8220;outline: none;&#8221; in the CSS for anchor tag.</p>
<p>So, we can see that a lot can be achieved with only a few lines of code in jQuery.</p>
]]></content:encoded>
			<wfw:commentRss>http://techiedrill.com/2009/11/create-an-accordion-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vertically Center With JQuery</title>
		<link>http://techiedrill.com/2009/11/vertically-center-with-jquery/</link>
		<comments>http://techiedrill.com/2009/11/vertically-center-with-jquery/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 18:17:13 +0000</pubDate>
		<dc:creator>bprashanth</dc:creator>
				<category><![CDATA[Jquery]]></category>
		<category><![CDATA[Beginner]]></category>
		<category><![CDATA[center]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[vertically]]></category>

		<guid isPermaLink="false">http://techiedrill.com/?p=22</guid>
		<description><![CDATA[
This lesson, I&#8217;ll show you how you can vertically center elements or images by using just a bit of jQuery (javascript library).
To Download this youtube video, Click Here
Text Content:
This video is to show how to vertically center an element using jQuery library.
Horizontal centering can be achieved easily by specifying margins to &#8220;auto&#8221; in CSS.
The img [...]]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="445" height="364" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/qnSzOUaDdx8&amp;hl=en&amp;fs=1&amp;color1=0x234900&amp;color2=0x4e9e00&amp;border=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="445" height="364" src="http://www.youtube.com/v/qnSzOUaDdx8&amp;hl=en&amp;fs=1&amp;color1=0x234900&amp;color2=0x4e9e00&amp;border=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>This lesson, I&#8217;ll show you how you can vertically center elements or images by using just a bit of jQuery (javascript library).</p>
<p>To Download this youtube video, <a href="http://www.keephd.com/watch?v=qnSzOUaDdx8">Click Here</a></p>
<p>Text Content:</p>
<p>This video is to show how to vertically center an element using jQuery library.</p>
<p>Horizontal centering can be achieved easily by specifying margins to &#8220;auto&#8221; in CSS.</p>
<p>The img tag and the script tag (jQuery reference) are added to the plain HTML page. Now, the image will not be centered anyway.</p>
<p>To code with jQuery, first start with standard &lt;script type=&#8221;text/javascript&#8221;&gt; tag.</p>
<p>Then enter the following code within the script tag:</p>
<p>$(document).ready(function(){<br />
var height = $(document).height();<br />
var imageHeight = $(&#8221;img&#8221;).height();<br />
console.log(imageHeight);<br />
});</p>
<p>The console.log statement has been used to get the image height during debugging session.</p>
<p>Now, the CSS of the image is going to be edited.</p>
<p>Replace the console.log statement with the following:</p>
<p>$(&#8221;img&#8221;).css({&#8221;position&#8221; : &#8220;relative&#8221;; &#8220;top&#8221; : height/2 &#8211; imageHeight/2});</p>
<p>Now, the image is centered vertically in the page.</p>
<p>In this way, multiple values of image properties in CSS can be specified with a single $ in jQuery &#8211; (to include the properties within curly braces)</p>
<p>A single CSS property can be set like this:  $(&#8221;img&#8221;).css(&#8221;position&#8221; : &#8220;relative&#8221;);</p>
]]></content:encoded>
			<wfw:commentRss>http://techiedrill.com/2009/11/vertically-center-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JQuery For Absolute Beginners &#8211; Part 2</title>
		<link>http://techiedrill.com/2009/11/jquery-for-absolute-beginners-part-2/</link>
		<comments>http://techiedrill.com/2009/11/jquery-for-absolute-beginners-part-2/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 17:34:29 +0000</pubDate>
		<dc:creator>bprashanth</dc:creator>
				<category><![CDATA[Jquery]]></category>
		<category><![CDATA[Beginner]]></category>
		<category><![CDATA[Introduction]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://techiedrill.com/?p=9</guid>
		<description><![CDATA[
This video tutorial will show beginners exactly how to get started with JQuery.
To download this video, Click Here
Text Content:
In the last episode, our aim was to display the paragraph on clicking the anchor tag.
Create a new line after $(&#8221;p#paragraph1&#8243;).hide(); statement and enter the following lines
$(&#8221;a#paragraphAnchor&#8221;).click(function()
{
$(&#8221;p#paragraph1&#8243;).show();
});
In the above code, the anchor tag with the id &#8220;paragraphAnchor&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="445" height="364" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/J64Pmi_jEiQ&amp;hl=en&amp;fs=1&amp;color1=0x234900&amp;color2=0x4e9e00&amp;border=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="445" height="364" src="http://www.youtube.com/v/J64Pmi_jEiQ&amp;hl=en&amp;fs=1&amp;color1=0x234900&amp;color2=0x4e9e00&amp;border=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>This video tutorial will show beginners exactly how to get started with JQuery.</p>
<p>To download this video, <a href="http://www.keephd.com/watch?v=J64Pmi_jEiQ">Click Here</a></p>
<p>Text Content:</p>
<p>In the last episode, our aim was to display the paragraph on clicking the anchor tag.</p>
<p>Create a new line after $(&#8221;p#paragraph1&#8243;).hide(); statement and enter the following lines</p>
<p>$(&#8221;a#paragraphAnchor&#8221;).click(function()<br />
{<br />
$(&#8221;p#paragraph1&#8243;).show();</p>
<p>});</p>
<p>In the above code, the anchor tag with the id &#8220;paragraphAnchor&#8221; is coded. The click function of the anchor tag is accessed and a statement is written to make the paragraph visible.<br />
The paragraph can be made visible by using the show() method.</p>
<p>On trying in the browser, it can be observed that the appearance of first paragraph is sudden. To make it more attractive and easy to visualize, a little bit of animation is necessary.</p>
<p>The show() method accepts a string argument: &#8220;slow&#8221;, &#8220;medium&#8221; and &#8220;fast&#8221; &#8211; which corresponds to how quickly the paragraph is displayed.<br />
The show() method can also accept a numeric argument: the number of milliseconds over which the function is executed (1000 &#8211; one second, 5000 &#8211; five seconds)</p>
<p>Here, we use show(&#8221;slow&#8221;) to display the paragraph in an animated fashion.</p>
<p>Also, when observed when show(5000) is used, the display seems to be strange. This is because, the show() method is altering three different properties : height, width and opacity at the same time.</p>
<p>The show() method can also be replaced with a slideDown() method. This will just slide down the invisible paragraph to visibility. The slideDown() method just changes only the height property.</p>
]]></content:encoded>
			<wfw:commentRss>http://techiedrill.com/2009/11/jquery-for-absolute-beginners-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JQuery For Absolute Beginners &#8211; Part 1</title>
		<link>http://techiedrill.com/2009/11/jquery-for-absolute-beginners-part-1/</link>
		<comments>http://techiedrill.com/2009/11/jquery-for-absolute-beginners-part-1/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 17:28:47 +0000</pubDate>
		<dc:creator>bprashanth</dc:creator>
				<category><![CDATA[Jquery]]></category>
		<category><![CDATA[Beginner]]></category>
		<category><![CDATA[Introduction]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://techiedrill.com/?p=6</guid>
		<description><![CDATA[
This video tutorial will show beginners exactly how to get started with jQuery.
To Download this video, Click Here
Text Content:
This tutorial is aimed at complete beginners. An assumption is made that you have a basic working knowledge of JavaScript syntax.
JQuery library can be downloaded at www.jquery.com. Here, we use the uncompressed version since this is for [...]]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="445" height="364" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/Hk5oXFtYLwE&amp;hl=en&amp;fs=1&amp;color1=0x234900&amp;color2=0x4e9e00&amp;border=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="445" height="364" src="http://www.youtube.com/v/Hk5oXFtYLwE&amp;hl=en&amp;fs=1&amp;color1=0x234900&amp;color2=0x4e9e00&amp;border=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>This video tutorial will show beginners exactly how to get started with jQuery.</p>
<p>To Download this video, <a href="http://www.keephd.com/watch?v=Hk5oXFtYLwE">Click Here</a></p>
<p>Text Content:</p>
<p>This tutorial is aimed at complete beginners. An assumption is made that you have a basic working knowledge of JavaScript syntax.</p>
<p>JQuery library can be downloaded at www.jquery.com. Here, we use the uncompressed version since this is for only learning purposes. The compressed version is to be used in actual website designs.</p>
<p>Visual Web Developer is used to develop.</p>
<p>First, the library is added to the solution. Add page &#8220;index.htm&#8221; to the solution. Delete the &#8220;Default.aspx&#8221; and &#8220;Web.Config&#8221; files in the solution.</p>
<p>Change the title to &#8220;JQuery for Absolute Beginners&#8221;. Click and drag the jQuery Library from Solution Explorer to add the script tag in the head section of the page.</p>
<p>Lets create a paragraph which we don&#8217;t want to display unless the user clicks a button.<br />
Just create a paragraph with some data in it.<br />
Create an Anchor tag to perform an operation on it. The anchor tag points to nowhere (href=&#8221;#&#8221;), has the id &#8220;paragraphAnchor&#8221; and Inner Text &#8220;Click To Read Paragraph&#8221;.<br />
To achieve the aimed functionality, javascript code is added to the header tag.<br />
&lt;script type=&#8221;text/javascript&#8221;&gt; tag is added to the head section.</p>
<p>The very first thing that needs to be done in jQuery is to add an abbreviation of the jQuery symbol &#8211; the DOLLAR ($) sign.<br />
After dollar sign, type:</p>
<p>$(document).ready(function()  &#8211; this is same as in .NET kind-of functionality with &#8220;.&#8221;. This line tells that jQuery, when the page is ready to be manipulated, a function is going to be executed (without any parameters). A function is just lines of code that is going to instruct what to do.</p>
<p>Then, include a Javascript block with &#8220;{&#8221; and &#8220;}&#8221; and then close the paranthesis with &#8220;)&#8221;. &#8211; (this was opened after &#8220;ready&#8221; keyword)</p>
<p>Now, within the block, some code is written to hide the paragraph we created previously.</p>
<p>$(&#8221;p&#8221;).hide();<br />
This code is used to get the paragraph. p can be in single or double quotes.</p>
<p>When this code is executed in the browser, the paragraph is invisible (i.e. hidden).</p>
<p>Also, when multiple paragraphs are there in the document, the code is going to hide all of them. To avoid this and target the functionality to a single paragraph, an id=&#8221;paragraph1&#8243; is added to the required paragraph. And accordingly, in the jQuery code, the $(&#8221;p&#8221;).hide(); code is replaced with:</p>
<p>$(&#8221;p#paragraph1&#8243;).hide();</p>
<p>Note that the selector is as same as CSS syntax. This is why jQuery is so attractive.</p>
<p>We can make the paragraph visible in the next part of this tutorial.</p>
]]></content:encoded>
			<wfw:commentRss>http://techiedrill.com/2009/11/jquery-for-absolute-beginners-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
