<?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>GeekTantra &#187; Javascript</title>
	<atom:link href="http://www.geektantra.com/category/programming/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.geektantra.com</link>
	<description>yet another geek&#039;s blog</description>
	<lastBuildDate>Thu, 03 Jun 2010 00:46:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>jQuery MegaMenu 2</title>
		<link>http://www.geektantra.com/2010/05/jquery-megamenu-2/</link>
		<comments>http://www.geektantra.com/2010/05/jquery-megamenu-2/#comments</comments>
		<pubDate>Sun, 16 May 2010 11:03:13 +0000</pubDate>
		<dc:creator>GeekTantra</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[JavaScript programming language]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Usability]]></category>

		<guid isPermaLink="false">http://www.geektantra.com/?p=177</guid>
		<description><![CDATA[<p><img class="alignleft" title="jquery-megamenu-2" src="http://www.geektantra.com/wp-content/uploads/2010/05/jquery-megamenu-2.png" alt="" width="225" height="140" /></p>

<p>An updated jQuery based MegaMenu plugin.<br />
 Demo: <a href="http://www.geektantra.com/projects/jquery-megamenu-2/">Click Here</a> <br />
 Download: <a href="http://jquery-megamenu.googlecode.com/files/jquery-megamenu.2.1a.zip">Click Here</a> <br />
 Project Repository: <a href="http://jquery-megamenu.googlecode.com/">Click Here</a></p>]]></description>
			<content:encoded><![CDATA[<p>This is a sequel to the popular <a href="http://www.geektantra.com/2009/09/jquery-mega-menu/">jQuery MegaMenu Plugin</a>, with quiet a lot of changes in the code base and usability.</p>
<p>Demo: <a href="http://www.geektantra.com/projects/jquery-megamenu-2/">Click Here</a> <br />
 Download: <a href="http://jquery-megamenu.googlecode.com/files/jquery-megamenu.2.1a.zip">Click Here</a> <br />
 Project Repository: <a href="http://jquery-megamenu.googlecode.com/">Click Here</a></p>
<p>So whats new in jQuery MegaMenu 2</p>
<ol>
<li>A completely revamped JS and CSS code-base.</li>
<li>Easier to use. (A lot simpler HTML and JS needs to be used to initiate the menu)</li>
<li>Customizable menu show and hide effects, with three available options of slideDown/slideUp, fadeIn/fadeOut and simple</li>
<li>Customizable menu activation and deactivation actions. Now you can choose to activate the menu by click or by mouseover</li>
<li>HoverIntent like feature embedded into the code-base so that we have smooth navigation by default without any external libraries.</li>
<li>Automatic alignment of the menu content according to the width of the parent menu container. </li>
<li>Variable width of the menu contents.</li>
<li>Non obtrusive and easier to understand CSS.</li>
</ol>
<h3 style="border-bottom: 1px solid #BBB;">Usage:</h3>
<ul style="margin-bottom: 15px;">
<li>In the header section of the HTML add the following:

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p177code1'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1771"><td class="code" id="p177code1"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;javascripts/jquery.megamenu.js&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
jQuery(document).ready(function(){
    jQuery(&quot;.megamenu&quot;).megamenu();
});
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>We can replace <em>megamenu</em> with the class of the megamenu unordered list. To have the megamenu aligned to right just use the option &#8216;justify&#8217;:'right&#8217;</p>
</li>
<li>Next in your body add the following code:

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p177code2'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1772"><td class="code" id="p177code2"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ul</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;megamenu&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;javascript: void(0)&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>First Menu<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div</span> <span style="color: #000066;">style</span>=<span style="color: #ff0000;">&quot;width: 350px;&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Contents of the first mega menu<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;javascript: void(0)&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Second Menu<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div</span> <span style="color: #000066;">style</span>=<span style="color: #ff0000;">&quot;width: 350px;&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Contents of the second mega menu<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

</li>
</ul>
<h3 style="border-bottom: 1px solid #BBB;">Advanced Options and Usage</h3>
<ul>
<li>
To have the megamenu activated on click use the &#8216;activate_action&#8217; option as follows:</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p177code3'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1773"><td class="code" id="p177code3"><pre class="javascript" style="font-family:monospace;">jQuery<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.megamenu&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">megamenu</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> <span style="color: #3366CC;">'activate_action'</span><span style="color: #339933;">:</span><span style="color: #3366CC;">'click'</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// Can take 'click', 'mouseover' and 'mouseenter' as values only. Default: 'mouseover'</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

</li>
<li>
MegaMenu Show/Hide Options:</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p177code4'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1774"><td class="code" id="p177code4"><pre class="javascript" style="font-family:monospace;">jQuery<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.megamenu&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">megamenu</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> <span style="color: #3366CC;">'show_method'</span><span style="color: #339933;">:</span><span style="color: #3366CC;">'fadeIn'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'hide_method'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'fadeOut'</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// 'show_method' can take 'fadeIn', 'slideDown' and 'simple' as values only. Default: 'slideDown'</span>
<span style="color: #006600; font-style: italic;">// 'hide_method' can take 'fadeOut', 'slideUp' and 'simple' as values only. Default: 'slideUp'</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

</li>
<li>
MegaMenu JS Shadow Options:</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p177code5'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1775"><td class="code" id="p177code5"><pre class="javascript" style="font-family:monospace;">jQuery<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.megamenu&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">megamenu</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> <span style="color: #3366CC;">'enable_js_shadow'</span><span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'shadow_size'</span><span style="color: #339933;">:</span><span style="color: #CC0000;">5</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// 'enable_js_shadow' can take true/false. Default: true</span>
<span style="color: #006600; font-style: italic;">// 'shadow_size' can take any whole number greater than 0. Default: 3</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

</li>
<li>
MegaMenu Align Options:</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p177code6'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1776"><td class="code" id="p177code6"><pre class="javascript" style="font-family:monospace;">jQuery<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.megamenu&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">megamenu</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> <span style="color: #3366CC;">'justify'</span><span style="color: #339933;">:</span><span style="color: #3366CC;">'right'</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// Can take left/right. Default: left</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

</li>
</ul>
<p>Enjoy the MegaMenu Plugin and do not forget to comment about it here.<br />
If you like the plugin do share it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geektantra.com/2010/05/jquery-megamenu-2/feed/</wfw:commentRss>
		<slash:comments>92</slash:comments>
		</item>
		<item>
		<title>jQuery Sliding Menu (AKA Lavalamp Menu)</title>
		<link>http://www.geektantra.com/2010/02/jquery-sliding-menu/</link>
		<comments>http://www.geektantra.com/2010/02/jquery-sliding-menu/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 07:21:16 +0000</pubDate>
		<dc:creator>GeekTantra</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Technology/Internet]]></category>
		<category><![CDATA[User Interface]]></category>

		<guid isPermaLink="false">http://www.geektantra.com/2010/02/jquery-sliding-menu-aka-lavalamp/</guid>
		<description><![CDATA[<p><img class="alignleft" title="jquery-sliding-menu" src="http://www.geektantra.com/wp-content/uploads/2010/02/jquery-sliding-menu.jpg" alt="jquery-sliding-menu" width="225" height="140" /></p>

<p>Finally, I am back after a long time with a refreshing new jQuery plugin to make your Web Page menus look better. Its the jQuery Sliding Menu.<br />
 Demo: <a title="jQuery Sliding Menu" href="http://www.geektantra.com/projects/jquery-sliding-menu/" target="_blank">Click Here</a><br />
 Download: <a title="jQuery Sliding Menu" href="http://jquery-sliding-menu.googlecode.com/files/jquery-sliding-menu-1.0.zip">Click Here</a><br />
 Project Repository: <a title="jQuery Live Form Validation" href="http://code.google.com/p/jquery-sliding-menu/" target="_blank">Click Here</a></p>]]></description>
			<content:encoded><![CDATA[<p>Finally, I am back after a long time with a refreshing new jQuery plugin to make your Web Page menus look better. Its the jQuery Sliding Menu also known as the Lavalamp Menu or Fancy menu by some.</p>
<p>Demo: <a title="jQuery Sliding Menu" href="http://www.geektantra.com/projects/jquery-sliding-menu/" target="_blank">Click Here</a><br />
Download: <a title="jQuery Sliding Menu" href="http://jquery-sliding-menu.googlecode.com/files/jquery-sliding-menu-1.0.zip">Click Here</a><br />
Project Repository: <a title="jQuery Live Form Validation" href="http://code.google.com/p/jquery-sliding-menu/" target="_blank">Click Here</a></p>
<div style="font-size: 14px; font-weight: bold">Usage:</div>
<ul style="margin: 0px;">
<li>
In the head section add the following code:</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p148code7'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1487"><td class="code" id="p148code7"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;link</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;stylesheets/jquery.sliding-menu.css&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #000066;">media</span>=<span style="color: #ff0000;">&quot;screen&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #808080; font-style: italic;">&lt;!-- jQuery UI is Optional. Its only required if using easing functions. --&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;javascripts/jquery.sliding-menu.js&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
jQuery(function(){
  jQuery('#HorizontalSlidingMenu .SlidingMenu').slidingMenu();
  jQuery('#VerticalSlidingMenu .SlidingMenu').slidingMenu({ initialOpacity: 0.5 });
});
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

</li>
<li>
Add the form in the body as shown below</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p148code8'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1488"><td class="code" id="p148code8"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;HorizontalSlidingMenu&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ul</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;SlidingMenu Horizontal&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>First Link<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Second Link<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Third Link<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Fourth Link<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Fifth Link<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;VerticalSlidingMenu&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ul</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;SlidingMenu&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>First Link<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Second Link<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Third Link<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Fourth Link<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Fifth Link<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

</li>
</ul>
<p>That&#8217;s it you are done!</p>
<p><em style="font-size: 14px;">For advanced users:</em></p>
<div style="font-size: 14px; font-weight: bold">List of options available:</div>
<table>
<tr>
<td><strong>backgroundClass</strong></td>
<td>Class of the moving background (Default: &#8220;Background&#8221;)</td>
</tr>
<tr>
<td><strong>initialOpacity</strong></td>
<td>Opacity of the moving background (Default: 1)</td>
</tr>
<tr>
<td><strong>slideSpeed</strong></td>
<td>Speed at which the background should slide (Default: 1, should be a fraction less than 1 which is max speed)</td>
</tr>
<tr>
<td><strong>easing</strong></td>
<td>Type of easying with which the background should slide (Default: &#8220;linear&#8221;, must include jQuery UI core for this to work)</td>
</tr>
<tr>
<td><strong>callback</strong></td>
<td>Callback of the sliding menu event (Default: &#8220;&#8221;)</td>
</tr>
<tr>
<td><strong>backgroundContent</strong></td>
<td>HTML for moving background (Default: &#8220;&lt;div&gt;&lt;/div&gt;&#8221;)</td>
</tr>
<tr>
<td><strong>activeClass</strong></td>
<td>Class for the clicked link (Default: &#8220;ActiveLink&#8221;)</td>
</tr>
<tr>
<td><strong>highlightOnClick</strong></td>
<td>Tells whether the menu item should get highlighted on clicking it (Default: false)</td>
</tr>
</table>
<p>Hope you liked the plugin. Awaiting your comments</p>
<p>If you liked the plugin please spread it for your friends to use and please rate it at <a href="http://plugins.jquery.com/project/jquery-sliding-menu" target="_blank">http://plugins.jquery.com/project/jquery-sliding-menu</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.geektantra.com/2010/02/jquery-sliding-menu/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Update for jQuery Live Form Validation Plugin</title>
		<link>http://www.geektantra.com/2009/10/update-for-jquery-live-form-validation-plugin/</link>
		<comments>http://www.geektantra.com/2009/10/update-for-jquery-live-form-validation-plugin/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 16:00:34 +0000</pubDate>
		<dc:creator>GeekTantra</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[JavaScript programming language]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Technology/Internet]]></category>

		<guid isPermaLink="false">http://www.geektantra.com/?p=143</guid>
		<description><![CDATA[<p><img class="alignleft" title="jquery-form-validate-advanced-demo" src="http://www.geektantra.com/wp-content/uploads/2009/09/jquery-form-validate-advanced-demo.jpg" alt="jquery-form-validate-advanced-demo" width="225" height="140" /></p>

<p>An update of the <a title="jQuery Live Form Validation" href="http://www.geektantra.com/2009/09/jquery-live-form-validation/">jQuery Live form validation plugin</a> is here with an important feature addition.<br />
 Advanced Demo: <a title="jQuery Live Form Validation" href="http://www.geektantra.com/projects/jquery-form-validate/advanced_demo" target="_blank">Click Here</a><br />
 Download: <a title="jQuery Live Form Validation" href="http://jquery-form-validate.googlecode.com/files/jquery-form-validate.1.2.zip">Click Here</a></p>]]></description>
			<content:encoded><![CDATA[<p>So we have yet another update for jQuery Live Form Validation Plugin. Its a small but important update.</p>
<p>An important feature which I missed out in versions 1.0 and 1.1 has been added in this version. It is a callback option which can help make AJAX callbacks or any other callbacks when the form is successfully validated. </p>
<p>Now we can make callbacks on successful validation.<br />
In this example I am making an AJAX post to post.php when the form is successfully validated. For this we just need to add the following to the head section of our HTML file</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p143code9'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1439"><td class="code" id="p143code9"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;javascripts/jquery.validate.js&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
            jQuery(function(){
                //The Validation as earlier
                jQuery(&quot;#<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;id</span> of field to be validated<span style="color: #000000; font-weight: bold;">&gt;</span></span>&quot;).validate({
                    expression: &quot;if (<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;expression</span> for validation<span style="color: #000000; font-weight: bold;">&gt;</span></span>) return true; else return false;&quot;,
                    message: &quot;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;message</span> on validation failure<span style="color: #000000; font-weight: bold;">&gt;</span></span>&quot;
                });
                //The callback for the form with ID FormID
                jQuery(&quot;#FormID&quot;).validated(function(){
                   jQuery.post(&quot;post.php&quot;, jQuery(&quot;#FormID&quot;).serialize(), function(data){ jQuery(&quot;#FormID&quot;).html(data); });
                });
            });
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>I have updated the advanced demo with an alert callback.</p>
<div style="font-size: 14px; font-weight: bold">Download and Demo</div>
<p>Advanced Demo: <a title="jQuery Live Form Validation" href="http://www.geektantra.com/projects/jquery-form-validate/advanced_demo" target="_blank">Click Here</a><br />
Download: <a title="jQuery Live Form Validation" href="http://jquery-form-validate.googlecode.com/files/jquery-form-validate.1.2.zip">Click Here</a><br />
Project Repository: <a title="jQuery Live Form Validation" href="http://code.google.com/p/jquery-form-validate/" target="_blank">Click Here</a></p>
<p>Hope this feature helps. And many thanks to Vayu for pointing out this important feature. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.geektantra.com/2009/10/update-for-jquery-live-form-validation-plugin/feed/</wfw:commentRss>
		<slash:comments>38</slash:comments>
		</item>
		<item>
		<title>jQuery Live Form Validation Version 1.1</title>
		<link>http://www.geektantra.com/2009/09/jquery-live-form-validation-version-1-1/</link>
		<comments>http://www.geektantra.com/2009/09/jquery-live-form-validation-version-1-1/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 10:43:36 +0000</pubDate>
		<dc:creator>GeekTantra</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[JavaScript programming language]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Validation]]></category>

		<guid isPermaLink="false">http://www.geektantra.com/?p=132</guid>
		<description><![CDATA[<p><img class="alignleft" title="jquery-form-validate-advanced-demo" src="http://www.geektantra.com/wp-content/uploads/2009/09/jquery-form-validate-advanced-demo.jpg" alt="jquery-form-validate-advanced-demo" width="225" height="140" /></p>

<p>A new release of the <a title="jQuery Live Form Validation" href="http://www.geektantra.com/2009/09/jquery-live-form-validation/">jQuery Live form validation plugin</a> is here with new features.<br />
 Advanced Demo: <a title="jQuery Live Form Validation" href="http://www.geektantra.com/projects/jquery-form-validate/advanced_demo" target="_blank">Click Here</a><br />
 Download: <a title="jQuery Live Form Validation" href="http://jquery-form-validate.googlecode.com/files/jquery-form-validate.1.2.zip">Click Here</a></p>]]></description>
			<content:encoded><![CDATA[<p>I made some incremental changes to the previous version of jQuery Form Validation and added some new features to the same.</p>
</p>
<div style="font-size: 14px; font-weight: bold">New features in version 1.1</div>
<ol>
<li>Validations of radio-buttons and check-boxes now possible</li>
<li>Added jquery.validation.functions.js to modularize addition of new validation functions.</li>
<li>New validation functions added
<ol>
<li>isValidDate(year, month, day): It takes in three parameters the year(i.e. full year) of the date, the month of the date and the day part of the date and returns false if its not a valid date and true if valid. It includes checking of leap years. For example: 02-29-2008 will show as valid but 02-29-2009 as invalid.</li>
<li>isChecked(id): It takes the id of the container containing the group of check-boxes or radio-buttons and returns false if none of the children were checked and true if at-least one was checked.</li>
</ol>
</li>
</ol>
<div style="font-size: 14px; font-weight: bold">Download and Demo</div>
<p>Advanced Demo: <a title="jQuery Live Form Validation" href="http://www.geektantra.com/projects/jquery-form-validate/advanced_demo" target="_blank">Click Here</a><br />
Download: <a title="jQuery Live Form Validation" href="http://jquery-form-validate.googlecode.com/files/jquery-form-validate.1.2.zip">Click Here</a><br />
Project Repository: <a title="jQuery Live Form Validation" href="http://code.google.com/p/jquery-form-validate/" target="_blank">Click Here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.geektantra.com/2009/09/jquery-live-form-validation-version-1-1/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>jQuery Live Form Validation</title>
		<link>http://www.geektantra.com/2009/09/jquery-live-form-validation/</link>
		<comments>http://www.geektantra.com/2009/09/jquery-live-form-validation/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 20:56:34 +0000</pubDate>
		<dc:creator>GeekTantra</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Technology/Internet]]></category>

		<guid isPermaLink="false">http://www.geektantra.com/?p=99</guid>
		<description><![CDATA[<p><img class="alignleft" title="jquery-form-validate" src="http://www.geektantra.com/wp-content/uploads/2009/09/jquery-form-validate.jpg" alt="jquery-form-validate" width="225" height="140" /></p>

<p>After trying a load of non intuitive and not very useful jQuery form validation plugins I came up with this plugin. Its a jQuery plugin which helps create easy form validations with high flexibility and a large set of options.<br />
 Simple Demo: <a title="jQuery Live Form Validation" href="http://www.geektantra.com/projects/jquery-form-validate/" target="_blank">Click Here</a><br />
 Advanced Demo: <a title="jQuery Live Form Validation" href="http://www.geektantra.com/projects/jquery-form-validate/advanced_demo" target="_blank">Click Here</a><br />
 Download: <a title="jQuery Live Form Validation" href="http://jquery-form-validate.googlecode.com/files/jquery-form-validate.1.2.zip">Click Here</a></p>]]></description>
			<content:encoded><![CDATA[<p>After trying a load of non intuitive and not very useful jQuery form validation plugins I came up with this plugin. Its a jQuery plugin which helps create easy form validations with high flexibility and a large set of options.</p>
<p>Demo: <a title="jQuery Live Form Validation" href="http://www.geektantra.com/projects/jquery-form-validate/" target="_blank">Click Here</a><br />
Advanced Demo: <a title="jQuery Live Form Validation" href="http://www.geektantra.com/projects/jquery-form-validate/advanced_demo" target="_blank">Click Here</a><br />
Download: <a title="jQuery Live Form Validation" href="http://jquery-form-validate.googlecode.com/files/jquery-form-validate.1.2.zip">Click Here</a><br />
Project Repository: <a title="jQuery Live Form Validation" href="http://code.google.com/p/jquery-form-validate/" target="_blank">Click Here</a></p>
<div style="font-size: 14px; font-weight: bold">Features:</div>
<ul style="margin: 0px;">
<li>Supports custom validations</li>
<li>Options to toggle between live and onsubmit validations</li>
<li>Completely customizable CSS</li>
</ul>
<div style="font-size: 14px; font-weight: bold">Usage:</div>
<ul style="margin: 0px;">
<li>
In the head section add the following code:</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p99code10'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p9910"><td class="code" id="p99code10"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;javascripts/jquery.validate.js&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
            jQuery(function(){
                jQuery(&quot;#<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;id</span> of field to be validated<span style="color: #000000; font-weight: bold;">&gt;</span></span>&quot;).validate({
                    expression: &quot;if (<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;expression</span> for validation<span style="color: #000000; font-weight: bold;">&gt;</span></span>) return true; else return false;&quot;,
                    message: &quot;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;message</span> on validation failure<span style="color: #000000; font-weight: bold;">&gt;</span></span>&quot;
                });
            });
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

</li>
<li>
Add the form in the body as shown below</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p99code11'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p9911"><td class="code" id="p99code11"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;form</span> <span style="color: #000066;">action</span>=<span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;post&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;input</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;&lt;name of field to be validated&gt;</span></span>&quot; id=&quot;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;id</span> of field to be validated<span style="color: #000000; font-weight: bold;">&gt;</span></span>&quot; /&gt;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;input</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;Submit&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/form<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

</li>
</ul>
<p>That&#8217;s it you are done!</p>
<p><em style="font-size: 14px;">For advanced users:</em></p>
<div style="font-size: 14px; font-weight: bold">Options:</div>
<ul style="margin: 0px;">
<li><strong>expression:</strong> The javascript code which should have two outputs<br />
<true> or <false>. The value of the field is given by <val>. As this is a string escape characters for backslash and other non standard characters must be used. <em>(Default: return true;)</em> </li>
<li><strong>message: </strong>The validation message for the field. <em>(Default: &#8220;&#8221;)</em></li>
<li><strong>error_class:</strong> The CSS class of the error message container. <em>(Default: &#8220;ValidationErrors&#8221;)</em></li>
<li><strong>error_field_class:</strong> The CSS class added to the field when found invalid. <em>(Default: &#8220;ErrorField&#8221;)</em></li>
<li><strong>live:</strong> Sets whether the validation of the field should be live or on form submit. <em>(Default: true)</em></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.geektantra.com/2009/09/jquery-live-form-validation/feed/</wfw:commentRss>
		<slash:comments>87</slash:comments>
		</item>
		<item>
		<title>jQuery Mega Menu</title>
		<link>http://www.geektantra.com/2009/09/jquery-mega-menu/</link>
		<comments>http://www.geektantra.com/2009/09/jquery-mega-menu/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 19:43:23 +0000</pubDate>
		<dc:creator>GeekTantra</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Plugins]]></category>

		<guid isPermaLink="false">http://www.geektantra.com/?p=14</guid>
		<description><![CDATA[<p><img class="alignleft" title="jquery-megamenu-thumbnail" src="http://www.geektantra.com/wp-content/uploads/2009/09/jquery-megamenu-thumbnail.jpg" alt="jquery-megamenu-thumbnail" width="225" height="140" /></p>

<p>This is a simple jQuery based MegaMenu plugin.<br />
 Demo: <a title="jQuery Mega Menu" href="http://www.geektantra.com/projects/jquery-megamenu/" target="_blank">Click Here</a><br />
 Download: <a title="jQuery Mega Menu" href="http://jquery-megamenu.googlecode.com/files/jquery-megamenu.2.0.zip" target="_blank">Click Here</a></p>]]></description>
			<content:encoded><![CDATA[<div style="text-align: center;background: #FFFCBC; color: #C00; border: 1px solid #C00; font-size: 14px; padding: 5px;">A new version is available at<br />
<a href="http://www.geektantra.com/2010/05/jquery-megamenu-2/">http://www.geektantra.com/2010/05/jquery-megamenu-2/</a>
</div>
<p>The other day I was searching for a jQuery based MegaMenu over google but couldn&#8217;t find any good plugin for the same so sat down and wrote one for myself. Here is a simple jQuery plugin to create an unbloated MegaMenu in seconds.</p>
<p>Demo: <a title="jQuery Mega Menu" href="http://www.geektantra.com/projects/jquery-megamenu/" target="_blank">Click Here</a><br />
Download: <a title="jQuery Mega Menu" href="http://jquery-megamenu.googlecode.com/files/jquery-megamenu.2.0.zip" target="_blank">Click Here</a><br />
Project Repository: <a title="jQuery Mega Menu" href="http://code.google.com/p/jquery-megamenu/" target="_blank">Click Here</a></p>
<div style="font-size: 14px; font-weight: bold">Usage:</div>
<ul style="margin: 0px;">
<li>In your header section add the following:

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p14code12'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1412"><td class="code" id="p14code12"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;javascripts/jquery.megamenu.js&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
$(document).ready(function(){
    $(&quot;.MegaMenuLink&quot;).megamenu(&quot;.MegaMenuContent&quot;, {
        width: &quot;900px&quot;
    });
});
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>We can replace <em>MegaMenuLink</em> with the class of the menu links and <em>MegaMenuContent</em> with the class of the menu content. To have a flexible width of the megamenu just disable the width options or set width:&#8221;auto&#8221;.</p>
</li>
<li>Next in your body add the following code:

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p14code13'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1413"><td class="code" id="p14code13"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;MegaMenuLink&quot;</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;javascript:void(0)&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>First Mega Menu<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;MegaMenuContent&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
  Menu Content goes here
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

</li>
</ul>
<p>Enjoy the plugin and do not forget to comment about it here.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geektantra.com/2009/09/jquery-mega-menu/feed/</wfw:commentRss>
		<slash:comments>122</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->