<?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>Scott Robbin &#187; jQuery</title>
	<atom:link href="http://srobbin.com/blog/category/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://srobbin.com/blog</link>
	<description>A variety of articles, projects and by web developer, Scott Robbin.</description>
	<lastBuildDate>Wed, 07 Dec 2011 17:05:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>jQuery Backstretch 1.1 Released</title>
		<link>http://srobbin.com/blog/jquery-backstretch-1-1-released/</link>
		<comments>http://srobbin.com/blog/jquery-backstretch-1-1-released/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 17:28:28 +0000</pubDate>
		<dc:creator>Scott Robbin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[backstretch]]></category>

		<guid isPermaLink="false">http://srobbin.com/blog/?p=813</guid>
		<description><![CDATA[A new version of jQuery Backstretch has been released. It contains a number of fixes and enhancements: Added ‘centeredX’ and &#8216;centeredY&#8217; options. Removed ‘hideUntilReady’ option. It looks pretty bad if you don’t hide the image until it’s fully loaded. Fixed IE img onload bug. Now supports iPhone/iPad orientation changes. Many thanks to Peter Baker for [...]]]></description>
			<content:encoded><![CDATA[<p>A new version of jQuery Backstretch has been released. It contains a number of fixes and enhancements:</p>
<ul>
<li>Added ‘centeredX’ and &#8216;centeredY&#8217; options.</li>
<li>Removed ‘hideUntilReady’ option. It looks pretty bad if you don’t hide the image until it’s fully loaded.</li>
<li>Fixed IE img onload bug.</li>
<li>Now supports iPhone/iPad orientation changes.</li>
</ul>
<p>Many thanks to <a href="http://ptrbkr.com/">Peter Baker</a> for providing the code to center the images.</p>
<p><a href="/jquery-plugins/jquery-backstretch/" class="install">Download Backstretch Now</a></p>
]]></content:encoded>
			<wfw:commentRss>http://srobbin.com/blog/jquery-backstretch-1-1-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easy Full Screen Background Images with jQuery</title>
		<link>http://srobbin.com/blog/easy-full-screen-background-images-with-jquery/</link>
		<comments>http://srobbin.com/blog/easy-full-screen-background-images-with-jquery/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 16:39:35 +0000</pubDate>
		<dc:creator>Scott Robbin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://srobbin.com/blog/?p=527</guid>
		<description><![CDATA[&#8220;There are many like it, but this one is mine.&#8221; A recent Weightshift project, Central, brought about a few development challenges, one of which was background imagery. Naz had designed the page to include photography set behind the content. This raised questions: How would we deal with the additional weight of the images (~150–250K) without [...]]]></description>
			<content:encoded><![CDATA[<p>&#8220;There are many like it, but this one is mine.&#8221;</p>
<p>A recent <a href="http://weightshift.com">Weightshift</a> project, Central, brought about a few development challenges, one of which was background imagery. Naz had designed the page to include <a href="http://www.centralstory.com">photography set behind the content</a>. This raised questions:</p>
<ul>
<li>How would we deal with the additional weight of the images (~150–250K) without dragging down the page’s load time?</li>
<li>Everyone’s browser window will be a different size. How do you determine what is the best/largest size to make the image, so that it fills the entire window?</li>
<li>How do you account for images that are proportioned differently?</li>
</ul>
<p>I did some research and found a few good solutions, though each had its limitations.</p>
<p><a href="http://css-tricks.com/perfect-full-page-background-image/">CSS-based solutions</a> were straightforward, but didn&#8217;t address the requirement of triggering the download only after the page was ready. <a href="http://www.ajaxblender.com/bgstretcher-jquery-stretch-background-plugin.html">Javascript</a> <a href="http://growmedia.ca/blog/2009/10/14/resizable-full-browser-background-image-with-jquery-preserving-aspect-ratio/">solutions</a> addressed the page load requirement, but were often more complex than we needed and required the user to have prior knowledge of the image size (something that we couldn&#8217;t necessarily predict). The final solution was not novel, it was an amalgam of both solutions, implemented in Javascript.</p>
<p>Backstretch is a simple plugin recreated from the code used on Central, derived from the ideas presented in existing CSS and JS solutions. It is meant to be used by those who want a lightweight, minimalist implementation of dynamically-resized background images that can be executed in one line of Javascript, with nothing more than a link to an image.</p>
<p><a class="install" href="http://srobbin.com/jquery-plugins/jquery-backstretch/">Download Backstretch</a><br />
<script type="text/javascript" src="/js/jquery.backstretch.min.js"></script><br />
<script type="text/javascript">
  if( $("#content.single").length == 1)
      $.backstretch("http://farm3.static.flickr.com/2725/4290239913_59c55d6896_o.jpg");
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://srobbin.com/blog/easy-full-screen-background-images-with-jquery/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>jQuery PageSlide v1.1 Released</title>
		<link>http://srobbin.com/blog/jquery-pageslide-v11-released/</link>
		<comments>http://srobbin.com/blog/jquery-pageslide-v11-released/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 17:16:36 +0000</pubDate>
		<dc:creator>Scott Robbin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://srobbin.com/blog/?p=280</guid>
		<description><![CDATA[A huge thank you to Derek Perez, who has taken over development of the jQuery PageSlide plug-in. He&#8217;s done a major overhaul and brought it up to version 1.1 with the following new features: Choose slide direction (left or right) Custom width slides Modal slides unobtrusive Mutiple slide definitions on the same page Fully supported [...]]]></description>
			<content:encoded><![CDATA[<p>A huge thank you to <a title="Derek Perez" href="http://derekperez.com/blog/">Derek Perez</a>, who has taken over development of the jQuery PageSlide plug-in. He&#8217;s done a major overhaul and brought it up to <a title="jQuery PageSlide v1.1" href="http://github.com/srobbin/jquery-pageslide/tree/release-1.1">version 1.1</a> with the following new features:</p>
<ul>
<li>Choose slide direction (left or right)</li>
<li>Custom width slides</li>
<li>Modal slides</li>
<li>unobtrusive</li>
<li>Mutiple slide definitions on the same page</li>
<li>Fully supported with IE7+, FireFox 2+, Safari 2+</li>
<li>Minified version included!</li>
</ul>
<p><a href="http://github.com/srobbin/jquery-pageslide/tree/release-1.1">Link</a></p>
]]></content:encoded>
			<wfw:commentRss>http://srobbin.com/blog/jquery-pageslide-v11-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery PageSlide</title>
		<link>http://srobbin.com/blog/jquery-pageslide/</link>
		<comments>http://srobbin.com/blog/jquery-pageslide/#comments</comments>
		<pubDate>Wed, 07 Jan 2009 16:04:30 +0000</pubDate>
		<dc:creator>Scott Robbin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[UI]]></category>

		<guid isPermaLink="false">http://halobrite.com/blog/?p=70</guid>
		<description><![CDATA[<p>As web developers, we spend precious time laying out our pages, using every UI concept in the book to conserve space, while trying to maintain a user's focus on the task at hand. There are many techniques to use — Lightbox, Carousel and Tabs to name a few — and today I hope to offer up another: jQuery pageSlide.</p>]]></description>
			<content:encoded><![CDATA[<p><a class="download-now" title="Download jQuery PageSlide" href="https://github.com/srobbin/jquery-pageslide/zipball/v2.0">Download Now</a></p>

<p>Nowadays, it might be accurate to say that screen real estate is worth more than <em>actual</em> real estate.</p>

<p>As web developers, we spend precious time laying out our pages, using every UI concept in the book to conserve space, while trying to maintain a user's focus on the task at hand. There are many techniques to use &mdash; Lightbox, Carousel and Tabs to name a few &mdash; and today I hope to offer up another: jQuery PageSlide.</p>

<p>jQuery PageSlide was inspired by the UI work of Aza Raskin. In his recent posts regarding concepts for <a href="http://www.azarask.in/blog/post/firefox-mobile-concept-video/" title="Firefox Mobile">Firefox Mobile</a> and <a href="http://www.azarask.in/blog/post/can-ubiquity-be-used-only-with-the-mouse/" title="Mouse-based Ubiquity"> a mouse-based Ubiquity</a>, Aza introduced the idea of sliding (or &quot;throwing&quot;) content aside to reveal a secondary content pane.</p>

<p><img src="http://farm5.static.flickr.com/4005/4690865748_8b047d764f_o.png" style="border: 1px solid black" alt="jQuery PageSlide Screenshot" title="jQuery PageSlide Diagram" /></p>

<p>This plugin allows any developer to recreate a similar interaction on their own website using a few simple lines of Javascript. By attaching the method to an anchor tag, PageSlide adds the ability to move your page and display a secondary interaction pane. The slide is animated whenever the click event is invoked.</p>


<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
    $<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'a'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">pageslide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>




<p>Similar to <a href="http://en.wikipedia.org/wiki/Lightbox_(JavaScript)" title="Lightbox">Lightbox</a>, PageSlide has two major advantages:</p>
<ol>
	<li>The primary window is reserved for content; secondary interactions do not require additional space on the page &mdash; the area they need is created and removed on demand.</li>
	<li>Because the user can see the original window, they have a greater likelihood of retaining focus, and can easily return to the previous task.</li>
</ol>
</p>

<h2>Can I See It In Action?</h2>
<p>Of course, you can! <a href="/demos/jquery-pageslide/secondary_page.htm" class="pageslide" title="PageSlide Demo">Click for a PageSlide demo.</a></p>

<h2>Where Do I Get It?</h2>
<p>I've setup a <a href="http://github.com/srobbin/jquery-pageslide" title="GitHub: jquery-pageslide">GitHub project for jquery-pageslide</a>.</p>

<link rel="stylesheet" type="text/css" href="/css/jquery.pageslide.css" />
<script type="text/javascript" src="/js/jquery.pageslide.min.js"></script>
<script type="text/javascript">
        $(document).ready(function() {
            $('a.pageslide').pageslide({ direction: "left" });
        });
</script>]]></content:encoded>
			<wfw:commentRss>http://srobbin.com/blog/jquery-pageslide/feed/</wfw:commentRss>
		<slash:comments>105</slash:comments>
		</item>
	</channel>
</rss>

