<?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>Purpleurbia.com &#187; Tutorial</title>
	<atom:link href="http://purpleurbia.com/category/web/tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://purpleurbia.com</link>
	<description></description>
	<lastBuildDate>Wed, 26 May 2010 13:17:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>jQuery week: Getting started</title>
		<link>http://purpleurbia.com/jquery-week-getting-started/</link>
		<comments>http://purpleurbia.com/jquery-week-getting-started/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 15:44:02 +0000</pubDate>
		<dc:creator>mary fran</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Type]]></category>

		<guid isPermaLink="false">http://purpleurbia.com/?p=388</guid>
		<description><![CDATA[It is jQuery Week here at Purpleurbia and we are excited! We have some exciting stuff up our sleeves for the next few days, however, today we need to get you started with the basics.
There are a lot of tutorials out there to get you started, here short synopsis on why you should learn it [...]]]></description>
			<content:encoded><![CDATA[<p><span id="more-388"></span>It is jQuery Week here at Purpleurbia and we are excited! We have some exciting stuff up our sleeves for the next few days, however, today we need to get you started with the basics.</p>
<p>There are a lot of tutorials out there to get you started, here short synopsis on why you should learn it and then some links to the best tutorials out there to get the job done. And a tutorial on how to write your first bit of jQuery code. Hooray!</p>
<h3>What is jQuery?</h3>
<p><a href="http://jquery.com">jQuery</a> is a JavaScript library that allows faster development of JavaScript effects. It does a lot of what Flash can do, by interacting with the HTML and CSS and manipulating these properties. It makes your website more dynamic and frequently more visually exciting. It also doesn&#8217;t have any direct negative effects on SEO (those only happen if you do things like set default CSS to display: none but we aren&#8217;t covering that here).</p>
<h3>What is it used for?</h3>
<p>It is used to make your page respond to events, (clicks, rollovers, etc) or to animate, or to post notifications such as error warnings. With jQuery you can manipulate the DOM and make pretty nifty animations and effects.</p>
<h3>Let&#8217;s write some jQuery</h3>
<p>You are going to need to download the current version of<a href="http://jquery.com"> jQuery</a> for this tutorial and include it in your header.</p>
<pre class="brush: xml;">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
 &lt;head&gt;
 &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /&gt;
 &lt;title&gt;jQuery Week on Purpleurbia&lt;/title&gt;
 &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;style.css&quot; /&gt;
 &lt;script src=&quot;js/jquery-1.2.6.min.js&quot; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;
 &lt;/script&gt;

&lt;/head&gt;
</pre>
<p>Now we need to add some content to our HTML to manipulate:</p>
<pre class="brush: xml;">
&lt;body&gt;
 &lt;div id=&quot;container&quot;&gt;
 &lt;div id=&quot;header&quot;&gt;
 I made a jQuery!
 &lt;/div&gt;
 &lt;ul id=&quot;nav&quot;&gt;
 &lt;li&gt;
 &lt;a href=&quot;#&quot;&gt;Click me&lt;/a&gt;
 &lt;/li&gt;
 &lt;/ul&gt;
 &lt;div&gt;
 &lt;/div&gt;
 &lt;h3&gt;Hello everyone!&lt;/h3&gt;
 &lt;h3 style=&quot;display: none;&quot;&gt;
 Come back tomorrow for a more exciting tutorial!
 &lt;/h&gt;
 &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<pre class="brush: css;">
*                    { margin: 0; padding: 0; }
body                { font-size: 62.5%; font-family: Georgia, serif; }
.clear              { clear: both; }

a                    { outline: none; text-decoration: none; color: white; font-size: 1.3em; }
h3                    { font-size:18px; color: #4b0049;}

div#container        { width: 300px; margin: 0 auto;}

#header                { padding: 20px; font-size: 3.0em; background: #9b6999; color: #ffffff;}

ul#nav                { list-style: none;  width: 300px; margin: 10px auto; }
ul#nav li            { float: left; padding: 10px; margin-right: 3px; width: 200px; background: #4b0049; }
</pre>
<p>Now we can write our jQuery. Put this in script tags (&lt;script type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;) in the header area of your document.</p>
<pre class="brush: jscript;">
$(document).ready(function() {
 $(&quot;li.button&quot;).click(function(){
 $(&quot;h3&quot;).toggle();
 });
 });
</pre>
<p>The first line says to wait until the document is ready. The next line says that when there is a click on an li element with a class of button to toggle the h3 element.</p>
<p>Pretty nifty, eh? (You should get something that looks like <a href="http://purpleurbia.com/wp-content/demos/jquery-week-basics/">this</a>)</pre>
<h3>Some great tutorials to make sure you really get the basics:</h3>
<p><a href="http://docs.jquery.com/Tutorials">jQuery's</a> own tutorials. A little more technical than most of the others out there, but if you are a programmer type, this is the way to go.<br />
ThemeForest's <a href="http://blog.themeforest.net/screencasts/jquery-for-absolute-beginners-video-series/">jQuery for Absolute Beginners</a> series. This is a great video tutorial series that will get you on your way to learning jQuery.<br />
Learningjquery.com's series on <a href="http://www.learningjquery.com/2008/03/working-with-events-part-1">Working with Events</a>. This series talks about the major difference between JavaScript and CSS<br />
CSS Tricks' Video Series on <a href="http://css-tricks.com/video-screencasts/20-introduction-to-jquery/">Getting Started with jQuery</a>. This is a great basic series on working with jQuery and CSS.</p>
<p>Check back tomorrow for some more advanced jQuery coding!</p>
<p>(the background from our header image is from <a href="http://www.bittbox.com/freebies/free-texture-tuesday-leaves-2">BittBox's Free Texture Tuesday Series</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://purpleurbia.com/jquery-week-getting-started/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Quick tips for designing HTML e-mail</title>
		<link>http://purpleurbia.com/designing-html-e-mail/</link>
		<comments>http://purpleurbia.com/designing-html-e-mail/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 15:31:28 +0000</pubDate>
		<dc:creator>mary fran</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[E-mail]]></category>
		<category><![CDATA[E-mail Marketing]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Marketing]]></category>

		<guid isPermaLink="false">http://purpleurbia.com/?p=319</guid>
		<description><![CDATA[Some think it is a typical web designer&#8217;s worst nightmare. Because, guess what, it means your design is most likely laid out in tables!  And, there are no external style sheets, or even header styles, all your styles have to be inline! And as opposed to about a dozen browsers that are common, there are [...]]]></description>
			<content:encoded><![CDATA[<p>Some think it is a typical web designer&#8217;s worst nightmare. Because, guess what, it means your design is most likely laid out in tables!  <span id="more-319"></span>And, there are no external style sheets, or even header styles, all your styles have to be inline! And as opposed to about a dozen browsers that are common, there are over 100 e-mail programs that are common.</p>
<p>There are a couple of different styles of e-mail marketing/ HTML e-mails. There are the kind that most major brands send that are all images:</p>
<p><a href="http://ebm.cheetahmail.com/c/tag/hBK4SvjAQfEXsB7vaulAcD-5z-J/doc.html?t_params=I_FROM%3D1%26I_MAIN%3D2%26I_NEW_FOOTER1%3D0%26I_SUBJECT%3D2%26I_TROUBLE%3D2%26I_YB1%3D2%26EMAIL%3Dmfwiley%2540gmail.com%26VALUE_4%3D14&amp;cmpid=SA_20091023"><img class="aligncenter size-full wp-image-320" title="borders" src="http://purpleurbia.com/wp-content/uploads/2009/10/borders.jpg" alt="borders" width="550" height="314" /></a></p>
<p>and there are the more news letter types (like the one below from MyFonts):</p>
<p><a href="http://new.myfonts.com/newsletters/cc/200910.html"><img class="aligncenter size-full wp-image-324" title="myfonts" src="http://purpleurbia.com/wp-content/uploads/2009/10/myfonts.jpg" alt="myfonts" width="550" height="314" /></a></p>
<h6>(disclaimer : I am not saying that these are the best ever examples of email marketing, they are what was in my inbox this morning when I was writing this post)</h6>
<p>While this type of code does go against everything we know and love as fans and lovers of a semantic web, it is actually easy to create (well to start, just don&#8217;t let it become habit-forming!) To start:</p>
<ol>
<li>Set up a document in Photoshop that is no wider than 550px wide. Reading pane limitations force this on you. And, if you make your document too much taller than 700px for a typical image-type HTML e-mail, information will get lost.</li>
<li>Quick Photoshop tip: As long as you name all your slices in Photoshop, and you have sliced well, you are going to simplify one of your development steps: table creation. When you save for web, make sure you save images AND html, to help you cut down on a development step.</li>
<li><span style="color: #993366;">Now, make sure your images are moved to a server and then deleted from the relative file and linked to using their absolute address.</span> This is very important. If you link to a relative address, the recipient will not see the images, because you are only sending them the code, not the entire directory that contains the code and images. Deleting them from their relative file will help you check for errors.</li>
<li>Including alt text for your images and title tags for your links is imperative. While you don&#8217;t need to be concerned about search engines, you do need to be concerned about accessibility for people with images turned off (the majority of e-mail clients do this) and people with disabilities.</li>
<li>Also, you will need to include a plain text version of your e-mail, so make sure that your client has provided you with one, as some e-mail servers only accept plain text messages. Your e-mail marketing provider will walk you through this step.</li>
<li>Does your design account for the CAN-SPAM notices? Most (but not all) e-mail providers automatically append this information to the end of your e-mail. You also need to allow for an unsubscribe method. No one likes a spammer.</li>
</ol>
<p><a href="http://www.flickr.com/photos/63056612@N00/155554663/"><img class="aligncenter size-full wp-image-325" title="spam" src="http://purpleurbia.com/wp-content/uploads/2009/10/spam.jpg" alt="spam" width="550" height="123" /></a><br />
Good luck with your e-mail designing! I have plans for writing a tutorial on design principles of e-newsletters soon!</p>
]]></content:encoded>
			<wfw:commentRss>http://purpleurbia.com/designing-html-e-mail/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>jQuery UI tabs + Featured content = love</title>
		<link>http://purpleurbia.com/jquery-ui-tabs-featured-content-slider/</link>
		<comments>http://purpleurbia.com/jquery-ui-tabs-featured-content-slider/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 01:07:40 +0000</pubDate>
		<dc:creator>mary fran</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://purpleurbia.com/?p=226</guid>
		<description><![CDATA[If I could, I might just marry jQuery. That&#8217;s right. I said it. I might just marry jQuery. Why? Because I can understand it. I can make it work. Although, it might have gotten me to the point where I can understand javascript. But, I digress. The point of today&#8217;s post? To teach you a [...]]]></description>
			<content:encoded><![CDATA[<p><span id="more-226"></span>If I could, I might just marry jQuery. That&#8217;s right. I said it. I might just marry jQuery. Why? Because I can understand it. I can make it work. Although, it might have gotten me to the point where I can understand javascript. But, I digress. The point of today&#8217;s post? To teach you a fun new trick!</p>
<p>Almost every website has a featured content slider or tabbed section of some sort, so today, we will make an auto-scrolling, fancy-schmancy featured tabbed content thingy. Which will be primed and ready for us to make add some WordPress code to next time.</p>
<p><a title="Our very cool slider thingy." href="http://purpleurbia.com/wp-content/demos/jquery-ui-tabs-slider/slider.html">Take a look at this bad boy!</a></p>
<p>We are going to start by downloading a couple of important files:</p>
<p><a title="Get jQuery" href="http://jquery.com/">jQuery</a></p>
<p><a title="Get jQuery UI" href="http://jqueryui.com/download">jQuery UI (the core and tabs)</a></p>
<p>Put these in your project folder/js.</p>
<p>Now create an HTML file in your root folder.</p>
<p>And create a blank stylesheet in your project folder /css.</p>
<p>Now, we need to make sure that we are calling the script files and css.</p>
<pre class="brush: xml;"> 		&lt;link type=&quot;text/css&quot; href=&quot;css/style.css&quot; rel=&quot;stylesheet&quot; /&gt;
		&lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery-1.3.2.min.js&quot;&gt;&lt;/script&gt;
		&lt;script type=&quot;text/javascript&quot; src=&quot;js/ui.core.js&quot;&gt;&lt;/script&gt;
		&lt;script type=&quot;text/javascript&quot; src=&quot;js/ui.tabs.js&quot;&gt;&lt;/script&gt;
</pre>
<p>The core and tabs js files can be found in the development folder of your download.<br />
Now, lets have some fun. In your HTML file, you will need to create an unordered list which will become the tabs, and a series of divs that will contain the corresponding content.</p>
<pre class="brush: xml;">
        &lt;div id=&quot;Container&quot;&gt;
            &lt;!-- Tabs --&gt;
            &lt;div id=&quot;tabs&quot;&gt;
                &lt;div id=&quot;tabs-1&quot; class=&quot;feature&quot;&gt;
                    &lt;h3&gt;my&lt;strong&gt;robot&lt;/strong&gt;&lt;/h3&gt;
                    &lt;p&gt;
                        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip x ea commodo consequat.
                    &lt;/p&gt;
                    &lt;img src=&quot;images/robot1-big.jpg&quot; alt=&quot;Featured Product&quot; class=&quot;bigIMG&quot; /&gt;
                &lt;/div&gt;
                &lt;div id=&quot;tabs-2&quot; class=&quot;feature&quot;&gt;
                    &lt;h3&gt;big&lt;strong&gt;robot&lt;/strong&gt;&lt;/h3&gt;
                    &lt;p&gt;
                        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquipx ea commodo consequat.
                    &lt;/p&gt;
                    &lt;img src=&quot;images/robot2-big.jpg&quot; alt=&quot;Featured Product&quot; class=&quot;bigIMG&quot; /&gt;
                &lt;/div&gt;
                &lt;div id=&quot;tabs-3&quot; class=&quot;feature&quot;&gt;
                    &lt;h3&gt;cool&lt;strong&gt;robot&lt;/strong&gt;&lt;/h3&gt;
                    &lt;p&gt;
                        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
                        dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
                        x ea commodo consequat.
                    &lt;/p&gt;
                    &lt;img src=&quot;images/robot3-big.jpg&quot; alt=&quot;Featured Product&quot; class=&quot;bigIMG&quot; /&gt;
                &lt;/div&gt;
                &lt;ul id=&quot;tabby&quot;&gt;
                    &lt;li&gt;
                        &lt;a href=&quot;#tabs-1&quot;&gt;&lt;img src=&quot;images/robot1.jpg&quot; alt=&quot;robot&quot; /&gt;&lt;/a&gt;
                    &lt;/li&gt;
                    &lt;li&gt;
                        &lt;a href=&quot;#tabs-2&quot;&gt;&lt;img src=&quot;images/robot2.jpg&quot; alt=&quot;robot&quot; /&gt;&lt;/a&gt;
                    &lt;/li&gt;
                    &lt;li&gt;
                        &lt;a href=&quot;#tabs-3&quot;&gt;&lt;img src=&quot;images/robot3.jpg&quot; alt=&quot;robot&quot; /&gt;&lt;/a&gt;
                    &lt;/li&gt;
                &lt;/ul&gt;
            &lt;/div&gt;
        &lt;/div&gt;&lt;!--end Container--&gt;</pre>
<p>This is where it gets fun! We are now going to make the slider look pretty and act the way it is supposed to.  I used Eric Meyer&#8217;s CSS reset to start with, and you probably should too.  It is followed by the styling telling the featured content how to look and finally the CSS telling the tabs how to behave.</p>
<pre class="brush: css;">
/*Reset*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-weight: inherit;
	font-style: inherit;
	font-size: 100%;
	font-family: inherit;
	vertical-align: baseline;
}
/* remember to define focus styles! */
:focus {
	outline: 0;
}
body {
	line-height: 1;
	color: black;
	background: white;
}
ol, ul {
	list-style: none;
}
/* tables still need 'cellspacing=&quot;0&quot;' in the markup */
table {
	border-collapse: separate;
	border-spacing: 0;
}
caption, th, td {
	text-align: left;
	font-weight: normal;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: &quot;&quot;;
}
blockquote, q {
	quotes: &quot;&quot; &quot;&quot;;
}
/*End Reset*/
body {
	font-family: Arial, Helvetica, sans-serif;
	font-size:12px;
	line-height::21px;
}
#Container {
	width:960px;
	margin-left:auto;
	margin-right: auto;
	position:relative;
}
.clrBOTH {
	clear:both
}
img {
	border: none;
	}

#tabs {
	background-color: #6cb9c7;
	height:275px;
	padding-top: 25px;
}
.feature p {
	color: #ffffff;
	float:left;
	font-size: 1.166667em;
	margin-left:30px;
	margin-right:30px;
	line-height: 1.5em;
	width: 520px;
}
.feature h3 {
	color:#ffffff;
	float:left;
	font-size: 2em;
	font-weight:normal;
	line-height: 0.875em;
	margin-top:00px;
	margin-left:30px;
	margin-bottom:10px;
	width: 620px;
}

.bigIMG {
	margin-left:20px;
}
#tabby {
	position:absolute;
	left:0px;
	bottom:-75px;}
/* Tabs
----------------------------------*/
.ui-tabs {
    padding: 0em;
    zoom: 1;
	z-index: 100;
}

.ui-tabs .ui-tabs-nav {
    list-style: none;
    position: relative;
    padding: 0em 0em 0;
}

.ui-tabs .ui-tabs-nav li {
    position: relative;
    float: left;
    border-bottom-width: 0 !important;
    margin-top:5px;
	margin-left:0px;
	margin-right:0px;
	margin-bottom:0px;
    padding: 0;
}

.ui-tabs .ui-tabs-nav li a {
    float: left;
	text-align: center;
    text-decoration: none;
    padding-top:30px;
	width:320px;
	color: #ffffff;
	height:75px;
	font-size: 1.5em;
}

.ui-tabs .ui-tabs-nav li.ui-tabs-selected {
	background-image: url('../images/arrow.png');
	background-repeat: no-repeat;
    padding-bottom: 0px;
    border-bottom-width: 0;
}

.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a {
    cursor: text;
}

.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a {
    cursor: pointer;
}
 /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
.ui-tabs .ui-tabs-panel {
    padding: 0em 0em;
    display: block;
    border-width: 0;
    background: none;
}

.ui-tabs .ui-tabs-hide {
    display: none !important;
}</pre>
<p>  Here&#8217;s why that is working: we positioned the div contianing the tabs below the content area, but allowed the padding (the area where the arrow is) to overlap. We set the arrow to be a background image on the selected li (the selected class will be applied by the jQuery. Pretty nifty, eh? Meh, that&#8217;s alright, but it is still lacking a little magic. We want it to cycle through the featured content automatically, all sexy and such. How do we do that? We add a little bit more javascript!</p>
<pre class="brush: jscript;">$(function(){
 
    $('#tabs').tabs({ fx: { opacity: 'toggle' } }).tabs('rotate', 2000);
    
   });</pre>
<p> Make sure to wrap that in &lt;script&gt; tags or put it in an external js file and link to it after your other files. And, voila! You have now made our slider! Hooray!</p>
]]></content:encoded>
			<wfw:commentRss>http://purpleurbia.com/jquery-ui-tabs-featured-content-slider/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
