<?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>blog - coda.coza &#187; jquery</title>
	<atom:link href="/blog/tag/jquery/feed" rel="self" type="application/rss+xml" />
	<link>http://coda.co.za/blog</link>
	<description>dress up. leave a false name. be legendary.</description>
	<lastBuildDate>Thu, 23 Jun 2011 05:01:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>query.dropSlideMenu.js</title>
		<link>http://coda.co.za/blog/2009/07/24/dropslidemenu</link>
		<comments>http://coda.co.za/blog/2009/07/24/dropslidemenu#comments</comments>
		<pubDate>Fri, 24 Jul 2009 21:08:53 +0000</pubDate>
		<dc:creator>coda</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[blind]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[drop down]]></category>
		<category><![CDATA[dropslidemenu]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://coda.co.za/blog/?p=1014</guid>
		<description><![CDATA[dropSlideMenu is my attempt at building a simple (single-level support only), yet easily and highly-customisable drop-down menu with an attractive sliding effect.
query.dropSlideMenu.js v1.0 - View Demo or Download

There are plenty of jQuery drop-down menu scripts already available, but I often find that they're either too basic, or too complicated and bulky, or don't support a [...]]]></description>
			<content:encoded><![CDATA[<p>dropSlideMenu is my attempt at building a simple (single-level support only), yet easily and highly-customisable drop-down menu with an attractive sliding effect.</p>
<p><strong>query.dropSlideMenu.js</strong> v1.0 - <a href="/content/projects/jquery.dropSlideMenu/">View Demo</a> or <a href="/content/projects/jquery.dropSlideMenu/jquery.dropSlideMenu.zip">Download</a></p>
<p><a href="/content/projects/jquery.dropSlideMenu/"><img src="/blog/wp-content/uploads/2009/07/dropslidemenu.png" alt="query.dropSlideMenu.js" width="474" height="191" /></a></p>
<p>There are <em>plenty</em> of jQuery drop-down menu scripts already available, but I often find that they're either too basic, or too complicated and bulky, or don't support a proper sliding effect (instead the menus simply change height as they're revealed).</p>
<p>I'm publishing this script with the hope that others might find it useful. Hopefully as it gains popularity, so will the potential for it to improve. Also, I've developed this plugin partly as a jQuery learning exercise. So if you do find yourself downloading and using it, and you're proficient with JavaScript, I would really appreciate if you could spend a minute or two reviewing my code and providing suggestions for improvement.</p>
<h3>Features include:</h3>
<ul>
<li>Requires the mouse cursor to decelerate over the menu before activating, to prevent unintentional opening (big thanks to <a href="http://blog.threedubmedia.com">threedubmedia</a> for their <a href="http://blog.threedubmedia.com/2008/08/eventspecialhover.html">jquery.event.hover</a> plugin)</li>
<li>Dynamic styling of clickstream (path of links are compared with path of the current URL) - optional</li>
<li>Possible to set widths on each list item and its drop down</li>
<li>Possible to individually style each list item and its drop down</li>
<li>List items with no link behaviour (where href is "#") are disabled</li>
<li>Settings to control the duration (speed of drop down animation), and delay (before the drop down closes)</li>
<li>Select elements are hidden (IE6) - optional</li>
<li>Customisable <a href="http://docs.jquery.com/UI/Effects/AdvancedEasing">Easing Effects</a></li>
<li>W3C-valid HTML and CSS</li>
</ul>
<p>To begin, <a href="/content/projects/jquery.dropSlideMenu/jquery.dropSlideMenu.zip">download the source files</a> (.zip) and browse the <a href="view-source:http://coda.co.za/content/projects/jquery.dropSlideMenu/">demo source code</a> to familiarise yourself with the necessary files required, and the way in which they fit together. Assuming you already have the most recent version of jQuery, the JavaScript and CSS files that need to be included in your page are:</p>
<pre>&lt;link rel="stylesheet" href="jquery.dropSlideMenu.css" type="text/css" /&gt;

&lt;script src="jquery-ui-1.7.2.custom.min.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="jquery.event.hover.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="jquery.dropSlideMenu.js" type="text/javascript"&gt;&lt;/script&gt;</pre>
<p>To attach the plugin to a menu, include the following jQuery script in your page (in this example, #navigation is the menu wrapper):</p>
<pre>$(document).ready(function() {
	$("#navigation").dropSlideMenu({
		indicators: true,
		clickstream: true,
		openEasing: "easeOutQuad",
		closeEasing: "easeInQuad",
		duration: 600,
		delay: 800,
		hideSelects: true
	});
});</pre>
<p>The settings are fairly self-explanatory. I'm not going to go into more detail as I assume you know what you're doing with jQuery and CSS. If you do require further assistance, please leave a comment below - I can't guarantee that I'll be able to help, but I do make an attempt to reply to all comments.</p>
<p>The most recent version of this plugin will always be the one available for download on this post.</p>
<p>Please let me know if you decide to use it, or have any feedback. Thanks!</p>
<p><a rel="license" href="http://creativecommons.org/licenses/by-nc/3.0/"><img src="http://i.creativecommons.org/l/by-nc/3.0/80x15.png" alt="Creative Commons License" /></a></p>
<img src="/blog/?ak_action=api_record_view&id=1014&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://coda.co.za/blog/2009/07/24/dropslidemenu/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>jQuery plugin for Twitter</title>
		<link>http://coda.co.za/blog/2008/10/26/jquery-plugin-for-twitter</link>
		<comments>http://coda.co.za/blog/2008/10/26/jquery-plugin-for-twitter#comments</comments>
		<pubDate>Sat, 25 Oct 2008 23:49:57 +0000</pubDate>
		<dc:creator>coda</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://coda.co.za/blog/?p=980</guid>
		<description><![CDATA[Updated [08 July 2009]:
v1.5 released - View Demo or Download
I've made a couple of improvements to the plugin. The ones worth mentioning:

You can add alternative content to the container element (that you pass to the plugin). This will be replaced by your tweets when the plugin is executed by jQuery. If JavaScript is disabled or [...]]]></description>
			<content:encoded><![CDATA[<h3>Updated [08 July 2009]:</h3>
<p>v1.5 released - <a href="/content/projects/jquery.twitter">View Demo</a> or <a href="/content/projects/jquery.twitter/jquery.twitter.zip">Download</a></p>
<p>I've made a couple of improvements to the plugin. The ones worth mentioning:</p>
<ul>
<li>You can add alternative content to the container element (that you pass to the plugin). This will be replaced by your tweets when the plugin is executed by jQuery. If JavaScript is disabled or the plugin fails, your visitors will still see your alternative content - a good idea therefore would be to include a link to your twitter profile.</li>
<li>All styles are now added to the container elements via a new ".twitted" class (<a href="/content/projects/jquery.twitter/jquery.twitter.css">view CSS</a>). If you're upgrading from the old plugin version, you'll need to transfer your old styles across into the new syntax.</li>
<li>3 new customisation options: <strong>slideDuration</strong> (if slideIn is <em>true</em>, this will change the duration of the slide effect), <strong>showProfileLink</strong> (set to <em>false</em> if you want to hide the link), <strong>showTimestamp</strong> (set to <em>false</em> if you want to remove the timestamp from tweets - the timestamp is then added as a <em>title</em> on the individual tweet list items).</li>
<li>Fixed the jQuery slide effect "jump" bug (hat-tip: <a href="http://blog.pengoworks.com/index.cfm/2009/4/21/Fixing-jQuerys-slideDown-effect-ie-Jumpy-Animation">Dan G. Switzer, II</a>)</li>
</ul>
<p>If you have any feedback or  bug reports, please <a href="#addcomment">leave a comment</a> below.</p>
<div class="hr"></div>
<p>I started writing a new post today containing various tips, tricks and best practices for the <a href="http://jquery.com/">jQuery JavaScript Library</a> that I've picked up over the past few months, but instead ended up developing my first jQuery plugin.</p>
<p>Introducing <strong>jQuery plugin for Twitter</strong> v1.0 - <a href="/content/projects/jquery.twitter/1.0/">View Demo</a><br />
A simple, unobtrusive and customisable client-side method for easily embedding a Twitter feed into a web page.</p>
<p>To begin, <a href="/content/projects/jquery.twitter/1.0/jquery.twitter.zip">download the source files</a> (.zip) and familiarise yourself with the necessary JavaScript and CSS files that need to be included in your page:</p>
<pre>
&lt;link rel="stylesheet" href="jquery.twitter.css" type="text/css" /&gt;
&lt;script src="jquery.twitter.js" type="text/javascript"&gt;&lt;/script&gt;
</pre>
<p>Next, add a div element with id "twitter" to your page, wherever you want the feed to appear:</p>
<pre>&lt;div id="twitter"&gt;&lt;/div&gt;</pre>
<p>Lastly attach the plugin to that div with the following jQuery code (the customisation options are pretty much self-explanatory I think):</p>
<pre>
$(document).ready(function() {
	$("#twitter").getTwitter({
		userName: "jquery",
		numTweets: 5,
		loaderText: "Loading tweets...",
		slideIn: true,
		showHeading: true,
		headingText: "Latest Tweets",
		showProfileLink: true
	});
});
</pre>
<p>It's obviously a little more involved, but that should be enough to get you up and running! </p>
<div class="hr"></div>
<p>The most recent version of this plugin will always be the one available for download on this post.</p>
<p>Please let me know if you decide to use it, or have any feedback.</p>
<p>Using a <a href="http://www.learningjquery.com/2007/10/a-plugin-development-pattern">Plugin Development Pattern</a> (by Karl Swedberg) as a starting point, the plugin is based on Twitter's <a href="http://twitter.com/badges/html">HTML Badge Customizer</a>.</p>
<p><a rel="license" href="http://creativecommons.org/licenses/by-nc/3.0/"><img src="http://i.creativecommons.org/l/by-nc/3.0/80x15.png" alt="Creative Commons License" /></a></p>
<img src="/blog/?ak_action=api_record_view&id=980&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://coda.co.za/blog/2008/10/26/jquery-plugin-for-twitter/feed</wfw:commentRss>
		<slash:comments>278</slash:comments>
		</item>
	</channel>
</rss>

