<?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>John McCollum &#187; Search</title>
	<atom:link href="http://johnmc.co/llum/tag/search/feed/" rel="self" type="application/rss+xml" />
	<link>http://johnmc.co/llum</link>
	<description>Muddling through since 1980</description>
	<lastBuildDate>Thu, 02 Sep 2010 21:12:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to build search into your site with JQuery and Yahoo!</title>
		<link>http://johnmc.co/llum/how-to-build-search-into-your-site-with-jquery-and-yahoo/</link>
		<comments>http://johnmc.co/llum/how-to-build-search-into-your-site-with-jquery-and-yahoo/#comments</comments>
		<pubDate>Thu, 31 Jul 2008 21:06:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[Yahoo]]></category>

		<guid isPermaLink="false">http://johnmccollum.co.uk/?p=36</guid>
		<description><![CDATA[Yahoo have a hard time fighting off the image of being bridesmaid to Google&#8217;s bride. However, they have a decided knack for turning out really cool developer toys! For example, check out the Yahoo User Interface library, Yahoo Pipes, or their latest baby, Yahoo BOSS. Short for &#8216;Build your Own Search Service&#8217;, Yahoo have pretty [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fjohnmc.co%2Fllum%2Fhow-to-build-search-into-your-site-with-jquery-and-yahoo%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fjohnmc.co%2Fllum%2Fhow-to-build-search-into-your-site-with-jquery-and-yahoo%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Yahoo have a hard time fighting off the image of being bridesmaid to Google&#8217;s bride. However, they have a decided knack for turning out really cool developer toys! For example, check out the <a href="http://developer.yahoo.com/yui/">Yahoo User Interface library</a>, <a href="http://pipes.yahoo.com/pipes/">Yahoo Pipes</a>, or their latest baby, <a href="http://developer.yahoo.com/search/boss/">Yahoo BOSS</a>.</p>
<p>Short for &#8216;Build your Own Search Service&#8217;, Yahoo have pretty much opened up their entire search service via an API. With an unrestricted number of queries, and complete control over presentation of results, you can really go to town with this one!</p>
<p>Getting started is easy; simply get yourself an <a href="http://developer.yahoo.com/wsregapp/">API key here</a>. Go on, I&#8217;ll wait.</p>
<p>With that done, anyone with basic knowledge of <a href="http://johnmccollum.co.uk/category/php/">PHP</a> and <a href="http://johnmccollum.co.uk/category/jquery/">JQuery</a> can easily build a search application!</p>
<p><a href="http://johnmccollum.co.uk/boss/">Check out my demonstration here.</a></p>
<p>There are two pages involved in this demonstration. The first page displays the form, and contains the necessary JQuery code to fire off an AJAX request to the second page. The second page takes the posted value, fires off a request to the API, and returns the result.</p>
<p>Without further ado, here&#8217;s the JQuery:<br />
<pre><pre>&nbsp;&nbsp;&nbsp;&nbsp;$(document).ready(function(){
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(&#039;#results&#039;).hide();

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(&#039;#search&#039;).click(function(){
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(&#039;#results&#039;).hide();
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;searchterm = $(&#039;#searchterm&#039;).val();
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$.post(&#039;getresult.php&#039;, {query: searchterm}, function(data){
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(&#039;#results&#039;).html(data).show(&#039;slow&#039;);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;})
&nbsp;&nbsp;&nbsp;&nbsp;})</pre></pre><br />
Nothing too horrendous here; hide the results division, grab the term to be searched for, fire off an AJAX request, and put the returned data in the results div. Show it slloooooowly. <img src='http://johnmc.co/llum/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The code in &#8216;getresult.php&#8217; isn&#8217;t much more complex; <a href="http://johnmccollum.co.uk/boss/getresult.txt">you can see it here.</a></p>
<p>That&#8217;s all there is to it! (At least for this very basic example.)</p>
<p>Once again, <a href="http://johnmccollum.co.uk/boss/">you can see a demonstration here</a>.</p>
<p>I&#8217;m sure there must be loads of ideas for mashups out there; let&#8217;s hear some of your thoughts!</p>
]]></content:encoded>
			<wfw:commentRss>http://johnmc.co/llum/how-to-build-search-into-your-site-with-jquery-and-yahoo/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>New search engine launches, sucks</title>
		<link>http://johnmc.co/llum/new-search-engine-launches-sucks/</link>
		<comments>http://johnmc.co/llum/new-search-engine-launches-sucks/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 20:29:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[usability]]></category>
		<category><![CDATA[Cuil]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[Search Engine]]></category>

		<guid isPermaLink="false">http://johnmccollum.co.uk/?p=29</guid>
		<description><![CDATA[Today sees the launch of Cuil (pronounced &#8216;Cool&#8217;), a brand new search engine launched by ex-Google employees. So far, the launch has not gone smoothly. Having tested it quite a bit today I can report the following: It&#8217;s really, really slow just now. Probably just teething issues, but not a good sign. &#8220;No results because [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fjohnmc.co%2Fllum%2Fnew-search-engine-launches-sucks%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fjohnmc.co%2Fllum%2Fnew-search-engine-launches-sucks%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Today sees the launch of <a href="http://www.cuil.com">Cuil</a> (pronounced &#8216;Cool&#8217;), a brand new search engine launched by ex-Google employees.</p>
<p>So far, the launch has not gone smoothly. Having tested it quite a bit today I can report the following:</p>
<ul>
<li>It&#8217;s really, really slow just now. Probably just teething issues, but not a good sign.</li>
<li>&#8220;No results because of high load&#8230;Due to excessive load, our servers didn&#8217;t return results. Please try your search again.&#8221;</li>
<li>Nasty interface. A three column layout for results by default (ew!) means that I don&#8217;t immediately know where there most relevant results are. I&#8217;ve been trained to read search results top to bottom since the days of AltaVista &#8211; I am supposed to be reading left to right? One column then the other?</li>
<li>Related searches at the top, and related categories on the right. Wha? Where? Who?</li>
<li>Their about us page returns a 403 forbidden error!</li>
<li>Thumbnails for search results that don&#8217;t relate to the content (for example, <a href="http://www.cuil.com/search?q=superstring+theory">superstring theory</a> &#8211; NSFW! Well spotted by digger <a href="http://digg.com/users/crypticlabs">Crypticlabs</a>)</li>
</ul>
<p>The performance issue on day one are forgivable; the usability issues less so. With excessive AJAX, and the issues mentioned above, the site is uncomfortable to use, at best.</p>
<p>Having said all that, I hope they do manage to provide an alternative to Google; everyone will benefit from a more competitive search market (rather than <a href="http://www.marketingpilgrim.com/2007/05/google-market-share-up-again.html">Google eating an ever-increasing slice of the pie</a>), and their committment to privacy is laudable.</p>
<p>However, they&#8217;ve got a long, long way to go before they can match the power and simplicity of the big G.</p>
<p>Have you tried Cuil yet? What have your experiences been like?</p>
]]></content:encoded>
			<wfw:commentRss>http://johnmc.co/llum/new-search-engine-launches-sucks/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
