<?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; basics</title>
	<atom:link href="http://techiedrill.com/tag/basics/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 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>
	</channel>
</rss>
