<?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>does not validate &#187; jQuery</title>
	<atom:link href="http://doesnotvalidate.com/tag/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://doesnotvalidate.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 02 Jul 2010 06:31:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using jQuery to Build a Better Flash Fly-Down Nav</title>
		<link>http://doesnotvalidate.com/2009/using-jquery-to-build-a-better-flash-fly-down-navigation/</link>
		<comments>http://doesnotvalidate.com/2009/using-jquery-to-build-a-better-flash-fly-down-navigation/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 18:10:57 +0000</pubDate>
		<dc:creator>Dane</dc:creator>
				<category><![CDATA[left]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Dane Hesseldahl]]></category>
		<category><![CDATA[dane@doesnotvalidate.com]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[odopod]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://doesnotvalidate.com/?p=766</guid>
		<description><![CDATA[It seems simple, but one of the most troublesome tasks is to get a Flash fly-down (or drop-down) menu to reliably collapse when it sits over non-Flash content.  Some browsers (IE) have trouble recognizing the  change of control from the Flash Player application instance to the browser.  For that reason Flash won&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>It seems simple, but one of the most troublesome tasks is to get a Flash fly-down (or drop-down) menu to reliably collapse when it sits over non-Flash content.  Some browsers (IE) have trouble recognizing the  change of control from the Flash Player application instance to the browser.  For that reason Flash won&#8217;t always read when the mouse has moved outside the bounds of the Flash Player&#8230; worse still &#8211; it just receives no notification at all, which means that if you&#8217;re relying on Flash to read when the mouse has moved outside the bounds of the navigation &#8211; you&#8217;re out of luck.  </p>
<p><br/>Over the years I&#8217;ve come up with many tricks to help deal with this &#8211; some more effective than others.  Today I found the best solution to date.  It&#8217;s not 100% effective, but it&#8217;s much better than any of the other options that I used.</p>
<p><br/>I decided to try using the <a href='http://www.jquery.com'>jQuery</a> <a href='http://docs.jquery.com/Events/hover#overout'>hover method</a> to detect when the mouse leaves the Flash&#8217;s containing DIV element in the DOM.</p>
<p><br/>The AJAX code looked something like this:</p>
<p><br/></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'document'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#flashNavReplace'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hover</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;">//rollover functionality here</span>
        <span style="color: #009900;">&#125;</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>
            getFlashMovie<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;flashNavReplace&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">jsCloseNavigation</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> getFlashMovie<span style="color: #009900;">&#40;</span>movieName<span style="color: #009900;">&#41;</span> 
<span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> isIE <span style="color: #339933;">=</span> navigator.<span style="color: #660066;">appName</span>.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Microsoft&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #009900;">&#40;</span>isIE<span style="color: #009900;">&#41;</span> <span style="color: #339933;">?</span> window<span style="color: #009900;">&#91;</span>movieName<span style="color: #009900;">&#93;</span> <span style="color: #339933;">:</span> document<span style="color: #009900;">&#91;</span>movieName<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>and then the Flash side uses some code like this:</p>
<p><br/></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">external</span>.<span style="color: #006600;">ExternalInterface</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">/**************************************************************************
* 
* CONSTRUCTOR
* 
**************************************************************************/</span>
<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> TopNavigation<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
    <span style="color: #808080; font-style: italic;">//setup the JS callback</span>
    ExternalInterface.<span style="color: #006600;">addCallback</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;jsCloseNavigation&quot;</span>, jsClose<span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> jsClose<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
<span style="color: #66cc66;">&#123;</span>
    Logger.<span style="color: #0066CC;">log</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;CALLED FROM JS&quot;</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #808080; font-style: italic;">//close the nav</span>
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

<p><br/>This works for me pretty much all of the time&#8230; I can break it if I really try, but it works great for normal usage.</p>
]]></content:encoded>
			<wfw:commentRss>http://doesnotvalidate.com/2009/using-jquery-to-build-a-better-flash-fly-down-navigation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rebus Farms</title>
		<link>http://doesnotvalidate.com/2008/rebus-farms/</link>
		<comments>http://doesnotvalidate.com/2008/rebus-farms/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 23:10:09 +0000</pubDate>
		<dc:creator>Dane</dc:creator>
				<category><![CDATA[left]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[portfolio]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[welikesmall]]></category>

		<guid isPermaLink="false">http://doesnotvalidate.com/?p=254</guid>
		<description><![CDATA[
URL: http://www.rebusfarms.com
AGENCY: Freelance
LAUNCH: August, 2008
ROLE: Lead Developer
TECHNOLOGIES: Flash, Python + Django, XHTML + CSS, jQuery
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.rebusfarms.com/" target="_blank"><img src="http://doesnotvalidate.com/wp-content/uploads/rebus.jpg" alt="" title="rebus farms launches" width="460" height="371" class="alignnone size-full wp-image-97" /></a></p>
<p><strong>URL:</strong> <a href='http://www.rebusfarms.com' target="_blank">http://www.rebusfarms.com</a><br />
<strong>AGENCY:</strong> Freelance<br />
<strong>LAUNCH:</strong> August, 2008<br />
<strong>ROLE:</strong> Lead Developer<br />
<strong>TECHNOLOGIES:</strong> Flash, Python + Django, XHTML + CSS, jQuery</p>
]]></content:encoded>
			<wfw:commentRss>http://doesnotvalidate.com/2008/rebus-farms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nike 6.0</title>
		<link>http://doesnotvalidate.com/2008/nike-60/</link>
		<comments>http://doesnotvalidate.com/2008/nike-60/#comments</comments>
		<pubDate>Sun, 21 Sep 2008 23:03:09 +0000</pubDate>
		<dc:creator>Dane</dc:creator>
				<category><![CDATA[left]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Nemo]]></category>
		<category><![CDATA[Nike]]></category>
		<category><![CDATA[nike 6.0]]></category>
		<category><![CDATA[portfolio]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://doesnotvalidate.com/?p=206</guid>
		<description><![CDATA[
URL: http://www.nike6.com
AGENCY: Nemo
LAUNCH: July 2008
ROLE: Senior Developer
TECHNOLOGIES: Flash, jQuery, &#038; Wordpress
There&#8217;s a lot of AJAX that binds the two halves of this site together &#8211; one side represents that brand message, and it built in Flash.  The other side represents &#8220;The Insider&#8221; showcasing the latest news and information about the athletes.  The two [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.nike.com/nke6/v5/?undefined#/home/home/"><img src="http://doesnotvalidate.com/wp-content/uploads/nike6.jpg" alt="" title="nike6" width="460" height="315" class="alignnone size-full wp-image-207" /></a></p>
<p><br/><strong>URL: </strong><a href='http://www.nike6.com'>http://www.nike6.com</a><br />
<strong>AGENCY: </strong><a href='http://www.nemohq.com'>Nemo</a><br />
<strong>LAUNCH: </strong>July 2008<br />
<strong>ROLE: </strong>Senior Developer<br />
<strong>TECHNOLOGIES: </strong>Flash, jQuery, &#038; Wordpress</p>
<p><br/>There&#8217;s a lot of AJAX that binds the two halves of this site together &#8211; one side represents that brand message, and it built in Flash.  The other side represents &#8220;The Insider&#8221; showcasing the latest news and information about the athletes.  The two sides interact and use tagged content as a way to display relevant content based on what is currently shown on the opposite side.<br />
<br/>This site was featured on <a href='http://www.commarts.com/'>http://www.commarts.com/</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://doesnotvalidate.com/2008/nike-60/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>REBUS FARMS LAUNCHES!</title>
		<link>http://doesnotvalidate.com/2008/rebus-farms-launches/</link>
		<comments>http://doesnotvalidate.com/2008/rebus-farms-launches/#comments</comments>
		<pubDate>Sun, 21 Sep 2008 17:20:40 +0000</pubDate>
		<dc:creator>Dane</dc:creator>
				<category><![CDATA[left]]></category>
		<category><![CDATA[Dane Hesseldahl]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[Freelance]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[portfolio]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[rebus farms]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://doesnotvalidate.com/?p=96</guid>
		<description><![CDATA[
I worked with the guys over in SLC @ welikesmall to create a Python + Django powered CMS driven site for the Chicago-based production company Rebus Farms.  With the magic of jQuery, I was able to make an effective single-page portfolio site to showcase their video work.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.rebusfarms.com/" target="_blank"><img src="http://doesnotvalidate.com/wp-content/uploads/rebus.jpg" alt="" title="rebus farms launches" width="460" height="371" class="alignnone size-full wp-image-97" /></a><br />
I worked with the guys over in SLC @ <a href='http://www.welikesmall.com/'>welikesmall</a> to create a Python + Django powered CMS driven site for the Chicago-based production company <a href="http://www.rebusfarms.com/" target="_blank">Rebus Farms</a>.  With the magic of <a href='http://jquery.com/' target='_blank'>jQuery</a>, I was able to make an effective single-page portfolio site to showcase their video work.</p>
]]></content:encoded>
			<wfw:commentRss>http://doesnotvalidate.com/2008/rebus-farms-launches/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
