<?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; plugin</title>
	<atom:link href="/blog/tag/plugin/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>
		<item>
		<title>Adblock for Firefox</title>
		<link>http://coda.co.za/blog/2005/01/15/adblock-for-firefox</link>
		<comments>http://coda.co.za/blog/2005/01/15/adblock-for-firefox#comments</comments>
		<pubDate>Sat, 15 Jan 2005 19:46:25 +0000</pubDate>
		<dc:creator>coda</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[adblock]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://coda.co.za/blog/2005/01/15/adblock-for-firefox</guid>
		<description><![CDATA[
The power of Adblock, a content-filtering extension for Mozilla/Firefox web browsers, continues to suprise me. So much so that I just have to, well, err, advertise it here again.
Adblock allows the user to specify filters, which remove unwanted content based on the source-address. If this sounds complicated, don't worry: it's not. Just add a few [...]]]></description>
			<content:encoded><![CDATA[<p><img src='/blog/wp-content/uploads/2008/03/eh2_468_60.gif' alt='remove me! find out how below…' /></p>
<p>The power of <a href="http://adblock.mozdev.org">Adblock</a>, a content-filtering extension for Mozilla/Firefox web browsers, continues to suprise me. So much so that I just have to, well, err, <em>advertise</em> it here <a href="/blog?s=adblock" title="search - results for 'adblock'"><em>again</em></a>.</p>
<blockquote><p>Adblock allows the user to specify filters, which remove unwanted content based on the source-address. If this sounds complicated, don't worry: it's not. Just add a few filters. Every time a webpage loads, Adblock will intercept and disable the elements matching your filters.</p></blockquote>
<p>Here are a few examples of simple filtering:</p>
<ul>
<li>Blocking all GIF images: <strong>.gif</strong></li>
<li>Blocking all content served from DoubleClick: <strong>doubleclick.net</strong></li>
<li>Blocking the contents of an ad-directory: <strong>http://example.com/ads/</strong></li>
</ul>
<p>And then we have <span class="hilite">Contextual Keyword Advertising Technology</span>, which is what actually prompted this post. I was reading <a href="http://music.ign.com/articles/579/579743p1.html" title="Music: Busted Break Up">an article</a> (yay!) on IGN Music today, and noticed that the words "<span class="quote">no doubt</span>" were linked. If you hover your mouse over the words, a sponsored link for Napster.co.uk appears in a dynamic, inline popup, along with a short text blurb and a link to "<span class="quote">Download No Doubt Tracks at Napster</span>".</p>
<p>This is the first time I've encountered this advertising technique, which is powered by Vibrant Media's <a href="http://www.intellitxt.com/site/advertisers_01a.html">IntelliTXT</a> technology.</p>
<blockquote><p>IntelliTXT is a pay-for-performance ad unit that delivers the advertiser's message via contextually-relevant keywords within article-based content.</p></blockquote>
<p>Ah-hah! But with a few clicks here and there in Adblock, I'd added a new filter for '<span class="quote">*intellitxt.com*</span>', which basically prevented the JavaScript on their server from performing it's content replacing/link insertion, and the link and inline popup disappeared. Funnily enough, the script didn't seem to take effect in any other browsers I have installed on my notebook: IE 6, Opera 7.5 or Mozilla 1.7! If it works in these browsers on your setup I'd love to know.</p>
<p><a href="http://adblock.mozdev.org"><img src='/blog/wp-content/uploads/2008/03/clickhere3.gif' alt='remove me!' style="padding: 0px 0px 10px 10px; float: right" /></a>If you do <a href="http://downloads.mozdev.org/adblock/adblock-0.5-dev.xpi">install Adblock</a>, which I <strong>highly</strong> recommend to all Firefox/Mozilla browser users, then you can get started with downloading and importing my filter set: <a href="/content/coda_adblock.txt">grab it here</a> (.txt). It's mostly based around the sites I visit, but generic enough to benefit most users I think. It should be relatively simply to import this text file into Adblock, in Firefox you simply go to 'Tools &gt; Adblock &gt; Preferences &gt; Adblock Options &gt; Import filters...' and find the downloaded text file.</p>
<p>Hopefully you'll receive as much pleasure from disabling annoying advertising content as much as I do! I find reading articles much easier - no ugly, distracting ad interruptions - and the page will download much faster too since all the ad imagery is completely blocked.</p>
<img src="/blog/?ak_action=api_record_view&id=637&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://coda.co.za/blog/2005/01/15/adblock-for-firefox/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Ad blocking with Mozilla</title>
		<link>http://coda.co.za/blog/2003/10/23/ad-blocking-with-mozilla</link>
		<comments>http://coda.co.za/blog/2003/10/23/ad-blocking-with-mozilla#comments</comments>
		<pubDate>Thu, 23 Oct 2003 15:58:54 +0000</pubDate>
		<dc:creator>coda</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ad blocking]]></category>
		<category><![CDATA[adblock]]></category>
		<category><![CDATA[advertising]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://coda.co.za/blog/2003/10/23/ad-blocking-with-mozilla</guid>
		<description><![CDATA[I've referred to the Mozilla project fifty five (56 now) times on this site in the past, because for me it's the most exciting cross-platform OS application that has successfully reached a mainstream audience, even if it's market penetration has been relatively slow. I know that most of you reading this are using Internet Explorer, [...]]]></description>
			<content:encoded><![CDATA[<p>I've referred to the <a href="http://www.mozilla.org" title="Mozilla is an open-source web browser, designed for standards compliance, performance and portability">Mozilla</a> project <a href="/blog?s=mozilla" title="search for 'mozilla'">fifty five</a> (56 now) times on this site in the past, because for me it's the most exciting cross-platform <acronym title="Open Source">OS</acronym> application that has successfully reached a mainstream audience, even if it's market penetration has been relatively slow. I know that most of you reading this are using Internet Explorer, by choice or not, and am hoping that by now those of you who are, have thought up a defence for your brain-dead decision ;) - if so I'd love to hear it.</p>
<p>Anyway, this week I've re-discovered probably one of the most under utilized features of the Mozilla browsers, despite having mentioned it here <a href="/archive/20030820/18:35:12/" title="archive link">before</a>: <a href="http://www.deftone.com/blogzilla/archives/ad_blocking.html" title="Blogzilla - a blog about Mozilla: Ad Blocking">Ad Blocking</a>.</p>
<p>There's nothing more annoying that a flashing banner ad placed <em>smack-bam!!</em> right in the middle of an article you were trying to read. Nobody likes banner ads. So having applied the <a href="http://www.deftone.com/blogzilla/archives/ad_blocking.html">multiple ad-blocking techniques</a> described by Blogzilla, I've decided to provide the following quick demonstration: a <a href="/blog/wp-content/uploads/2008/04/mtv_before.gif" title="MTV.com before ad-blocking" />before</a> and <a href="/blog/wp-content/uploads/2008/04/mtv_after.gif" title="MTV.com after ad-blocking" />after</a> scenario of a randomnly-chosen *wink* <em>MTV.com</em> article page.</p>
<p>Gaming site <a href="http://www.ign.com" title="IGN Games delivers daily content that tells you everything going on in the world of gaming."><em>IGN.com</em></a> is also notoriously bad for it's ads - you have to see a huge ad even before entering the site (it will cost you to disable it), while upon entering you're faced with a horde of ads and popup windows. See the <a href="/blog/wp-content/uploads/2008/04/ign_before.gif" title="IGN.com before ad-blocking" />before</a> and <a href="/blog/wp-content/uploads/2008/04/ign_after.gif" title="IGN.com after ad-blocking" />after</a>.</p>
<p>It works just as well on other sites: <em>CNN.com</em> <a href="/blog/wp-content/uploads/2008/04/cnn_before.gif" title="CNN.com before ad-blocking" />before</a> and <a href="/blog/wp-content/uploads/2008/04/cnn_after.gif" title="CNN.com after ad-blocking" />after</a> if you're still not convinced.</p>
<p>Using a personalised <em>userContent.css</em> file (based on <a href="http://www.floppymoose.com" title="Better Ad Blocking for Mozilla and Netscape 7">this one</a>) and by enabling the other ad-blocking preferences, Mozilla successfully hides all banner ads from displaying.</p>
<p>It's ridiculous that websites offer it's users, who unfortunately don't know any better, the chance to remove banner ads as an incentive to subscribe to their services, when Mozilla does just that at no cost: it gives it's end-users the power and control to personalize how they experience the web.</p>
<img src="/blog/?ak_action=api_record_view&id=474&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://coda.co.za/blog/2003/10/23/ad-blocking-with-mozilla/feed</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>

