<?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>benmacgowan &#187; jQuery</title>
	<atom:link href="http://benmacgowan.co.uk/category/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://benmacgowan.co.uk</link>
	<description>Web Developer with an unhealthy love for HTML, CSS &#38; jQuery</description>
	<lastBuildDate>Tue, 27 Apr 2010 18:32:48 +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>Usability Do’s And Don’ts For Interactive Design</title>
		<link>http://benmacgowan.co.uk/2010/04/27/usability-do%e2%80%99s-and-don%e2%80%99ts-for-interactive-design/</link>
		<comments>http://benmacgowan.co.uk/2010/04/27/usability-do%e2%80%99s-and-don%e2%80%99ts-for-interactive-design/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 18:32:48 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Usability]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://benmacgowan.co.uk/?p=299</guid>
		<description><![CDATA[We often talk about how to make our websites more usable, whether it&#8217;s tweaking the HTML structure of pages to benefit the user’s process or figuring out how best to display a message via CSS. But we never bring this thought process into our jQuery-based (and other JavaScript-based) elements. How can we enhance the user [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>We often talk about how to make our websites more usable, whether it&#8217;s tweaking the HTML structure of pages to benefit the user’s process or figuring out how best to display a message via CSS. But we never bring this thought process into our jQuery-based (and other JavaScript-based) elements. How can we enhance the user experience and usability of our jQuery events?</p>
<p>Below, we&#8217;ll briefly discuss ways to look at the code and the result of our interactive designs and, thus, improve their usability. Most if not all jQuery is fired through events from the user, whether it&#8217;s loading new content, posting forms or simply modifying the presentation of an item. Such events are fired through a click from the user.</p></blockquote>
<p><a title="Usability Do's And Don'ts For Interactive Design" href="http://www.smashingmagazine.com/2010/04/27/usability-dos-and-donts-for-interactive-design/">Read my article on how to make your interactive design and jQuery more usable at Smashing Magazine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://benmacgowan.co.uk/2010/04/27/usability-do%e2%80%99s-and-don%e2%80%99ts-for-interactive-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Back to school</title>
		<link>http://benmacgowan.co.uk/2010/03/18/back-to-school/</link>
		<comments>http://benmacgowan.co.uk/2010/03/18/back-to-school/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 22:07:50 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Usability]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://benmacgowan.co.uk/?p=290</guid>
		<description><![CDATA[Having been a Front-End Web Developer for the last 2 years, I have come to the decision that I want to go back to education — of sorts. I won’t be leaving my job, or actually going into education, but rather pushing my knowledge to the next level. Being in the web industry, we can [...]]]></description>
			<content:encoded><![CDATA[<p>Having been a Front-End Web Developer for the last 2 years, I have come to the decision that I want to go back to education — of sorts. I won’t be leaving my job, or actually going into education, but rather pushing my knowledge to the next level.</p>
<p>Being in the web industry, we can never really say we know it all. New technologies are developed and released, new design trends are created, followed and therefore requested from clients. That is why it is important for us as developers and designers to constantly look how to improve our knowledge and skill sets.</p>
<p>Moving forward I will be scheduling time every week to each of the following subjects &#8211; much like a revision time table, except there are no exams at the end.</p>
<h3>JavaScript/jQuery</h3>
<p>As my header clearly states, I have a large passion for <a href="http://jquery.com/">jQuery</a> — the effects that can be created and the fact that it is so easy to pick up and use. However, my knowledge doesn’t go much further than the simple to implement effects. I need to do more reading up and applying more complex jQuery functions to my websites.</p>
<p>On top of this, I want to get a step further and learn more core JavaScript. As <a href="http://www.kryogenix.org/">Stuart Langridge</a> rightly stated at a <a title="Future of Web Design" href="http://futureofwebdesign.com/">FOWD</a> workshop I attended, “If you are serious about  car racing, you need to know what is under the hood of the car to gain a full understanding of driving the car” (or something along those lines). So even though you might know the in’s and out’s of jQuery, extending your knowledge into core JavaScript can really benefit the effects you want to create with jQuery.</p>
<h3>Usability/User Experience</h3>
<p>Since starting my job, I have been conscious on how to progress my coding skills in order to give users a more user friendly experience, and also increase the accessibility of the websites. Having recently written an article for Smashing Magazine, ‘<a href="http://www.smashingmagazine.com/2010/02/26/usability-review-of-charity-websites-taking-the-lead/">Usability Review of Charity Websites Taking the Lead</a>’, has sparked a further interest in this subject.</p>
<p>There is talk within my work that I will be doing more Information Architecture work and helping make the websites we build more usable. I will also have the chance to over look some user testing soon, which as odd as it sounds, I am <strong>really</strong> looking forward to.</p>
<h3>.NET</h3>
<p>Working for a company which uses .NET technologies for all of their websites means I am surrounded by ASP.NET code day in and day out. Over these 2 years I have become confident in working around this code and manipulating it to render HTML will can easily be styled and suit the designs.</p>
<p>However I have a yearning to take this a step further and be able to create my own web applications. With phrases such as ‘Data Access Layer’ flying around the room, it is hard not to be intrigued and confused at the same time!</p>
<p>Luckily though, having a room full of .NET developers around me, and a tonne of books, I should have the resources available to me to become much more confident with .NET and not have to ask for help every time I hit a brick wall.</p>
<h3>PHP</h3>
<p>PHP was one of the first internet technologies I was exposed to, along with HTML and CSS. This, with my constant use and exposure to WordPress, has made me want to develop my PHP knowledge. Though this is lower down on my priorities, it definitely would benefit me as a developer in the long run &#8211; becoming more well rounded and having more exposure to different technologies cannot be that harmful, can it?</p>
<p>The benefits of having friends such as <a title="Jemjabella" href="http://www.jemjabella.co.uk/">Jem</a> and <a title="Not-Noticeable.net" href="http://not-noticeably.net/">Amelie</a> also means I have 2 very talented PHP developers at hand to rack their brains if needed.</p>
<h3>Design</h3>
<p>When I was first introduced to the web industry, I always had an interest in design, this is still the case and is also why I always put a lot of effort into the presentation of my front end development. Making my templates pixel perfect using semantic and valid code is something I aspire to all the time.</p>
<p>The reason I did not pursue a web design role rather than development was down to, like <a title="Digitalgravy" href="http://www.digitalgravy.co.uk/">Stuart</a>, the ability to churn out new and fresh designs day in and day out.</p>
<p>Even though I am no longer looking for a web design role, my interest in design has continued and thus led me to run a fairly successful CSS gallery, <a title="CSSbake" href="http://www.cssbake.com/">CSSbake</a>. Having recently redesigned CSSbake along with <a href="http://melissabrugh.com/">Melissa</a>, I have found the joy in designing for myself again and blown the dust and cobwebs off Photoshop.</p>
<p>The plan for the near future is to work on designing and developing free <a href="http://wordpress.org/">WordPress</a> templates and <a href="http://haveamint.com/">Mint</a> themes (one of which is nearly finished) to make available for download. So watch this space!﻿</p>
]]></content:encoded>
			<wfw:commentRss>http://benmacgowan.co.uk/2010/03/18/back-to-school/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Image Replacement Gallery</title>
		<link>http://benmacgowan.co.uk/2009/07/20/image-replacement-gallery/</link>
		<comments>http://benmacgowan.co.uk/2009/07/20/image-replacement-gallery/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 13:00:53 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://benmacgowan.co.uk/?p=269</guid>
		<description><![CDATA[For both personal and work-related projects I have, time and time again, needed a simple image replacement script. Of course when starting out we first look for examples and tutorials from books and other websites. This is when I stumbled across the &#8216;Image replacement gallery&#8217; snippet from Web Designer Wall. After implementing their code, I [...]]]></description>
			<content:encoded><![CDATA[<p>For both personal and work-related projects I have, time and time again, needed a simple image replacement script. Of course when starting out we first look for examples and tutorials from books and other websites. This is when I stumbled across the &#8216;Image replacement gallery&#8217; snippet from <a title="jQuery Tutorials for Designers by Web Designer Wall" href="http://www.webdesignerwall.com/tutorials/jquery-tutorials-for-designers/" target="_blank">Web Designer Wall</a>.</p>
<p>After implementing their code, I still felt it was lacking slightly. Therefore I decided to develop the code further to give a cleaner finish and put <a title="Official jQuery website" href="http://jquery.com/" target="_blank">jQuery&#8217;s</a> animation to good use.</p>
<p>I felt the code should, once a thumbnail is clicked:</p>
<p>- Fade out the existing enlarged image</p>
<p>- Change the <code>src</code> attribute of the enlarged image</p>
<p>- Amend the <code>alt</code> and <code>title</code> values of the enlarged image (based on the <code>alt</code> of the thumbnail)</p>
<p>- Remove <code>class="current"</code> from all thumbnails and add to the click thumbnail</p>
<p>- Fade in the new enlarged image</p>
<p>For added effect, in the demo I have including a loading graphic which is displayed when the enlarged image is faded out. This is achieved by adding a background image to the enlarged image&#8217;s <code>div</code></p>
<p>This may seem like just another Image Replacement Gallery script, but it can act as a great building block for more complicated galleries and once that I use often on my own projects.</p>
<p>View the finished code below or try out the <a title="Image Replacement Gallery Demo" href="http://benmacgowan.co.uk/demos/image-replacement-gallery/">demo</a>.</p>
<p><strong>The Code:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<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: #006600; font-style: italic;">// When a thumbnail is clicked</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.gallery .thumbnails a&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</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: #006600; font-style: italic;">// Get enlarged image attributes</span>
		<span style="color: #003366; font-weight: bold;">var</span> largeImg <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.gallery .feature img&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #003366; font-weight: bold;">var</span> largeImgPath <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;href&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #003366; font-weight: bold;">var</span> largeImgTitle <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;img&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;alt&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #003366; font-weight: bold;">var</span> largeThumbnail <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #006600; font-style: italic;">// Fade out enlarged image</span>
		$<span style="color: #009900;">&#40;</span>largeImg<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeOut</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'slow'</span><span style="color: #339933;">,</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: #006600; font-style: italic;">// Change the attributes of the enlarged large image</span>
			$<span style="color: #009900;">&#40;</span>largeImg<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> src<span style="color: #339933;">:</span> largeImgPath<span style="color: #339933;">,</span> alt<span style="color: #339933;">:</span> largeImgTitle<span style="color: #339933;">,</span> title<span style="color: #339933;">:</span> largeImgTitle <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">load</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: #006600; font-style: italic;">// Once image is loaded:</span>
				<span style="color: #006600; font-style: italic;">// Remove class=&quot;current&quot; from all thumbnails and add to clicked thumbnail</span>
				$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.gallery .thumbnails&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;current&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				$<span style="color: #009900;">&#40;</span>largeThumbnail<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;current&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #006600; font-style: italic;">// Fade in enlarged image</span>
				$<span style="color: #009900;">&#40;</span>largeImg<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeIn</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'slow'</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: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</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: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://benmacgowan.co.uk/2009/07/20/image-replacement-gallery/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
