<?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>Waterfall Web &#187; Coding</title>
	<atom:link href="http://www.waterfallweb.net/archives/category/coding/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.waterfallweb.net</link>
	<description>website design, development, marketing and management (and the odd gadget)</description>
	<lastBuildDate>Tue, 23 Feb 2010 10:42:05 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Displaying a gallery description using NextGen Gallery for Wordpress</title>
		<link>http://www.waterfallweb.net/archives/2009/03/displaying-a-gallery-description-using-nextgen-gallery-for-wordpress/</link>
		<comments>http://www.waterfallweb.net/archives/2009/03/displaying-a-gallery-description-using-nextgen-gallery-for-wordpress/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 07:29:59 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[nextgen]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.waterfallweb.net/?p=212</guid>
		<description><![CDATA[Been battling with the excellent NextGen gallery plugin for Wordpress this afternoon.
I had created an Album, which is a container for mutiple Galleries. Simple enough. But then, once you had selected a Gallery, I wanted to display the Gallery description on the Gallery page above the thumbnails.
In the Manage gallery section you can type a [...]]]></description>
			<content:encoded><![CDATA[<p>Been battling with the excellent <a href="http://wordpress.org/extend/plugins/nextgen-gallery/">NextGen gallery plugin</a> for Wordpress this afternoon.</p>
<p>I had created an Album, which is a container for mutiple Galleries. Simple enough. But then, once you had selected a Gallery, I wanted to display the Gallery description on the Gallery page above the thumbnails.</p>
<p>In the Manage gallery section you can type a description, but it didn&#8217;t seem there was any way to display that on the actual website.</p>
<p>So if you need to, open the file gallery.php which is inside the plugins directory, <code>nextgen-gallery/view/gallery.php</code></p>
<p>Next, above the line<br />
<code>&lt;div class="ngg-galleryoverview" id="ngg-gallery-&lt;?php echo $gallery-&gt;ID ?&gt;"&gt;</code><br />
add this:<br />
<code>&lt;h2&gt;&lt;?php echo $gallery-&gt;title; ?&gt;&lt;/h2&gt;<br />
&lt;p class="gallery-desc"&gt;&lt;?php echo nl2br($gallery-&gt;description); ?&gt;&lt;/p&gt;</code></p>
<p>This will give you an H2 with the Gallery Title, and then the description below it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.waterfallweb.net/archives/2009/03/displaying-a-gallery-description-using-nextgen-gallery-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>EasyPHP 3 and mod_rewrite gotchas</title>
		<link>http://www.waterfallweb.net/archives/2009/01/easyphp-3-and-mod_rewrite-gotchas/</link>
		<comments>http://www.waterfallweb.net/archives/2009/01/easyphp-3-and-mod_rewrite-gotchas/#comments</comments>
		<pubDate>Tue, 13 Jan 2009 05:43:08 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[webserver]]></category>

		<guid isPermaLink="false">http://www.waterfallweb.net/?p=208</guid>
		<description><![CDATA[Just got a new server in the office so updated to the latest EasyPHP &#8211; version 3. However, all was not smooth:

At first I kept getting a &#8220;permission denied&#8221; error &#8211; you&#8217;ll need to search the httpd.conf file for the &#60;Directory /&#62; container and get rid of Deny from all. (Or at least comment it [...]]]></description>
			<content:encoded><![CDATA[<p>Just got a new server in the office so updated to the latest <a href="http://www.easyphp.org">EasyPHP</a> &#8211; version 3. However, all was not smooth:</p>
<ol>
<li>At first I kept getting a &#8220;permission denied&#8221; error &#8211; you&#8217;ll need to search the <em>httpd.conf</em> file for the &lt;Directory /&gt; container and get rid of <code>Deny from all</code>. (Or at least comment it out, anyway.)</li>
<li>The mod-rewrite wouldn&#8217;t work. Two steps to fix this:
<ol>
<li>Search <em>httpd.conf</em> for <em>mod_rewrite</em> and uncomment the <code>LoadModule</code> line.</li>
<li>Search for <em>AllowOverride</em>. There should be two instances where you need to change <code>None</code> to <code>All</code>. (<a href="http://drupal.org/node/187003">Source</a>)</li>
</ol>
</li>
</ol>
<p>Now I can get back to work!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.waterfallweb.net/archives/2009/01/easyphp-3-and-mod_rewrite-gotchas/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>The Email Standards Project</title>
		<link>http://www.waterfallweb.net/archives/2007/11/the-email-standard-project/</link>
		<comments>http://www.waterfallweb.net/archives/2007/11/the-email-standard-project/#comments</comments>
		<pubDate>Wed, 28 Nov 2007 22:40:28 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[General Commentry]]></category>
		<category><![CDATA[Marketing]]></category>
		<category><![CDATA[Design]]></category>

		<guid isPermaLink="false">http://www.waterfallweb.net/archives/2007/11/the-email-standard-project/</guid>
		<description><![CDATA[Many years ago the Web Standards Project (or WASP) fought the fine fight to pressure browser manufacturers into complying with some sort of standard version of HTML. Prior to that we almost had to build separate sites for Netscape and Internet Explorer &#8211; it was horrible.
We have come so far with browsers, but unfortunately most [...]]]></description>
			<content:encoded><![CDATA[<p>Many years ago the <a href="http://www.webstandards.org/">Web Standards Project</a> (or WASP) fought the fine fight to pressure browser manufacturers into complying with some sort of standard version of HTML. Prior to that we almost had to build separate sites for Netscape and Internet Explorer &#8211; it was horrible.</p>
<p>We have come so far with browsers, but unfortunately most email clients are, well, a long way behind. If you have ever tested an HTML email in a few different clients you&#8217;ll know the frustration.<br />
Yesterday&#8217;s launch of the <a href="http://www.email-standards.org/">Email Standards Project</a> hopes to remedy this situation. Some people love it, some hate it, but HTML email is here to stay. And if we could have the proper standards support in email clients then it&#8217;s probably fair to say that a lot of those opposed would change their mind.</p>
<p>We have a long way to go, but at least now we have a vehicle!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.waterfallweb.net/archives/2007/11/the-email-standard-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Radio Buttons to Combat Form Spam</title>
		<link>http://www.waterfallweb.net/archives/2007/10/using-radio-buttons-to-combat-form-spam/</link>
		<comments>http://www.waterfallweb.net/archives/2007/10/using-radio-buttons-to-combat-form-spam/#comments</comments>
		<pubDate>Wed, 10 Oct 2007 07:53:45 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://www.waterfallweb.net/archives/2007/10/using-radio-buttons-to-combat-form-spam/</guid>
		<description><![CDATA[There has been a lot of talk lately (and rightly so) about the disadvantages of using captcha to stop comment spam.
I&#8217;m not a big fan. They&#8217;re often hard to read even for someone with reasonably normal vision.
&#8220;Is that a zero or the letter O?&#8221;
&#8220;Upper case C or lower case c?&#8221;
Others have suggested some sort of [...]]]></description>
			<content:encoded><![CDATA[<p>There has been a lot of talk lately (and rightly so) about the disadvantages of using <a href="http://en.wikipedia.org/wiki/Captcha">captcha</a> to stop comment spam.</p>
<p>I&#8217;m not a big fan. They&#8217;re often hard to read even for someone with reasonably normal vision.</p>
<p>&#8220;Is that a zero or the letter O?&#8221;</p>
<p>&#8220;Upper case C or lower case c?&#8221;</p>
<p>Others have suggested some sort of simple logic question, like asking &#8220;What&#8217;s 1+1&#8243; and having the user enter a &#8216;2&#8242; in a text box.</p>
<p>That might be better, but it also requires some thought.</p>
<p>So I noticed that on <a href="http://www.slideshare.net/">Slideshare </a>they prefix a captcha device with the question, &#8220;Are you human?&#8221;</p>
<p>And it got me thinking, can bots deal with radio buttons? Can we ask a question like this?</p>
<pre class="html4strict" style="background:#fff;"><span style="color: #009900;"><a href="http://december.com/html/4/element/form.html"><span style="color: #000000; font-weight: bold;">&lt;form&gt;</span></a></span>
Are you human?<span style="color: #009900;"><a href="http://december.com/html/4/element/br.html"><span style="color: #000000; font-weight: bold;">&lt;br</span></a> /<span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">&lt;input</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"radio"</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"Human"</span>
	<span style="color: #000066;">value</span>=<span style="color: #ff0000;">"No"</span> <span style="color: #000066;">checked</span>=<span style="color: #ff0000;">"checked"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span>
	No, I'm a spam robot<span style="color: #009900;"><a href="http://december.com/html/4/element/br.html"><span style="color: #000000; font-weight: bold;">&lt;br</span></a> /<span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">&lt;input</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"radio"</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"Human"</span>
	<span style="color: #000066;">value</span>=<span style="color: #ff0000;">"Yes"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span>
	Yes, I am human <span style="color: #009900;"><a href="http://december.com/html/4/element/br.html"><span style="color: #000000; font-weight: bold;">&lt;br</span></a> /<span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/form&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/body&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/html&gt;</span></span></pre>
<p><strong>Download this code: </strong><a href="http://www.waterfallweb.net/code/human_form.htm">human_form.htm</a></p>
<p><img title="Human Radio Buttons" id="image195" alt="Human Radio Buttons" src="http://www.waterfallweb.net/wp-content/uploads/2007/10/human-radio-buttons.jpg" /></p>
<p>I must admit I haven&#8217;t done any research, but I&#8217;m thinking:</p>
<ol>
<li>If a bot doesn&#8217;t understand radio buttons it will skip the question and fail</li>
<li>If it does understand radio buttons, it will probably choose the first option and fail</li>
<li>It&#8217;s an extremely simple question for a human to answer and should be completely accessible.</li>
</ol>
<p>Point 2 is probably the most contentious. I&#8217;m making a big assumption there.</p>
<p>Has anyone else tried this? Can anyone spot any obvious disadvantages?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.waterfallweb.net/archives/2007/10/using-radio-buttons-to-combat-form-spam/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>WAMP &#8211; No More Messing Around</title>
		<link>http://www.waterfallweb.net/archives/2007/03/wamp-no-more-messing-around/</link>
		<comments>http://www.waterfallweb.net/archives/2007/03/wamp-no-more-messing-around/#comments</comments>
		<pubDate>Fri, 02 Mar 2007 22:06:07 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://www.waterfallweb.net/archives/2007/03/wamp-no-more-messing-around/</guid>
		<description><![CDATA[Thanks to Schmeegs for this &#8211; a very simple, straight-forward was to get Apache/MySQL/PHP running on your Windows box.
EasyPHP. Worked straight away for me without having to do anything!
Any if you do need to customise it, a little interface makes that pretty simple, too.
]]></description>
			<content:encoded><![CDATA[<p>Thanks to <a href="http://theicecap.net/">Schmeegs</a> for this &#8211; a very simple, straight-forward was to get Apache/MySQL/PHP running on your Windows box.</p>
<p><a href="http://www.easyphp.org/?lang=en">EasyPHP</a>. Worked straight away for me without having to do anything!</p>
<p>Any if you do need to customise it, a little interface makes that pretty simple, too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.waterfallweb.net/archives/2007/03/wamp-no-more-messing-around/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Outlook 2007: One step forward, 20 steps back</title>
		<link>http://www.waterfallweb.net/archives/2007/01/outlook-2007-one-step-forward-20-steps-back/</link>
		<comments>http://www.waterfallweb.net/archives/2007/01/outlook-2007-one-step-forward-20-steps-back/#comments</comments>
		<pubDate>Thu, 11 Jan 2007 04:38:52 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://www.waterfallweb.net/archives/2007/01/outlook-2007-one-step-forward-20-steps-back/</guid>
		<description><![CDATA[Well, just when we had warm and fuzzy feelings towards Microsoft for the improvements in Internet Explorer 7, they go and flush it all down the loo.
If you have to create HTML email, you&#8217;ll be pleased to know that Outlook 2007 won&#8217;t use IE as it&#8217;s rendering engine any more. It uses&#8230; wait for it&#8230; [...]]]></description>
			<content:encoded><![CDATA[<p>Well, just when we had warm and fuzzy feelings towards Microsoft for the improvements in Internet Explorer 7, they go and flush it all down the loo.</p>
<p>If you have to create HTML email, you&#8217;ll be pleased to know that Outlook 2007 won&#8217;t use IE as it&#8217;s rendering engine any more. It uses&#8230; wait for it&#8230; Word! And we all know how good Word is at rendering and creating HTML! (Not!!!)</p>
<p>So instead of getting improved standards support in the next version of Outlook, we take about 20 steps backward instead.</p>
<p>Sheesh&#8230; what are they thinking?</p>
<p><a href="http://www.sitepoint.com/newsletter/viewissue.php?id=3&#038;issue=156#5">Read more here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.waterfallweb.net/archives/2007/01/outlook-2007-one-step-forward-20-steps-back/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Top 5 Command Prompt Tips</title>
		<link>http://www.waterfallweb.net/archives/2006/10/top-5-command-prompt-tips/</link>
		<comments>http://www.waterfallweb.net/archives/2006/10/top-5-command-prompt-tips/#comments</comments>
		<pubDate>Tue, 03 Oct 2006 11:31:33 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[General Commentry]]></category>

		<guid isPermaLink="false">http://www.waterfallweb.net/archives/2006/10/top-5-command-prompt-tips/</guid>
		<description><![CDATA[Typing commands instead of mouse-clicking&#8230; sound a bit old-fashioned? It&#8217;s true, once upon a time all computing was done this way. It may not be pretty, but the command line can still be pretty handy. Here&#8217;s a few commands I use:

PING
If you need to check your connection to something, this is the basic check. You [...]]]></description>
			<content:encoded><![CDATA[<p>Typing commands instead of mouse-clicking&#8230; sound a bit old-fashioned? It&#8217;s true, once upon a time all computing was done this way. It may not be pretty, but the command line can still be pretty handy. Here&#8217;s a few commands I use:</p>
<ol>
<li><strong>PING</strong><br />
If you need to check your connection to something, this is the basic check. You can either ping a name or an IP address.<br />
<code>ping www.sitename.com</code><br />
or<br />
<code>ping 127.0.0.1</code><br />
are both valid. If you ping a name, you can also see what IP address that name resolves to.</li>
<li><strong>TRACERT</strong><br />
This will trace the route to another computer. Again, you can use a name or an IP address.<br />
<code>tracert www.sitename.com</code></li>
<li><strong>SHUTDOWN</strong><br />
This one will shut the computer down. (Pretty obvious, hey!) Really handy to put at the end of a batch file that does a backup or something similar. Heaps of switches, so type <code>shutdown /?</code> to display all the options available.</li>
<li><strong>IPCONFIG</strong> <br />
Displays the IP address of your computer, plus the address of your gateway (eg your ADSL modem or the computer that&#8217;s actually connected to the internet).</li>
<li><strong>XCOPY</strong><br />
Great for quick and easy batch backups. Check <code>xcopy /?</code> for all options available.</li>
</ol>
<p>That&#8217;s 5 that I use a fair bit &#8211; got any others?</p>
<p>If you&#8217;re really bored, here&#8217;s <a href="http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?mfr=true">Microsoft&#8217;s A-Z Reference</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.waterfallweb.net/archives/2006/10/top-5-command-prompt-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>301 Redirects</title>
		<link>http://www.waterfallweb.net/archives/2006/09/301-redirects/</link>
		<comments>http://www.waterfallweb.net/archives/2006/09/301-redirects/#comments</comments>
		<pubDate>Fri, 22 Sep 2006 07:55:51 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[General Commentry]]></category>

		<guid isPermaLink="false">http://www.waterfallweb.net/archives/2006/09/301-redirects/</guid>
		<description><![CDATA[There are thousands of these posts out there already &#8211; I&#8217;m putting this here for my benefit more than anything else. Saves me from having to Google when I need to check how it should be done!
So &#8211; if you move a page and want it to be followed by a search engine (and keep [...]]]></description>
			<content:encoded><![CDATA[<p>There are thousands of these posts out there already &#8211; I&#8217;m putting this here for my benefit more than anything else. Saves me from having to Google when I need to check how it should be done!</p>
<p>So &#8211; if you move a page and want it to be followed by a search engine (and keep it&#8217;s pagerank etc), open up your htaccess file and enter (all on one line):</p>
<p><code>redirect 301 /olddir/oldpage.html http://www.newsite.com.au/newdir/newpage.html</code></p>
<p>Or if you&#8217;re shifting a whole directory (again, all on one line):</p>
<p><code>redirect 301 /olddir/ http://www.newsite.com.au/newdir/</code></p>
<p>The 301 code says &#8220;moved permanently&#8221;, so don&#8217;t use it for temporary redirections. Obviously this htaccess stuff is for linux servers, if you&#8217;re on Windows then there&#8217;s a different way&#8230; But you&#8217;ll have to find that somewhere else!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.waterfallweb.net/archives/2006/09/301-redirects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual jQuery</title>
		<link>http://www.waterfallweb.net/archives/2006/09/visual-jquery/</link>
		<comments>http://www.waterfallweb.net/archives/2006/09/visual-jquery/#comments</comments>
		<pubDate>Thu, 07 Sep 2006 00:26:50 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://www.waterfallweb.net/archives/2006/09/visual-jquery/</guid>
		<description><![CDATA[Not sure how long this has been online, but here&#8217;s a very handy visual reference for jQuery. This is a really cool way to present online documentation &#8211; not much reading required &#8211; just gets you straight to the bits you need.
]]></description>
			<content:encoded><![CDATA[<p>Not sure how long this has been online, but <a href="http://www.visualjquery.com/index.xml">here&#8217;s a very handy visual reference</a> for jQuery. This is a really cool way to present online documentation &#8211; not much reading required &#8211; just gets you straight to the bits you need.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.waterfallweb.net/archives/2006/09/visual-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AHAH! It&#8217;s jQuery!</title>
		<link>http://www.waterfallweb.net/archives/2006/08/ahah-its-jquery/</link>
		<comments>http://www.waterfallweb.net/archives/2006/08/ahah-its-jquery/#comments</comments>
		<pubDate>Tue, 08 Aug 2006 05:11:55 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://www.waterfallweb.net/archives/2006/08/ahah-its-jquery/</guid>
		<description><![CDATA[This was going to be a post about my first stab at AJAX. But, as technically it&#8217;s AHAH, I thought I&#8217;d use the lame title above&#8230;
This snippet uses jQuery &#8211; an excellent little piece of Javascript that makes this sort of trickery relatively simple.
Firstly, have a look at the basic syntax here: jquery.com/docs/ajax
A couple of [...]]]></description>
			<content:encoded><![CDATA[<p>This was going to be a post about my first stab at AJAX. But, as technically it&#8217;s <a href="http://microformats.org/wiki/rest/ahah">AHAH</a>, I thought I&#8217;d use the lame title above&#8230;</p>
<p>This snippet uses <a href="http://jquery.com/">jQuery</a> &#8211; an excellent little piece of Javascript that makes this sort of trickery relatively simple.</p>
<p>Firstly, have a look at the basic syntax here: <a href="http://jquery.com/docs/ajax/">jquery.com/docs/ajax</a></p>
<p>A couple of things that I stumbled on:</p>
<ol>
<li>Content loaded via the .load call doesn&#8217;t have any event handlers attached, so in the Callback function you need to use .find() to look for any elements you want to assign events to.</li>
<li>Getting the ID of the element clicked ended up being pretty simple: this.id</li>
<li>Getting the value of a form field involves a simple walk around the DOM &#8211; as the form isn&#8217;t actually &#8220;Submitted&#8221; &#8211; use document.GetElementById(&#8221;fieldID&#8221;).value</li>
</ol>
<p>Then you should end up with something more-or-less like this:</p>
<p><span id="more-150"></span></p>
<pre class="javascript" style="background:#fff;">&lt;script type=<span style="color: #3366CC;">"text/javascript"</span>&gt;
$<span style="color: #66cc66;">&#40;</span>document<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">ready</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span> <span style="color: #009900; font-style: italic;">// Gets everything set up on page load</span>
	$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"#searchbutton"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">click</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
	  <span style="color: #009900; font-style: italic;">// Search button has been clicked - let's do some AJAX, baby!</span>
	  $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"#animal_table"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">load</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"/includes/catalogue/getlots.php"</span>,<span style="color: #66cc66;">&#123;</span>
		start: <span style="color: #3366CC;">"0"</span>, <span style="color: #009900; font-style: italic;">// pass static values</span>
		year: <span style="color: #3366CC;">"&lt;?php echo $thispage['year']; ?&gt;"</span>, <span style="color: #009900; font-style: italic;">// pass PHP variables</span>
		sire_id: document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"sire_id"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">value</span>
		<span style="color: #009900; font-style: italic;">// or pass element values from a form field or similar</span>
		<span style="color: #66cc66;">&#125;</span>,<span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
	      <span style="color: #009900; font-style: italic;">// search for new &quot;a&quot; elements after .load </span>
		  <span style="color: #009900; font-style: italic;">// is called so loaded stuff can be clicked,</span>
		  <span style="color: #009900; font-style: italic;">// as stuff loaded this way has no event handlers attached</span>
		  $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"#animal_table"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">find</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"a"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">click</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
			$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"#animal_detail"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">load</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"/includes/catalogue/showdetail.php"</span>,<span style="color: #66cc66;">&#123;</span>
			  lot_id: <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">id</span> <span style="color: #009900; font-style: italic;">// pass the ID of whatever link is clicked</span>
			<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span>; <span style="color: #009900; font-style: italic;">// so the link doesn't actually load a new page</span>
		  <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
&lt;/script&gt;
&nbsp;</pre>
<p><strong>Download this code: </strong><a href="http://www.waterfallweb.net/code/ahah-jquery.js">ahah-jquery.js</a></p>
<p>See it in use here: <a href="http://glenfosslyn.com.au/pages/2006-sale/">glenfosslyn.com.au/pages/2006-sale</a> (This is a work in progress &#8211; it may or may not be working at the time you visit!)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.waterfallweb.net/archives/2006/08/ahah-its-jquery/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
