<?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>Assorted GARbage</title>
	<atom:link href="http://blog.assortedgarbage.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.assortedgarbage.com</link>
	<description>Thoughts, rants and musings about Adobe, the web, technology and 200+ days a year traveling as a software evangelist.</description>
	<lastBuildDate>Thu, 26 Sep 2013 01:17:15 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.9.40</generator>
	<item>
		<title>Internet Explorer&#8217;s Browser Mode vs Document Mode</title>
		<link>http://blog.assortedgarbage.com/2013/05/internet-explorers-browser-mode-vs-document-mode/</link>
		<comments>http://blog.assortedgarbage.com/2013/05/internet-explorers-browser-mode-vs-document-mode/#comments</comments>
		<pubDate>Thu, 23 May 2013 19:55:13 +0000</pubDate>
		<dc:creator><![CDATA[Greg]]></dc:creator>
				<category><![CDATA[CSS3]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[version]]></category>
		<category><![CDATA[versions]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.assortedgarbage.com/?p=830</guid>
		<description><![CDATA[Regardless of your personal feelings towards Internet Explorer, as a web professional you know that you have to test your creations in several versions of IE. Of course, that also means that you have to keep several virtual (or even physical) machines available &#8211; and not updated! This has recently become even harder to do with [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Regardless of your personal feelings towards Internet Explorer, as a web professional you know that you have to test your creations in several versions of IE. Of course, that also means that you have to keep several virtual (or even physical) machines available &#8211; and not updated!</p>
<p>This has recently become even harder to do with Microsoft&#8217;s attempt to force-feed browser updates – at least to those on Windows 7 &amp; 8. And while I applaud this effort, it has also complicated matters even more. I recently fired up my copy of Parallels and loaded a Windows 7 image that I use to test IE9&#8230; only to find out that IE had updated itself to version 10! Thankfully, Microsoft has begun to provide &#8220;locked&#8221; VM&#8217;s for testing purposes. You can find them at: <a title="Testing Site for Internet Explorer" href="http://modern.ie/">http://www.modern.ie/</a></p>
<p>Of course, IE has had a method of testing in its Developer Tools for several versions now which allows you to &#8220;fake&#8221; which version of IE you are running. The problem with the feature is that there are two different modes, and it&#8217;s hard to tell (at least for me) what the difference is between the two. So, in the hopes of saving some hair pulling, here&#8217;s an explanation and example.</p>
<p class="pic"><a href="http://blog.assortedgarbage.com/wp-content/2013/05/browser_mode.png" rel="lightbox[830]"><img class="alignnone size-medium wp-image-833" alt="Browser Mode vs Document Mode in Internet Explorer" src="http://blog.assortedgarbage.com/wp-content/2013/05/browser_mode-300x55.png" width="300" height="55" /></a></p>
<p>I was recently assisting my wife, <a title="Stephanie's Twitter page" href="http://twitter.com/stefsull">Stephanie</a>, on a promo page for her company, <a title="Contatta - Simple. Sophisticated. CRM." href="http://contatta.com">Contatta</a>. On the page, they wanted a streamlined (i.e. single page) process for signing up prospects, and we chose to build the experience like an image slider. In keeping with best practices – and the fact that they only wanted IE9+ support, we chose to use CSS3 transitions to generate the motion and state changes. For the four &#8220;states&#8221; of the page, we created a wrapper div that was set to a fixed width/height and set to overflow:hidden. All of the &#8220;elements&#8221; that will &#8220;slide&#8221; in were set to position:absolute and transform:translateX(125%). To create the illusion of movement, we&#8217;ve also created a class that specifies transition:transform .5s linear 0s. Note: I&#8217;ve removed the vendor-specific prefixes.</p>
<p>To slide the element into view, a class is applied (or removed) that changes the translateX() value between -125%, 0 and 125%.</p>
<p class="pic"><iframe src="http://www.youtube.com/embed/t1we5OcBKoQ" height="315" width="420" allowfullscreen="" frameborder="0"></iframe></p>
<p>As you can see it works great in IE 10 – and all kidding aside, Microsoft has done a great job adding HTML5 and CSS3 features to IE 10. But, as you might know, transitions (the &#8220;animation&#8221; of the form) were not supported in Internet Explorer 9. Since my version of IE9 had upgraded itself to IE10, we needed a way to see what the lack of transitions in IE9 would do to the experience. Enter the developer tools&#8230;</p>
<p class="pic"><iframe src="http://www.youtube.com/embed/4yi5BgoP4qU" height="315" width="420" allowfullscreen="" frameborder="0"></iframe></p>
<p>As you can see, when we changed the Browser Mode to IE 9, the browser still transitioned (animated) the form &#8211; but IE 9 doesn&#8217;t support transitions! It&#8217;s not until we changed the Document Mode to IE 9 that the transition no longer happened.</p>
<p>Browser Mode defines the User Agent – what IE tells the server it is. Document Mode on the other hand determines &#8220;what&#8221; or &#8220;how&#8221; IE  will render the page.</p>
<p>Using logic, we could just switch the Document Mode and think we&#8217;re &#8220;good to go&#8221;. But that&#8217;s not true either&#8230; as you can see below:</p>
<p class="pic"><iframe src="http://www.youtube.com/embed/c0l4IDKayfw" height="315" width="420" allowfullscreen="" frameborder="0"></iframe></p>
<p>As it usually happens, after the page was built, &#8220;the powers that be&#8221; decided that they, in fact, did want IE 8 support. Which meant that not only did we have to come up with a solution, we needed to test it too.</p>
<p>There are a number of ways to serve alternate CSS to IE, but we chose to use an IECC (Internet Explorer Conditional Comment) – a stylesheet that is only shown to IE versions less than 9.  As you can see, when we switch the Document Mode to IE8, we get craziness because IE8 does not understand the transform property. As I mentioned earlier, we&#8217;ve used the translateX() value to move the form &#8220;off screen&#8221;. So, for these older versions of IE, instead of using tranform:translateX(125%), we need to set the left (or right) property of the element.</p>
<p>Simply switching the Document Mode, however, did not tell the browser to read the IECC. As far as IE was concerned, it was still IE 9 (or 10 if we had left it at its default). In order to truly emulate IE 8, loading the page and its resources properly, we have to set the Browser Mode as well as the Document Mode.</p>
<p>While I still try to test on an actual version of Internet Explorer, the fact that the Developer Tools allows me to quickly test functionality as well as look and feel, while remaining in IE 10 is a great time saver&#8230; once I figured out what the two modes meant!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.assortedgarbage.com/2013/05/internet-explorers-browser-mode-vs-document-mode/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Making Awesomeness*</title>
		<link>http://blog.assortedgarbage.com/2012/04/making-awesomeness/</link>
		<comments>http://blog.assortedgarbage.com/2012/04/making-awesomeness/#comments</comments>
		<pubDate>Wed, 18 Apr 2012 21:42:50 +0000</pubDate>
		<dc:creator><![CDATA[Greg]]></dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Assorted Garbage]]></category>

		<guid isPermaLink="false">http://blog.assortedgarbage.com/?p=812</guid>
		<description><![CDATA[15 years. Yep, that&#8217;s a long time. In fact, it&#8217;s so long that it&#8217;s hard to remember &#8220;not&#8221; working for Adobe. But as of May 4th, I will be leaving the &#8220;big red A&#8221; to set off on a new adventure. I&#8217;ve accepted an offer to join Stremor, a start-up here in Phoenix as their VP [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>15 years. Yep, that&#8217;s a long time. In fact, it&#8217;s so long that it&#8217;s hard to remember &#8220;not&#8221; working for <a href="http://adobe.com">Adobe</a>. But as of May 4th, I will be leaving the &#8220;big red A&#8221; to set off on a new adventure. I&#8217;ve accepted an offer to join <a href="http://www.stremor.com">Stremor</a>, a start-up here in Phoenix as their VP of User Experience Engineering. In addition to making coffee, putting Ikea furniture together, and other typical start-up jobs, I will be putting my HTML5/CSS3/JS chops on the line building a real product! Sadly, I can&#8217;t tell you &#8220;<a title="What it is" href="http://www.stremor.com/whatitis.html">what&#8221; it is</a> yet – that&#8217;s all still hush, hush – but I can tell you that it&#8217;s so amazing, we&#8217;ve already got patents pending! Oh, and we&#8217;re also <a title="Jobs at Stremor" href="http://www.stremor.com/whoweneed.html">looking for great developers</a>!</p>
<p>As I began debating whether to make the move, I got pretty sentimental about the last 15 years – so much so, that I almost chose not to go. Thanks to GoLive/Macromedia/Adobe, I&#8217;ve gotten to help build tools that literally have changed the (web) world. I&#8217;ve also had the good fortune to travel around the world more times than I can count and accumulated frequent flyer miles and hotel points that will take years to use up. And along the way, I also got to meet and work with some truly amazing people, including my incredible wife, <a title="Stef's Twitter feed" href="http://twitter.com/stefsull">Stephanie Rewis</a>. <span id="more-812"></span>I want to thank you all – my colleagues, friends, travel buddies, conference attendees, et. al. – for so many great memories. Chili crab in Singapore, tuk-tuk rides in Dehli, climbing the Sydney Harbor Bridge, dinner at <a title="My favorite restaurant in the whole world!" href="http://www.recreationafrica.co.za/carnivore">Carnivores</a> in Johannesburg, standing naked in a hotel hallway in Seoul (don&#8217;t ask), horizontal rain/ice in Helsinki in February(buuurrrr!), far too many beers at the Oktoberfest, sitting in the MacWorld green room with Steve Jobs, getting to fly with Paul McCartney – and so many, many more!</p>
<p>It&#8217;s been an amazing ride and I would be lying if I said that I won&#8217;t miss parts of it (expense reports excluded). I hope to still be asked to speak at conferences (hint, hint), and I will definitely be writing here and <a href="http://twitter.com/garazi">twittering there</a> – it&#8217;ll just be less <a href="http://adobe.com/products/dreamweaver">Dreamweaver</a> and Adobe stuff, and more HTML5/CSS3/JS – and you&#8217;re all still invited to come hang out on <a title="8 days, 7 nights of Caribbean Sun and Sand" href="http://geeks4sail.com/">Geeks4Sail</a>. But, I&#8217;m also excitedly looking forward to the new challenges that come with change – and even better, I get to carpool to work with Stef (our offices are literally one mile apart)!</p>
<p>So, to my soon-to-be former colleagues at Adobe, I wish you all the best! Keep making great products! And to the rest of my readers, I&#8217;m not leaving <em>you</em>, so&#8230; um&#8230; carry on with what you were doing!</p>
<p>*Hat-tip to <a href="https://twitter.com/jenseninman">Leslie Jensen-Inman</a> for the title of this post</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.assortedgarbage.com/2012/04/making-awesomeness/feed/</wfw:commentRss>
		<slash:comments>47</slash:comments>
		</item>
		<item>
		<title>Using Dreamweaver with Sass and Less</title>
		<link>http://blog.assortedgarbage.com/2012/03/using-dreamweaver-with-sass-and-less/</link>
		<comments>http://blog.assortedgarbage.com/2012/03/using-dreamweaver-with-sass-and-less/#comments</comments>
		<pubDate>Thu, 29 Mar 2012 15:00:38 +0000</pubDate>
		<dc:creator><![CDATA[Greg]]></dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Dreamweaver]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://blog.assortedgarbage.com/?p=802</guid>
		<description><![CDATA[When my wife, Stephanie Rewis, decided to leave the gun-for-hire world and join a start-up, she was immediately faced with a decision on which CSS preprocessor to use – Sass or Less. And compounding the problem, her editor of choice, Dreamweaver, doesn&#8217;t provide color coding or hinting for either preprocessor – even though their files [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>When my wife, <a href="http://twitter.com/stefsull">Stephanie Rewis</a>, decided to leave the gun-for-hire world and <a href="http://blog.w3conversions.com/2012/03/new-directions/">join a start-up</a>, she was immediately faced with a decision on which CSS preprocessor to use – <a href="http://sass-lang.com">Sass</a> or <a href="http://lesscss.org/">Less</a>. And compounding the problem, her editor of choice, <a href="http://www.adobe.com/products/dreamweaver.html">Dreamweaver</a>, doesn&#8217;t provide color coding or hinting for either preprocessor – even though their files are really just CSS. So, being the good husband (and evangelist for Dreamweaver) that I am, I set out to remedy the problem. If you&#8217;re wanting to use Sass or Less with Dreamweaver, here&#8217;s how to make it work.</p>
<p>As always, here&#8217;s the disclaimer – you&#8217;re going to be editing files in Dreamweaver&#8217;s Configuration folder, so proceed with caution, make a backup of the originals, etc.</p>
<p>The first thing that we need to do is to tell Dreamweaver that it&#8217;s okay to open a .scss or .less file – something that Dreamweaver by default doesn&#8217;t understand. You&#8217;ll first need to take a peak in your personal Dreamweaver configuration folder – on a Mac, that&#8217;s located in <span id="more-802"></span>~username/Library/Application Support/Adobe/Dreamweaver CS5.5/en_us/Configuration – and locate a file named &#8220;Extensions.txt&#8221;. If, for some reason, this file doesn&#8217;t exist, you can edit the master file located in Adobe Dreamweaver CS5.5/Configuration. Open the file and add SCSS (or SASS if you&#8217;re using the older syntax) and LESS to line 8, so that it reads: CSS,SCSS,LESS:Style Sheets. Save the file and restart Dreamweaver. You should now be able to click on a .scss or .less file in your Site panel and have it open in Dreamweaver.</p>
<p class="pic"><a href="http://blog.assortedgarbage.com/wp-content/2012/03/dw3.jpg" rel="lightbox[802]"><img class="alignnone size-medium wp-image-806" title="Adding Color Coding for Sass and Less" alt="" src="http://blog.assortedgarbage.com/wp-content/2012/03/dw3-300x151.jpg" width="300" height="151" /></a></p>
<p>Now, in order for Dreamweaver to understand that this, in fact, is a CSS file, you&#8217;ll need to edit MMDocumentTypes.xml located in the DocumentTypes folder in the Configuration folder. Open this file and scroll down to line 142. You&#8217;ll notice two properties on that line: winfileextension=&#8221;css&#8221; macfileextension=&#8221;css&#8221;. Add scss and less (comma seperated) to the appropriate property for your platform. Save the file and restart Dreamweaver. Open your .scss or .less file and you should see your familiar CSS code coloring and hinting!</p>
<p class="pic"><a href="http://blog.assortedgarbage.com/wp-content/2012/03/scss.jpg" rel="lightbox[802]"><img class="alignnone size-medium wp-image-803" title="Sass in Dreamweaver" alt="" src="http://blog.assortedgarbage.com/wp-content/2012/03/scss-300x229.jpg" width="300" height="229" /></a></p>
<p>If you&#8217;re serious about your Sass and/or Less, you should be using <a href="http://incident57.com/codekit/">CodeKit</a>, IMHO. CodeKit, in addition to other things, monitors your scss (or less) file for changes and then compiles it into CSS. I&#8217;m using CodeKit and Sass on every project – and loving it! To optimize my workflow, I actually link to the .scss file in my HTML (just remember to remove it before pushing the page live). That way, I can use Dreamweaver&#8217;s split view to edit the .scss file while looking at the page with Live View turned on. When I save the .scss file, CodeKit compiles the file into a CSS file that is also linked in my page. Sadly, Dreamweaver doesn&#8217;t know when the CSS file is changed, but simply hitting F5 (or the refresh button at the top of the document window) causes Dreamweaver&#8217;s Live View to refresh and I can see my changes.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.assortedgarbage.com/2012/03/using-dreamweaver-with-sass-and-less/feed/</wfw:commentRss>
		<slash:comments>38</slash:comments>
		</item>
		<item>
		<title>Change happens: border-image breaks in Chrome</title>
		<link>http://blog.assortedgarbage.com/2011/12/change-happens/</link>
		<comments>http://blog.assortedgarbage.com/2011/12/change-happens/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 20:13:18 +0000</pubDate>
		<dc:creator><![CDATA[Greg]]></dc:creator>
				<category><![CDATA[CSS3]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[border-image]]></category>

		<guid isPermaLink="false">http://blog.assortedgarbage.com/2011/12/change-happens-%e2%80%93-border-image-breaks-in-chrome/</guid>
		<description><![CDATA[As anyone who has worked in the front-end dev world knows, keeping up with the &#8220;new&#8221; stuff is challenging. Thankfully, the browser makers have provided vendor prefixes which allow us to use a lot of the new CSS3 properties before they are finalized. But thanks to a reader of my blog, I was made aware [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>As anyone who has worked in the front-end dev world knows, keeping up with the &#8220;new&#8221; stuff is challenging. Thankfully, the browser makers have provided vendor prefixes which allow us to use a lot of the new CSS3 properties before they are finalized. But thanks to a reader of my blog, I was made aware that Chrome (version 16), as they removed the need for a prefix on <a title="Border-image specification" href="http://www.w3.org/TR/css3-background/#border-images">border-image</a>, has also changed the way the property is rendered. This morning, I awoke to find my site broken in the latest version of Chrome.</p>
<p>When I updated this blog to &#8220;HTML5&#8243;, I took the leap and used CSS3 everywhere that I could. This post area was a prime candidate for border-image. For the uninitiated, border-image allows you to use a single image as both a border and fill for an element. All you need to do is specify how much of the top, left, bottom, right of the image will be the borders, and how those pieces should fill each area (stretching or repeating).</p>
<p class="pic"><a href="http://blog.assortedgarbage.com/wp-content/2011/12/slice.png" rel="lightbox[785]"><img class="alignnone size-medium wp-image-789" title="9-slice principle" src="http://blog.assortedgarbage.com/wp-content/2011/12/slice-300x235.png" alt="Illustration of 9-slice from the W3C specification" width="300" height="235" /></a><span class="caption">Diagram illustrating the cuts corresponding to the value ‘25% 30% 12% 20%’ from the W3C specification</span></p>
<p>If you&#8217;ve ever used Fireworks, Illustrator or Flash, they all have a feature known as 9-slice scaling. Border-image is basically the same thing, but done on the fly via CSS. The rule for all posts here looked like this:</p>
<p><code>.post {<br />
margin: 0 0 40px 0;<br />
-webkit-border-image: url(images/article-background-stretch.png) 29 50 55 32 round round;<br />
-moz-border-image: url(images/article-background-stretch.png) 29 50 55 32 round round;<br />
border-image: url(images/article-background-stretch.png) 29 50 55 32 round round;<br />
border-width: 29px 50px 55px 32px;<br />
}</code></p>
<p>In keeping with best practices, you can see that I have listed the official property (without the vendor prefix) last, so that as browsers drop the need for the vendor prefix, they will simply read the last property – and the change will be seamless. Except in the case where all browser vendors are rendering a property different than the spec—thus lulling us into believing their rendering is correct when it is not.</p>
<p class="pic"><a href="http://blog.assortedgarbage.com/wp-content/2011/12/hole.jpg" rel="lightbox[785]"><img class="alignnone size-medium wp-image-788" title="A hole-y article" src="http://blog.assortedgarbage.com/wp-content/2011/12/hole-300x298.jpg" alt="A hole-y article" width="300" height="298" /></a><span class="caption">Don&#8217;t adjust your screen! This is what every post looked like!</span></p>
<p>There is actually an additional value in the spec called &#8220;fill&#8221;. The &#8220;fill&#8221; keyword instructs the browser to render the middle of the image as the background of the element. Without the keyword, the middle remains transparent (ie, the background-image or color is rendered instead). If there is no background-image or color defined for the element, it is simply transparent. Till now, all browsers have ignored the lack of the &#8220;fill&#8221; attribute and rendered the middle regardless. The code above worked perfectly—but it was based on improper rendering.</p>
<p>Chrome (actually, the change was made in Webkit) has recently changed their implementation of the border-image &#8220;fill&#8221; value as described in the spec. This is good, but it will ultimately break a lot of sites since many of us left the fill attribute off since vendors were ignoring it. Sloppy, sure. But it worked&#8230; until today.</p>
<p>So, dive back into your code and add the &#8220;fill&#8221; keyword if your site suddenly looks like swiss cheese. But you&#8217;ll want to (for now) only add the fill value to the non-prefixed version, as the addition of the value currently breaks Firefox if added to the -moz version of your rule (hat tip to <a href="http://twitter.com/chriseppstein">@chriseppstein</a> for that little nugget). My post class now looks like this:</p>
<p><code>border-image: url(images/article-background-stretch.png) 29 50 55 32 fill round round;</code></p>
<p>&#8220;fill&#8221; tells Chrome (and eventually other browsers) to render the center of your image as the background of the element. The two &#8220;round&#8221; values instruct the browser to tile the images on the x- and y-axis.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.assortedgarbage.com/2011/12/change-happens/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>The Importance of &#8220;s&#8221; in CSS3 Transition Shorthand</title>
		<link>http://blog.assortedgarbage.com/2011/08/the-importance-of-s-in-css3-transition-shorthand/</link>
		<comments>http://blog.assortedgarbage.com/2011/08/the-importance-of-s-in-css3-transition-shorthand/#comments</comments>
		<pubDate>Tue, 16 Aug 2011 16:00:44 +0000</pubDate>
		<dc:creator><![CDATA[Greg]]></dc:creator>
				<category><![CDATA[CSS3]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Opera]]></category>
		<category><![CDATA[Safari]]></category>
		<category><![CDATA[shorthand]]></category>
		<category><![CDATA[standards]]></category>
		<category><![CDATA[transitions]]></category>
		<category><![CDATA[Web Standards]]></category>

		<guid isPermaLink="false">http://blog.assortedgarbage.com/?p=744</guid>
		<description><![CDATA[On a recent project, I spent the better part of an hour (okay, maybe longer) fighting with what I would learn is an interesting anomaly in the way that Firefox (4 and 5) deal with CSS3 shorthand transition notation. What baffled me was the fact that the other players, Webkit (Safari and Chrome) and Opera [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>On a recent <a href="http://geeks4sail.com">project</a>, I spent the better part of an hour (okay, maybe longer) fighting with what I would learn is an interesting anomaly in the way that Firefox (4 and 5) deal with CSS3 shorthand transition notation. What baffled me was the fact that the other players, Webkit (Safari and Chrome) and Opera browsers, worked properly (or least what I thought was proper) with the exact same code. The premise was to have an area with a fixed height, set to overflow: hidden, but then allow the site navigation to scroll (transition) to the proper anchor, resizing the content box&#8217;s height to accommodate the contents while keeping the other contents hidden.</p>
<p>To illustrate the problem, have a look at this simplified example:</p>
<style>
.wrapper { width: 450px; height: 250px; border: 2px solid #452818; background-color: rgba(255,255,255,.4); padding: 4px; overflow: hidden; margin-bottom: 30px;} .wrapper div { float: left; width: 215px; margin-right: 10px; } .one { -webkit-transition: -webkit-transform 2s linear 0; -moz-transition: -moz-transform 2s linear 0; -o-transition: -o-transform 2s linear 0; -ms-transition: transform 2s linear 0; transition: transform 2s linear 0; } .two { -webkit-transition-property: -webkit-transform; -webkit-transition-duration: 2s; -webkit-transition-timing-function: linear; -webkit-transition-delay: 0; -moz-transition-property: -moz-transform; -moz-transition-duration: 2s; -moz-transition-timing-function: linear; -moz-transition-delay: 0; -ms-transition-property: -ms-transform; -ms-transition-duration: 2s; -ms-transition-timing-function: linear; -ms-transition-delay: 0; -o-transition-property: -o-transform; -o-transition-duration: 2s; -o-transition-timing-function: linear; -o-transition-delay: 0; transition-property: transform; transition-duration: 2s; transition-timing-function: linear; transition-delay: 0; } .one:hover, .two:hover { -moz-transform: translateY(-100px); -webkit-transform: translateY(-100px); -o-transform: translateY(-100px); transform: translateY(-100px); }
</style>
<div class="wrapper">
<div class="one">
<p>Sed do eiusmod tempor incididunt ut enim ad minim veniam, excepteur sint occaecat. Quis nostrud exercitation ullamco laboris nisi lorem ipsum dolor sit amet. Mollit anim id est laborum. Consectetur adipisicing elit, ut enim ad minim veniam, eu fugiat nulla pariatur. In reprehenderit in voluptate qui officia deserunt sunt in culpa.</p>
<p>Duis aute irure dolor ut enim ad minim veniam, velit esse cillum dolore. Quis nostrud exercitation. Ut labore et dolore magna aliqua.</p>
<p>Velit esse cillum dolore ut enim ad minim veniam, ullamco laboris nisi. Duis aute irure dolor sed do eiusmod tempor incididunt lorem ipsum dolor sit amet. Velit esse cillum dolore qui officia deserunt ut labore et dolore magna aliqua.</p>
<p>Mollit anim id est laborum. Ut aliquip ex ea commodo consequat. Eu fugiat nulla pariatur.</p>
<p>Ut enim ad minim veniam, velit esse cillum dolore qui officia deserunt. Sunt in culpa. Ullamco laboris nisi ut enim ad minim veniam, ut aliquip ex ea commodo consequat. Ut labore et dolore magna aliqua. Sunt in culpa consectetur adipisicing elit, mollit anim id est laborum.</p>
</div>
<div class="two">
<p>Sed do eiusmod tempor incididunt ut enim ad minim veniam, excepteur sint occaecat. Quis nostrud exercitation ullamco laboris nisi lorem ipsum dolor sit amet. Mollit anim id est laborum. Consectetur adipisicing elit, ut enim ad minim veniam, eu fugiat nulla pariatur. In reprehenderit in voluptate qui officia deserunt sunt in culpa.</p>
<p>Duis aute irure dolor ut enim ad minim veniam, velit esse cillum dolore. Quis nostrud exercitation. Ut labore et dolore magna aliqua.</p>
<p>Velit esse cillum dolore ut enim ad minim veniam, ullamco laboris nisi. Duis aute irure dolor sed do eiusmod tempor incididunt lorem ipsum dolor sit amet. Velit esse cillum dolore qui officia deserunt ut labore et dolore magna aliqua.</p>
<p>Mollit anim id est laborum. Ut aliquip ex ea commodo consequat. Eu fugiat nulla pariatur.</p>
<p>Ut enim ad minim veniam, velit esse cillum dolore qui officia deserunt. Sunt in culpa. Ullamco laboris nisi ut enim ad minim veniam, ut aliquip ex ea commodo consequat. Ut labore et dolore magna aliqua. Sunt in culpa consectetur adipisicing elit, mollit anim id est laborum.</p>
</div>
</div>
<p>The two columns of text each have a <code>transform: translateY(-100px);</code> applied to them on :hover. Additionally, they are both set to transition the effect – thereby &#8220;scrolling&#8221; the text up by 100px. Simple enough. And if you are looking at this in anything other than Firefox, both columns behave the same. <span id="more-744"></span>Of course, if you are looking in Internet Explorer, you won&#8217;t see anything because even with IE9, transforms are not supported. UPDATE: I&#8217;ve added the -ms- prefix for transforms/transitions, and in IE10 this works as it does in the other standards-compliant browsers.</p>
<p>Being that I like to write CSS shorthand when possible (but am moving back away from it for many CSS3 techniques, especially backgrounds), I wrote the transition line in shorthand. Simply <code>transition: transition 2s linear 0;</code> (with the browser specific code omitted for the moment). Testing in Webkit (which is what I use as my initial dev environment browser) showed everything was working properly. So, of course, I didn&#8217;t think more about it until the project was basically complete and I began the round of testing in Firefox, Opera and, yes, IE.</p>
<p>I knew that IE was not going to perform the &#8220;scroll&#8221;, but I was completely shocked to discover that FF was simply &#8220;jumping&#8221; (as you can see in the left column of the example) – exactly the same behavior as IE. I scratched my head in wonder as I ran over to CanIUse.com to make sure that my summer vacation in the Caribbean sun hadn&#8217;t confused my recollection about FF&#8217;s support of the transition property. I was completely baffled, and, in an effort to get to the bottom of the issue, I broke the shorthand out – going from <code>-moz-transition: -moz-transform 2s linear 0;</code> to<br />
<code>-moz-transition-property: -moz-transform;<br />
-moz-transition-duration: 2s;<br />
-moz-transition-timing-function: linear;<br />
-moz-transition-delay: 0;</code></p>
<p>And suddenly things appeared to be working in FF. This is also what you see above. The left column uses shorthand, the right column uses the longhand notation.</p>
<p>Okay, the simple assumption was Firefox doesn&#8217;t support shorthand – but I knew for a fact that that couldn&#8217;t be. After looking at the code for the umpteenth time, I was as baffled as when I wrote it. But a shout-out on the Twitters revealed the answer&#8230; <strong>no &#8220;s&#8221;</strong>.</p>
<p>The &#8220;0&#8243; at the end of the shorthand doesn&#8217;t have a unit. And with that, Firefox fails to execute the entire line. But wait, the longhand version doesn&#8217;t have a unit, so what gives?! Well, that line is actually being ignored as well. But because it&#8217;s longhand, the property, duration and timing-function are all being executed. To confirm, I changed the -delay property in the longhand version and, sure enough, no delay. Going back to the shorthand version, I added the &#8220;s&#8221; to the &#8220;0&#8243;, and, problem solved!</p>
<p>Of course, this begs the question &#8220;why&#8221;, which a number of us spent Sunday afternoon discussing on the Twitters. <a href="http://twitter.com/?/tabatkins">Tab Atkins</a> confirmed that, in fact, the spec requires the unit on instances of time. So, actually, the problem isn&#8217;t a Firefox issue, but rather the fact that Chrome, Safari and Opera are &#8220;allowing&#8221; us to be slack in our code. Hmm. My position is, the default is &#8220;0s&#8221;, and in no other instance am I required to type the unit when specifying &#8220;0&#8243;, so why do I have to here? But who listens to me anyway?!</p>
<p>I happily added the stupid &#8220;s&#8221; and will definitely never make <em>that</em> mistake again&#8230; Oh, and I invoiced myself for several lost hours and frustration&#8230;! We&#8217;ll see if I pay the bill. ;-)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.assortedgarbage.com/2011/08/the-importance-of-s-in-css3-transition-shorthand/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Honeycomb tip: Changing the browser&#8217;s user agent string</title>
		<link>http://blog.assortedgarbage.com/2011/07/honeycomb-tip-changing-the-browsers-user-agent-string/</link>
		<comments>http://blog.assortedgarbage.com/2011/07/honeycomb-tip-changing-the-browsers-user-agent-string/#comments</comments>
		<pubDate>Mon, 25 Jul 2011 20:01:08 +0000</pubDate>
		<dc:creator><![CDATA[Greg]]></dc:creator>
				<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Browser]]></category>
		<category><![CDATA[Galaxy Tab]]></category>
		<category><![CDATA[Honeycomb]]></category>
		<category><![CDATA[UserAgent]]></category>

		<guid isPermaLink="false">http://blog.assortedgarbage.com/?p=736</guid>
		<description><![CDATA[I&#8217;ve just spent the weekend getting my new Samsung Galaxy Tab 10.1 all setup &#8211; which included downloading a couple of browsers. I&#8217;ve been using the Dolphin browser on my Android phones for quite some time, and really liked it because of the fact that it can be set to identify itself as a desktop [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve just spent the weekend getting my new Samsung Galaxy Tab 10.1 all setup &#8211; which included downloading a couple of browsers. I&#8217;ve been using the Dolphin browser on my Android phones for quite some time, and really liked it because of the fact that it can be set to identify itself as a desktop browser. While I appreciate an optimized mobile experience on my phone, there are times when I want to see the &#8220;real&#8221; web. Unfortunately, on many sites, user agent sniffing rolls my device back to the mobile experience &#8211; hence the beauty of being able to set the user agent string in the Dolphin browser. This problem is even more pronounced on tablets, which are identified as &#8220;Android&#8221; and therefore get rolled to the mobile site.</p>
<p>Sadly, the Dolphin browser is not really optimized for Honeycomb, and its interface can look a little small on large tablets. So I have found myself using the native browser more and more. <span id="more-736"></span>But the native browser suffers from the &#8220;Android&#8221; user agent string &#8211; but it doesn&#8217;t have to. There is a hidden (and I mean really hidden) gem that allows you to change the user agent string, among other things (like a Javascript console)!</p>
<p>To change the user agent string, start by opening a tab in the browser and typing &#8220;about:debug&#8221;. Be sure that the tablet&#8217;s &#8220;intelligence&#8221; doesn&#8217;t put a space between the colon and &#8220;debug&#8221;. Hit the Return key to &#8220;load&#8221; the page.</p>
<p class="pic"><a href="http://blog.assortedgarbage.com/wp-content/2011/07/Honeycomb1.jpg" rel="lightbox[736]"><img class="alignnone size-medium wp-image-737" title="Honeycomb Browser" src="http://blog.assortedgarbage.com/wp-content/2011/07/Honeycomb1-300x187.jpg" alt="" width="300" height="187" /></a></p>
<p>You won&#8217;t see anything load in the page, but if you go to the options menu in the upper right hand corner, you will see some new entries at the bottom of the list. </p>
<p class="pic"><a href="http://blog.assortedgarbage.com/wp-content/2011/07/Honeycomb2.jpg" rel="lightbox[736]"><img class="alignnone size-medium wp-image-738" title="New Debug items" src="http://blog.assortedgarbage.com/wp-content/2011/07/Honeycomb2-300x187.jpg" alt="" width="300" height="187" /></a></p>
<p>Choose Settings and you will see an option for Debug. Tap the UAString item and choose Desktop. </p>
<p class="pic"><a href="http://blog.assortedgarbage.com/wp-content/2011/07/honeycomb3.jpg" rel="lightbox[736]"><img class="alignnone size-medium wp-image-739" title="UAString" src="http://blog.assortedgarbage.com/wp-content/2011/07/honeycomb3-300x187.jpg" alt="" width="300" height="187" /></a></p>
<p>Viola! Your tablet will no longer identify itself as a &#8220;mobile device&#8221;, but rather as a &#8220;desktop&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.assortedgarbage.com/2011/07/honeycomb-tip-changing-the-browsers-user-agent-string/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>New Dreamweaver Feature: W3C Validator Integration</title>
		<link>http://blog.assortedgarbage.com/2011/06/new-dreamweaver-feature-w3c-validator-integration/</link>
		<comments>http://blog.assortedgarbage.com/2011/06/new-dreamweaver-feature-w3c-validator-integration/#comments</comments>
		<pubDate>Thu, 09 Jun 2011 23:30:15 +0000</pubDate>
		<dc:creator><![CDATA[Greg]]></dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Dreamweaver]]></category>
		<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[CS5]]></category>
		<category><![CDATA[HTML5]]></category>

		<guid isPermaLink="false">http://blog.assortedgarbage.com/?p=722</guid>
		<description><![CDATA[I will be the first to admit that I rarely think about validating my pages while I work. Okay, sometimes I don&#8217;t validate at all. I know I should, but I can usually come up with a good excuse for not doing it – an elephant ate my homework still works on occasion. ;-) And [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>I will be the first to admit that I rarely think about validating my pages while I work. Okay, sometimes I don&#8217;t validate at all. I know I should, but I can usually come up with a good excuse for not doing it – an elephant ate my homework still works on occasion. ;-) And as a Dreamweaver user, validating against the <a title="W3C Validator" href="http://validator.w3.org">W3C validator</a> was always that &#8220;extra step&#8221; that I didn&#8217;t feel like taking. But with <a title="Dreamweaver CS5.5" href="http://adobe.com/dreamweaver">Dreamweaver CS5.5</a>, there really is no excuse anymore – it&#8217;s now built directly into the app!</p>
<div class="pic"><a rel="lightbox" href="http://blog.assortedgarbage.com/wp-content/2011/06/w3c-01.jpg"><img class="alignnone size-medium wp-image-726" title="W3C Validator" src="http://blog.assortedgarbage.com/wp-content/2011/06/w3c-01-300x140.jpg" alt="" width="300" height="140" /></a></div>
<p>When you&#8217;re ready to validate your page, simply click the W3C Validator button and choose whether you want the local page on your computer validated or a page on a server.</p>
<p><span id="more-722"></span></p>
<div class="pic"><a href="http://blog.assortedgarbage.com/wp-content/2011/06/w3c-02.jpg" rel="lightbox[722]"><img class="alignnone size-medium wp-image-727" title="Errors and Warnings List" src="http://blog.assortedgarbage.com/wp-content/2011/06/w3c-02-300x38.jpg" alt="" width="300" height="38" /></a></div>
<p>If you have any errors, they will appear in the W3C Validation panel. Simply double click each error to be taken directly to the culprit in Code View. You can also choose to save the report if you&#8217;re into that sort of thing.</p>
<p>But very often during development, the list of errors can be quite extensive – and even irrelevant. For example, I don&#8217;t bother to put alt text (or even an empty alt attribute) on placeholder images that aren&#8217;t actually going to be used in the final page. For that reason, Dreamweaver also allows you to suppress errors from a report. Right click on the desired error and choose Hide Error to add it to your list of suppressed errors.</p>
<div class="pic"><a href="http://blog.assortedgarbage.com/wp-content/2011/06/w3c-03.jpg" rel="lightbox[722]"><img class="alignnone size-medium wp-image-728" title="Manage Hidden Errors and Warnings" src="http://blog.assortedgarbage.com/wp-content/2011/06/w3c-03-300x239.jpg" alt="" width="300" height="239" /></a></div>
<p>Of course, you&#8217;ll want to make sure you&#8217;ve actually fixed those errors before going live. Therefore, Dreamweaver CS5.5 allows you to remove errors from the list of Hidden Errors by choosing Settings from the W3C Validator button and clicking the Manage button.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.assortedgarbage.com/2011/06/new-dreamweaver-feature-w3c-validator-integration/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Best Tip Ever: Using Online CSS3 Tools In Dreamweaver</title>
		<link>http://blog.assortedgarbage.com/2011/05/using-online-css3-tools-in-dw/</link>
		<comments>http://blog.assortedgarbage.com/2011/05/using-online-css3-tools-in-dw/#comments</comments>
		<pubDate>Fri, 27 May 2011 10:25:50 +0000</pubDate>
		<dc:creator><![CDATA[Greg]]></dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Dreamweaver]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Tech Tips]]></category>

		<guid isPermaLink="false">http://blog.assortedgarbage.com/?p=699</guid>
		<description><![CDATA[One of the coolest things about the development of CSS3 is all of the experimental sites and online tools being created to help us all learn the new syntax, properties, etc. There are literally tons of great ones like css3maker.com, John Allsopp&#8217;s  westciv tools, border-image.com, css3generator.com and many more. In fact, even Microsoft has gotten in [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>One of the coolest things about the development of CSS3 is all of the experimental sites and online tools being created to help us all learn the new syntax, properties, etc. There are literally tons of great ones like <a href="http://www.css3maker.com/">css3maker.com</a>, John Allsopp&#8217;s  <a href="http://www.westciv.com/tools/">westciv tools</a>, <a title="Border Image Maker" href="http://border-image.com/">border-image.com</a>, <a href="http://www.css3generator.com/">css3generator.com</a> and many more. In fact, even Microsoft has gotten in the game with their <a title="Follow the Progress of the Internet Explorer Platform" href="http://ie.microsoft.com/testdrive">test drive site</a> for IE 9 (and Preview Release of IE 10). But even with the great enhancements to <a title="Dreamweaver Feature Page" href="http://www.adobe.com/products/dreamweaver.html">Dreamweaver CS5.5</a>, using these tools still requires bouncing out to the browser, using the online tool and then copy/pasting the generated code back into your CSS in Dreamweaver – or does it?</p>
<p>Actually, one of the best features of Dreamweaver, Live View, can be used in a way that you might not have thought of. We know that Live View allows us to see the page, rendered by the embedded Webkit engine, exactly as it would appear in Webkit-based browsers. But there is also an interesting text field that becomes active in Live View at the top of the document window – an address field – just like in a browser!</p>
<p class="pic"><a href="http://blog.assortedgarbage.com/wp-content/2011/05/liveview-blank.jpg" rel="lightbox[699]"><img class="alignnone size-medium wp-image-703" title="Address Input Field" src="http://blog.assortedgarbage.com/wp-content/2011/05/liveview-blank-300x69.jpg" alt="The address field in Live View" width="300" height="69" /></a></p>
<p>And yes, you can type any URL into the field. Dreamweaver, just like the browser, will load the page in Live View. If you are in Split View mode, you might notice that the actual HTML from the page you are viewing is not there because Dreamweaver is still showing the code of your original page.</p>
<p class="pic"><a href="http://blog.assortedgarbage.com/wp-content/2011/05/LiveCode.jpg" rel="lightbox[699]"><img class="alignnone size-medium wp-image-714" title="Live Code" src="http://blog.assortedgarbage.com/wp-content/2011/05/LiveCode-300x282.jpg" alt="Live Code displaying the generated source" width="300" height="282" /></a></p>
<p>But click the Live Code button, and Dreamweaver will display the generated source of the page you are looking at — complete with all the corresponding CSS and Javascript files appearing in the related files bar. It&#8217;s a great way to learn from what others are doing.</p>
<p>To get the most out of this feature, I have simply created a &#8220;tools page&#8221; with links to all of my favorite online tools. In order to interact with your local tools page, you will need to choose &#8220;Follow Link&#8221; or, even better, &#8220;Follow Links Continuously&#8221; from the Live View Options menu.</p>
<p class="pic"><a href="http://blog.assortedgarbage.com/wp-content/2011/05/followlinks.jpg" rel="lightbox[699]"><img class="alignnone size-medium wp-image-704" title="Follow Links" src="http://blog.assortedgarbage.com/wp-content/2011/05/followlinks-300x235.jpg" alt="The follow links continuously command " width="300" height="235" /></a></p>
<p>So now, when I start Dreamweaver, I immediately open this page, turn on Live View, enable the Follow Links Continuously option and then go about working on my projects. Any time that I need a gradient, transition or anything more complex that I don&#8217;t want to &#8220;think about&#8221; how to create, I switch to my &#8220;tools page&#8221; tab where all my online friends are ready to help. I can then easily copy their code into the stylesheet that I am working on.</p>
<p class="pic"><a href="http://blog.assortedgarbage.com/wp-content/2011/05/liveview.jpg" rel="lightbox[699]"><img class="alignnone size-medium wp-image-705" title="Colorzilla in Live View" src="http://blog.assortedgarbage.com/wp-content/2011/05/liveview-300x253.jpg" alt="Live View rendering Colorzilla's Gradient Maker" width="300" height="253" /></a></p>
<p>Let me know what you think about this – or if you have an even better &#8220;Best Tip Ever&#8221;!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.assortedgarbage.com/2011/05/using-online-css3-tools-in-dw/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Resolving &#8220;Android SDK failed to install&#8221; with Dreamweaver CS5.5</title>
		<link>http://blog.assortedgarbage.com/2011/05/resolving-android-sdk-failed-to-install-with-dreamweaver-cs5-5/</link>
		<comments>http://blog.assortedgarbage.com/2011/05/resolving-android-sdk-failed-to-install-with-dreamweaver-cs5-5/#comments</comments>
		<pubDate>Sun, 22 May 2011 15:35:12 +0000</pubDate>
		<dc:creator><![CDATA[Greg]]></dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Dreamweaver]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[CS5]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[phonegap]]></category>

		<guid isPermaLink="false">http://blog.assortedgarbage.com/?p=696</guid>
		<description><![CDATA[One of the biggest problems with linking to anything on the web is when the address of that file changes. Sadly, this happened recently with a file that was used by Dreamweaver CS5.5 to install the Android SDK via the Easy Install button on the Configure Application Framework dialog (Site &#62; Mobile Applications &#62; Configure [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>One of the biggest problems with linking to anything on the web is when the address of that file changes. Sadly, this happened recently with a file that was used by <a title="Dreamweaver Product page" href="http://adobe.com/products/dreamweaver/">Dreamweaver CS5.5</a> to install the Android SDK via the Easy Install button on the Configure Application Framework dialog (Site &gt; Mobile Applications &gt; Configure Application Framework).</p>
<p>The Dreamweaver team has released instructions which you can find here: <a title="How to fix the error &quot;Android SDK failed to install&quot;" href="http://kb2.adobe.com/cps/904/cpsid_90408.html">http://kb2.adobe.com/cps/904/cpsid_90408.htm</a>l</p>
<p>Basically, you&#8217;ll need to replace the NativeAppCommon.js file located at [Dreamweaver Install Location]/Configuration/NativeAppFramework/. The entire process takes less than a minute to complete.</p>
<p>If you have already installed the Android Framework, you don&#8217;t &#8220;have&#8221; to do this, however you might want to go ahead and grab the updated file just in case you ever want to reinstall the framework with Dreamweaver&#8217;s Easy Install.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.assortedgarbage.com/2011/05/resolving-android-sdk-failed-to-install-with-dreamweaver-cs5-5/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>Updating jQuery and jQuery Mobile in Dreamweaver CS5.5</title>
		<link>http://blog.assortedgarbage.com/2011/05/updating-jquery-in-dreamweaver-cs5-5/</link>
		<comments>http://blog.assortedgarbage.com/2011/05/updating-jquery-in-dreamweaver-cs5-5/#comments</comments>
		<pubDate>Thu, 19 May 2011 17:30:19 +0000</pubDate>
		<dc:creator><![CDATA[Greg]]></dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Dreamweaver]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[CS5]]></category>
		<category><![CDATA[jquery mobile]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://blog.assortedgarbage.com/?p=678</guid>
		<description><![CDATA[Holy Javascript Libraries, Batman! In case you&#8217;re keeping score, Adobe began shipping Dreamweaver CS5.5 less than two weeks ago with support for jQuery and jQuery Mobile. But, the versions included in Dreamweaver, jQuery 1.5 and jQuery Mobile 1.0a3, are already out of date! Because before you could even get your copy installed, the jQuery team [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Holy Javascript Libraries, Batman! In case you&#8217;re keeping score, Adobe began shipping <a title="Dreamweaver Product Page" href="http://www.adobe.com/dreamweaver/">Dreamweaver CS5.5</a> less than two weeks ago with support for <a title="jQuery Framework" href="http://jquery.com">jQuery</a> and <a title="jQuery Mobile Framework" href="http://jquerymobile.com">jQuery Mobile</a>. But, the versions included in Dreamweaver, jQuery 1.5 and jQuery Mobile 1.0a3, are already out of date! Because before you could even get your copy installed, the jQuery team released a significant upgrade to the core jQuery library – version 1.6. Along the way, the jQuery Mobile framework has also been updated to version 1.0a4, which includes several important bug fixes. So, if you are a Dreamweaver user and you want to develop jQuery Mobile sites and applications with these updated versions of the libraries, what are you supposed to do? Update your libraries, of course&#8230; here&#8217;s how&#8230;<span id="more-678"></span></p>
<p>Before proceeding, you&#8217;ll obviously want to go grab the updated libraries themselves. For the core jQuery library, I suggest using<a title="jQuery 1.6 minified" href="http://code.jquery.com/jquery-1.6.min.js"> the minified version</a>. Because images are also part of jQuery Mobile, I recommend grabbing the <a title="jQuery Mobile Framework version 1.0a4" href="http://jquerymobile.com/blog/2011/04/07/jquery-alpha-4-1-maintenance-release/#download">zipped version of the framework</a>. After you download and unzip the folder, you&#8217;ll find a full version of the css and js files. I recommend using the minified versions, so go ahead and delete the full versions of the files (ie, they don&#8217;t have &#8220;.min&#8221; in their names).</p>
<p class="pic"><a href="http://blog.assortedgarbage.com/wp-content/2011/05/jquerymobile16.jpg" rel="lightbox[678]"><img class="alignnone size-full wp-image-685" title="jQuery Mobile 1.0a4" src="http://blog.assortedgarbage.com/wp-content/2011/05/jquerymobile16.jpg" alt="" width="300" height="242" /></a></p>
<p>Arguably one of the most powerful features of Dreamweaver is its extensibility. In fact, the application itself is built around the very technologies that it itself writes, namely HTML, CSS and Javascript. All of these pieces are located in the Configuration folder that you can find where Dreamweaver is installed on your computer. For me, since I&#8217;m a Mac user, it&#8217;s at Applications&gt;Adobe Dreamweaver CS5.5&gt;Configuration. There are tons of other folders in the Configuration folder, but the one that holds the files that we are interested in is the Third Party Source Code folder.</p>
<p class="pic"><a href="http://blog.assortedgarbage.com/wp-content/2011/05/DW-Configuration.jpg" rel="lightbox[678]"><img class="alignnone size-medium wp-image-686" title="DW Configuration Folder" src="http://blog.assortedgarbage.com/wp-content/2011/05/DW-Configuration-300x252.jpg" alt="" width="300" height="252" /></a></p>
<p>Inside this folder, you&#8217;ll find the jquery-mobile folder. If you want to backup the folder, feel free. None of the sites that you have worked on previously are reliant on these files, as Dreamweaver makes a local copy in each site you create (if you are not using the CDN versions of the Mobile Starter Pages &#8211; which we will talk about later). Replace the two jquery-mobile files (css and js) with your newly downloaded files. Replace the entire images folder as well. Finally, replace the jquery-1.5.min.js file with your jquery-1.6.1.min.js file (or whatever you named it).</p>
<p>One last step and your update is complete. When you choose to create a new file from the New Document dialog, Dreamweaver makes a copy of the selected file from the Configuration folder and places it in your site file. The Mobile Starter layouts (New Document &gt; Page from Sample &gt; Mobile Starters) are located in Configuration &gt; BuiltIn &gt; Mobile Starters. There are 3 pages &#8211; two of which reference the files that you have now deleted, jQueryMobileLocalMultiPage.htm and jQueryMobilePhoneGapMultiPage.htm.</p>
<p class="pic"><a href="http://blog.assortedgarbage.com/wp-content/2011/05/starterlayout.jpg" rel="lightbox[678]"><img class="alignnone size-medium wp-image-687" title="Default Starter Layout" src="http://blog.assortedgarbage.com/wp-content/2011/05/starterlayout-300x239.jpg" alt="" width="300" height="239" /></a></p>
<p>Open each of these files in Dreamweaver. You&#8217;ll see in the head of the document links to the two old jQuery Javascript files and the old CSS file. Simply update these links to point to your new files and save the document. Test that everything worked properly by closing the file, then creating a new page from the Sample that you just changed. Make sure to save the file into a site to make sure that Dreamweaver copies the proper files into the site.</p>
<p>Finally, if you want to change the CDN version, it points to the jquery repository online, simply update jQueryMobileMultiPage.htm to point to the location of the CDN versions of the files.</p>
<p>Happy mobile coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.assortedgarbage.com/2011/05/updating-jquery-in-dreamweaver-cs5-5/feed/</wfw:commentRss>
		<slash:comments>45</slash:comments>
		</item>
	</channel>
</rss>
