<?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>Robert Spangler&#187; Code Snippets</title>
	<atom:link href="http://robspangler.com/blog/category/code-snippets/feed/" rel="self" type="application/rss+xml" />
	<link>http://robspangler.com</link>
	<description>Design - Web - Creative</description>
	<lastBuildDate>Thu, 29 Dec 2011 21:26:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>JW Player for WordPress &#8211; Playlist Not Displaying</title>
		<link>http://robspangler.com/blog/jw-player-wordpress-playlist-not-displaying/</link>
		<comments>http://robspangler.com/blog/jw-player-wordpress-playlist-not-displaying/#comments</comments>
		<pubDate>Tue, 11 Oct 2011 16:17:58 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://robspangler.com/?p=463</guid>
		<description><![CDATA[JW Player for WordPress is a great little solution to locally house and present your videos. However, I recently had an issue where my playlist for JW Player would not display. I could see that it was loading and pulling &#8230; <a href="http://robspangler.com/blog/jw-player-wordpress-playlist-not-displaying/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>JW Player for WordPress</strong> is a great little solution to locally house and present your videos. However, I recently had an issue where my playlist for JW Player would not display. I could see that it was loading and pulling in the list of videos, but even with my Advanced Settings being correct it still wouldn&#8217;t show.</p>
<p><img style="border: 2px solid #ccc;" class="size-full wp-image-473" title="JW Player Settings" src="http://robspangler.com/wp-content/uploads/2011/10/jw-settings.png" alt="" width="597" height="304" /></p>
<p>With some help from <strong>LongTail Video Support</strong> (thank you!) I found a solution.</p>
<p>It turns out that sometimes the config attributes for the playlist are not carried over. So, you can force them in your [jwplayer] shortcode attributes.</p>
<p>Here&#8217;s some sample code to show you what I&#8217;m talking about.</p>
<p>Original:</p>
<pre class="brush: plain; title: ; notranslate">[jwplayer playlistid=&quot;123&quot;]</pre>
<p>Updated:</p>
<pre class="brush: plain; title: ; notranslate">[jwplayer playlistid=&quot;123&quot; playlist.position=&quot;bottom&quot; playlist.size=&quot;250&quot;]</pre>
<p>The key attributes being &#8220;<strong>playlist.position</strong>&#8221; and &#8220;<strong>playlist.size</strong>&#8221; I hope this helps!</p>
]]></content:encoded>
			<wfw:commentRss>http://robspangler.com/blog/jw-player-wordpress-playlist-not-displaying/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JQuery .load() Doesn&#8217;t Work in Chrome</title>
		<link>http://robspangler.com/blog/jquery-load-doesnt-work-in-chrome/</link>
		<comments>http://robspangler.com/blog/jquery-load-doesnt-work-in-chrome/#comments</comments>
		<pubDate>Fri, 25 Mar 2011 16:31:43 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://robspangler.com/?p=436</guid>
		<description><![CDATA[If you do any front-end development locally (and test in Google Chrome) you may have run into a problem using the .load() function or other AJAX requests. The functions are just unable to return any data, It boils down to &#8230; <a href="http://robspangler.com/blog/jquery-load-doesnt-work-in-chrome/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you do any front-end development locally (and test in Google Chrome) you may have run into a problem using the .load() function or other AJAX requests. The functions are just unable to return any data, It boils down to a permissions issue with Chrome pointing to local files.</p>
<p>You can resolve this by uploading your files to a live production server, but that is a pain, especially if you&#8217;re still in development.</p>
<p><strong>There&#8217;s a very simple solution:</strong></p>
<p>1. Close Chrome completely<br />
2. Launch Chrome from Terminal with the &#8220;&#8211;allow-file-access-from-files&#8221; argument</p>
<pre class="brush: plain; title: ; notranslate">open /Applications/Google\ Chrome.app --args --allow-file-access-from-files</pre>
<p>This will allow that session of Chrome to access local files. Note: Once you close and reopen the application you&#8217;ll no longer have access to local files again.</p>
]]></content:encoded>
			<wfw:commentRss>http://robspangler.com/blog/jquery-load-doesnt-work-in-chrome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Blog Posted: Creating a Checkout Progress Bar</title>
		<link>http://robspangler.com/blog/new-blog-posted-creating-an-accessible-checkout-progress-bar/</link>
		<comments>http://robspangler.com/blog/new-blog-posted-creating-an-accessible-checkout-progress-bar/#comments</comments>
		<pubDate>Fri, 07 Dec 2007 14:23:31 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[eCommerce]]></category>

		<guid isPermaLink="false">http://localhost:8888/robspangler.com/blog/new-blog-posted-creating-an-accessible-checkout-progress-bar/</guid>
		<description><![CDATA[I just posted a new blog over on the "eCommerce Blog":http://www.groovecommerce.com/ecommerce-blog/ at Groove. So if you're interested in "creating an accessible progress bar":http://www.groovecommerce.com/ecommerce-blog/featured/creating-an-accessible-checkout-progress-bar/ for your checkout process this is for you! <a href="http://robspangler.com/blog/new-blog-posted-creating-an-accessible-checkout-progress-bar/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I just posted a new blog over on the <a href="http://www.groovecommerce.com/ecommerce-blog/">eCommerce Blog</a> at Groove. So if you&#8217;re interested in <a href="http://www.groovecommerce.com/ecommerce-blog/featured/creating-an-accessible-checkout-progress-bar/">creating an accessible progress bar</a> for your checkout process this is for you!</p>
]]></content:encoded>
			<wfw:commentRss>http://robspangler.com/blog/new-blog-posted-creating-an-accessible-checkout-progress-bar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>:hover Pseudo Class Bug Fix for IE6</title>
		<link>http://robspangler.com/blog/hover-pseudo-class-bug-fix-for-ie6/</link>
		<comments>http://robspangler.com/blog/hover-pseudo-class-bug-fix-for-ie6/#comments</comments>
		<pubDate>Thu, 05 Jul 2007 18:55:43 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://localhost:8888/robspangler.com/blog/hover-pseudo-class-bug-fix-for-ie6/</guid>
		<description><![CDATA[<p>For those of you familiar with the <a href="http://www.w3.org/TR/REC-CSS2/selector.html#dynamic-pseudo-classes">:hover pseudo class</a>, you probably know that IE6 and below is not.</p>
<p>A simple example of the :hover pseudo class in action is when you mouse over a Hyperlink and it changes color, or it becomes underlined or something dazzling like that. A more advanced example is applying :hover to other tags such as a &#60;td&#62; to make the data cell of a table change color, this is the example I'm going to talk about today.</p> <a href="http://robspangler.com/blog/hover-pseudo-class-bug-fix-for-ie6/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>For those of you familiar with the <a href="http://www.w3.org/TR/REC-CSS2/selector.html#dynamic-pseudo-classes">:hover pseudo class</a>, you probably know that IE6 and below is not.</p>
<p>A simple example of the :hover pseudo class in action is when you mouse over a Hyperlink and it changes color, or it becomes underlined or something dazzling like that. A more advanced example is applying :hover to other tags such as a &lt;td&gt; to make the data cell of a table change color, this is the example I&#8217;m going to talk about today.</p>
<p>To get this working in IE6 I have gone through a large amount of resources with javascript fixes, that work—but can be overly complicated. I have also attempted to use some .htc behavior fixes, which can be incredibly finicky and are also invalid CSS according to W3 standards.</p>
<p>But don&#8217;t worry! There is hope! Finally after wrestling with this issue for a long time and doing some good investigating for a decent fix, I found it through the use of jQuery.</p>
<p><strong>The Script:</strong></p>
<pre>&lt;script src="/include/js/jquery.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
$(function() {
        $('#my-calendar td').hover(function(){
               $(this).addClass('over');
        }, function() {
               $(this).removeClass('over');
        });
});
&lt;/script&gt;</pre>
<p><strong>The CSS:</strong></p>
<pre>.over {background-color: #ffff00;}</pre>
<p><strong>The HTML:</strong></p>
<pre>&lt;table id="my-calendar"&gt;
    &lt;tr&gt;
        &lt;td&gt;hover over me!&lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;</pre>
<p>Basically—similar to some JavaScript examples you may have seen jQuery uses a mouseover (hover) and adds the “over” class to your &lt;td&gt;. Likewise—when you mouse out it simply removes the class. It&#8217;s that simple and it actually works!</p>
<p><a class="popup" title="Very Basic!" href="/downloads/example_ie6-hover-fix.php">View the Example</a><br />
<a class="popup" title="Download from JQuery.com" href="http://docs.jquery.com/Downloading_jQuery">Download JQuery</a></p>
]]></content:encoded>
			<wfw:commentRss>http://robspangler.com/blog/hover-pseudo-class-bug-fix-for-ie6/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: basic (User agent is rejected)
Database Caching 21/30 queries in 0.070 seconds using disk: basic

Served from: robspangler.com @ 2012-02-06 02:37:17 -->
