<?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>BarelyBlogging &#187; Search</title>
	<atom:link href="http://www.barelyfitz.com/blog/archives/category/search/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.barelyfitz.com/blog</link>
	<description>Patrick Fitzgerald of BarelyFitz Designs</description>
	<lastBuildDate>Thu, 13 Oct 2011 01:55:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Bookmarklet to search current site using Google</title>
		<link>http://www.barelyfitz.com/blog/archives/2006/04/10/321/</link>
		<comments>http://www.barelyfitz.com/blog/archives/2006/04/10/321/#comments</comments>
		<pubDate>Mon, 10 Apr 2006 15:56:36 +0000</pubDate>
		<dc:creator>pat</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[bookmarklet]]></category>

		<guid isPermaLink="false">http://www.barelyfitz.com/blog/archives/2006/04/10/321/</guid>
		<description><![CDATA[(This has been done before, but I&#8217;m putting my own spin on it.)
I often use Google to search a particular website, using &#8220;site:example.com&#8221; and my search terms. It gets a bit tedious entering &#8220;site:example.com&#8221;, so I made the following bookmarklet:

Search Current Site Bookmarklet

It prompts for the search terms, automatically adds the &#8220;site:&#8221; keyword and domain [...]]]></description>
			<content:encoded><![CDATA[<p>(This has been done before, but I&#8217;m putting my own spin on it.)</p>
<p>I often use Google to search a particular website, using &#8220;site:example.com&#8221; and my search terms. It gets a bit tedious entering &#8220;site:example.com&#8221;, so I made the following bookmarklet:</p>
<ul>
<li><a href="javascript:(function(){var h,q;h=location.hostname;q=(window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text);q=prompt('Search \''+h+'\' using Google:',q);if(q!=null){if(h){q='site:'+h+' '+q;}location='http://www.google.com/search?q='+encodeURIComponent(q);}})();">Search Current Site Bookmarklet</a></li>
</ul>
<p>It prompts for the search terms, automatically adds the &#8220;site:&#8221; keyword and domain name, then goes to Google. You can select some text on the page before you click the bookmarklet, and your selected text will be used as the default search keywords.</p>
<p>For Firefox just drag-and-drop the link to your bookmarks toolbar. For IE, right-click the link then select &#8220;Add to Favorites&#8230;&#8221; (you might get a warning message since the bookmark contains javascript) then add it to your Links toolbar.</p>
<p>Inspired by: <a href="http://www.squarefree.com/bookmarklets/search.html">Search Bookmarklets</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.barelyfitz.com/blog/archives/2006/04/10/321/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Screencast: Judge a Web App By Its Title</title>
		<link>http://www.barelyfitz.com/blog/archives/2006/04/06/305/</link>
		<comments>http://www.barelyfitz.com/blog/archives/2006/04/06/305/#comments</comments>
		<pubDate>Thu, 06 Apr 2006 13:02:15 +0000</pubDate>
		<dc:creator>pat</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Blogger]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[UI]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[YKMH]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[information architecture]]></category>
		<category><![CDATA[power user]]></category>
		<category><![CDATA[screencast]]></category>
		<category><![CDATA[usability]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.barelyfitz.com/blog/archives/2006/04/06/305/</guid>
		<description><![CDATA[
The second episode of &#8220;You&#8217;re Killing Me Here!&#8221; (usability and design screencast series) discusses various uses of the page title (HTML TITLE element): in particular how you can use it to communicate with users of your web application.

View the Screencast (2.5 minutes)
]]></description>
			<content:encoded><![CDATA[<div class="shadow"><a href="http://www.barelyfitz.com/screencast/ykmh/"><img id="image276" alt="You're Killing Me Here!" src="http://www.barelyfitz.com/blog/upload/ykmh-logo-small.jpg" /></a></div>
<p>The second episode of &#8220;You&#8217;re Killing Me Here!&#8221; (usability and design screencast series) discusses various uses of the page title (HTML TITLE element): in particular how you can use it to communicate with users of your web application.<br />
<a href="http://www.barelyfitz.com/screencast/ykmh/ykmh-02-title/" /></p>
<p><a href="http://www.barelyfitz.com/screencast/ykmh/ykmh-02-title/">View the Screencast</a> (2.5 minutes)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.barelyfitz.com/blog/archives/2006/04/06/305/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>You&#8217;re Killing Me Here! Web Usability Screencast</title>
		<link>http://www.barelyfitz.com/blog/archives/2006/03/24/277/</link>
		<comments>http://www.barelyfitz.com/blog/archives/2006/03/24/277/#comments</comments>
		<pubDate>Fri, 24 Mar 2006 11:18:56 +0000</pubDate>
		<dc:creator>pat</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[UI]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[YKMH]]></category>
		<category><![CDATA[accessibility]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[information architecture]]></category>
		<category><![CDATA[power user]]></category>
		<category><![CDATA[screencast]]></category>
		<category><![CDATA[usability]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.barelyfitz.com/blog/archives/2006/03/24/277/</guid>
		<description><![CDATA[
Introducing &#8220;You&#8217;re Killing Me Here!&#8221; a series of screencasts discussing web site and web application design, accessibility, and usability from the perspective of a power-user.
The first episode discusses &#8220;type ahead find&#8221; in the Firefox browser and the design implications that come along with it.
View the Screencast
]]></description>
			<content:encoded><![CDATA[<div class="shadow"><a href="http://www.barelyfitz.com/screencast/ykmh/"><img alt="You're Killing Me Here!" id="image276" src="http://www.barelyfitz.com/blog/upload/ykmh-logo-small.jpg" /></a></div>
<p>Introducing &#8220;You&#8217;re Killing Me Here!&#8221; a series of screencasts discussing web site and web application design, accessibility, and usability from the perspective of a power-user.</p>
<p>The first episode discusses &#8220;type ahead find&#8221; in the Firefox browser and the design implications that come along with it.</p>
<p><a href="http://www.barelyfitz.com/screencast/ykmh/ykmh-01-focus/">View the Screencast</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.barelyfitz.com/blog/archives/2006/03/24/277/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Eliminating redisplay flashes in JavaScript</title>
		<link>http://www.barelyfitz.com/blog/archives/2006/03/09/232/</link>
		<comments>http://www.barelyfitz.com/blog/archives/2006/03/09/232/#comments</comments>
		<pubDate>Thu, 09 Mar 2006 14:53:27 +0000</pubDate>
		<dc:creator>pat</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[DHTML]]></category>
		<category><![CDATA[GUI]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[Tabs]]></category>
		<category><![CDATA[UI]]></category>
		<category><![CDATA[accessibility]]></category>
		<category><![CDATA[tabber]]></category>

		<guid isPermaLink="false">http://www.barelyfitz.com/blog/archives/2006/03/09/232/</guid>
		<description><![CDATA[The Holy Grail in creating dynamic HTML is to have a page that works perfectly even when JavaScript is disabled. You want your page to be beautiful and dynamic, but you also want it to be accessible, search-engine optimized, and printable.
To make this happen you start with plain, semantic HTML, then you add a JavaScript [...]]]></description>
			<content:encoded><![CDATA[<p>The Holy Grail in creating dynamic HTML is to have a page that works perfectly even when JavaScript is disabled. You want your page to be beautiful and dynamic, but you also want it to be accessible, search-engine optimized, and printable.</p>
<p>To make this happen you start with plain, semantic HTML, then you add a JavaScript layer to rework the page into something better:</p>
<p><img alt="JavaScript vs. No JavaScript" src="http://www.barelyfitz.com/blog/upload/js-vs-no-js.gif" /></p>
<p>One problem with this technique is that your JavaScript must run <em>after</em> the HTML has been set up and rendered on the page, so a user with a slow connection might see something like this using my <a href="http://www.barelyfitz.com/projects/tabber/">JavaScript tabbifier</a>:</p>
<p><img alt="Animated simulation of HTML rendered then re-rendering using JavaScript" src="http://www.barelyfitz.com/blog/upload/flashing-anim.gif" /></p>
<p>This is not too pretty, so obviously we want to make it stop.</p>
<p>Your first thought might be &#8220;I&#8217;ll just add a style to the content to make it hidden (CSS display:none), then my JavaScript will run and reveal it!&#8221;  But that puts a big crack in our Holy Grail, because if you use CSS to hide the content, it will not be visible to users who do not have JavaScript.</p>
<p>Here&#8217;s the method I used:</p>
<ol>
<li>Add a class <em>javascript-hide-me</em> to the content you need to hide, but do not define that class in your CSS.</li>
<li><em>Before</em> the content, use JavaScript to define the CSS class. The easiest way to do this is by using document.write in the head section of the page, but you will have to directly modify the DOM if you are serving XHTML pages that use MIME type application/xhtml+xml.</li>
<li><em>After</em> the content has been transformed, use JavaScript to remove the CSS class and reveal the content.</li>
</ol>
<p>Here are two examples, one that exhibits the flashing problem, and another that fixes it using the technique described above. Note that in order to see the flashing problem, you need a slow internet connection: I recommend throttling your connection using the excellent <a href="http://www.xk72.com/charles/">Charles Web Debugging Proxy</a>.</p>
<ul>
<li><a href="http://www.barelyfitz.com/projects/flashing-javascript/flashing.html">flashing</a></li>
<li><a href="http://www.barelyfitz.com/projects/flashing-javascript/no-flashing.html">flashing fixed</a></li>
</ul>
<h3>Updates 2006-03-09</h3>
<p>Welcome, <a href="http://ajaxian.com/archives/eliminating-redisplay-flashes-in-javascript">Ajaxians</a>!</p>
<p>Bobby <a href="http://www.bobbyvandersluis.com/articles/dynamicCSS.php">describes</a> an alternate technique in case you are serving XHTML pages that use MIME type application/xhtml+xml.</p>
<p><a href="http://mrclay.org/">Steve Clay</a> makes a valid point that we should check for DOM compatibility before writing the styles on the page.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.barelyfitz.com/blog/archives/2006/03/09/232/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

