<?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>dangerouslyawesome &#187; javascript</title>
	<atom:link href="http://dangerouslyawesome.com/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://dangerouslyawesome.com</link>
	<description>Alex Hillman Writes Here</description>
	<lastBuildDate>Thu, 09 Feb 2012 00:41: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>another swfobject problem, deproblemed</title>
		<link>http://dangerouslyawesome.com/2006/10/another-swfobject-problem-deproblemed/</link>
		<comments>http://dangerouslyawesome.com/2006/10/another-swfobject-problem-deproblemed/#comments</comments>
		<pubDate>Fri, 20 Oct 2006 18:24:12 +0000</pubDate>
		<dc:creator>Alex Hillman</dc:creator>
				<category><![CDATA[elsewhere]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.dangerouslyawesome.com/2006/10/20/another-swfobject-problem-deproblemed/</guid>
		<description><![CDATA[flash/rich HTML coexisting is definately turning up a whole new, fun set of challenges. So far, some of my favorites are: * having rich modal windows appear behind flash elements (fixable using the iframe shim technique) * setting focus of various elements (fixed by creating a variable in our base page class that let me [...]]]></description>
			<content:encoded><![CDATA[<p>flash/rich HTML coexisting is definately turning up a whole new, fun set of challenges. So far, some of my favorites are:
* having rich modal windows appear behind flash elements (fixable using the <a href="http://dotnetjunkies.com/WebLog/jking/archive/2003/07/21/488.aspx">iframe shim technique</a>)
* setting focus of various elements (fixed by creating a variable in our base page class that let me set the default focus to any elment by ID)
* today&#8217;s, having to do with the <a href="http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&#038;file=00002200.html">ExternalInterface.AddCallback</a> method in flash, and its playing nice with swfobject.</p>

<p>In essence, we have a login function that pops up one of those nifty DHTML layers with a login box. Our top navigation is all flash, and has a login call to action&#8230;so having flash call javascript functions isnt hard, but getting javascript to &#8220;poke&#8221; at the flash and have it run an internal function is a bit trickier. Utilizing the aforementioned callback method, its fairly simple. The problem we had was, in Internet Explorer, order of operations was a bit out of whack.</p>

<p>we got an error on:
<code>__flash__addCallback(coreLoader, "loginNav");</code>
coming from INSIDE the flash&#8230;what seemed to be happening was the javascript that set up the object &#8220;coreLoader&#8221; wasnt running at the right time because of the time it took for swfObject to set up the embed. So, adding
<code>coreLoader = $('coreLoader');</code>
immediately AFTER
<code>so.write("topNav");</code> set up the object again, this time not filling the object with a null (because swfObject had
correctly identified an embed with id=coreLoader), and allowing the internal flash &#8220;addCallback&#8221; function to work.</p>

<p>hm, technical writing is difficult. but i felt the need to document this problem (even if it wasnt very well) for my own future reference, and hopefully someone else will find it handy as well.</p>

<p>the more general moral of the story is: pay attention to order of operations, they may save your life some day.</p>
<p><br/></p>

<strong>Join me for my next half-day coworking workshop on 2/19. <br/><a href="https://indyhall.stagehq.com/events/1129">Find out details</a> or sign up below. Save $75 by using the code DANGER.</strong>

<iframe src="https://indyhall.stagehq.com/events/1129/external" 
        marginheight="5" marginwidth="5" frameborder="0" scrolling="auto"
        height="250" width="500">
</iframe>]]></content:encoded>
			<wfw:commentRss>http://dangerouslyawesome.com/2006/10/another-swfobject-problem-deproblemed/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>YUI/WordPress Comment System</title>
		<link>http://dangerouslyawesome.com/2006/10/yuiwordpress-comment-system/</link>
		<comments>http://dangerouslyawesome.com/2006/10/yuiwordpress-comment-system/#comments</comments>
		<pubDate>Wed, 11 Oct 2006 14:58:17 +0000</pubDate>
		<dc:creator>Alex Hillman</dc:creator>
				<category><![CDATA[elsewhere]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.dangerouslyawesome.com/2006/10/11/yuiwordpress-comment-system/</guid>
		<description><![CDATA[somewhere in my cramped schedule i plan on taking some time to really evaluate some of the power behind the Yahoo UI Library. Ive seen Dustin Diaz do some cool stuff with it, but this morning Ryan pointed me to a sick WordPress comment installation by Jack Slocum that was rapidly built using YUI. The [...]]]></description>
			<content:encoded><![CDATA[<p>somewhere in my cramped schedule i plan on taking some time to really evaluate some of the power behind the <a href="http://developer.yahoo.com/yui/">Yahoo UI Library</a>. Ive seen <a href="http://www.dustindiaz.com">Dustin Diaz</a> do some cool stuff with it, but this morning <a href="http://www.concept64.com">Ryan</a> pointed me to a <a href="http://www.jackslocum.com/yui/2006/10/09/my-wordpress-comments-system-built-with-yahoo-ui-and-yahooext/">sick WordPress comment installation</a> by Jack Slocum that was rapidly built using YUI.  The system allows you to comment in blocks of content within a blog post, as well as the overall post. VERY cool. And, as Ryan pointed out, really freaking fast.</p>

<p>Demo/source included in the posting of the project itself.</p>

<p>worth checking out for sure.</p>
<p><br/></p>

<strong>Join me for my next half-day coworking workshop on 2/19. <br/><a href="https://indyhall.stagehq.com/events/1129">Find out details</a> or sign up below. Save $75 by using the code DANGER.</strong>

<iframe src="https://indyhall.stagehq.com/events/1129/external" 
        marginheight="5" marginwidth="5" frameborder="0" scrolling="auto"
        height="250" width="500">
</iframe>]]></content:encoded>
			<wfw:commentRss>http://dangerouslyawesome.com/2006/10/yuiwordpress-comment-system/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>click to activate? again?</title>
		<link>http://dangerouslyawesome.com/2006/10/click-to-activate-again/</link>
		<comments>http://dangerouslyawesome.com/2006/10/click-to-activate-again/#comments</comments>
		<pubDate>Mon, 09 Oct 2006 16:47:24 +0000</pubDate>
		<dc:creator>Alex Hillman</dc:creator>
				<category><![CDATA[elsewhere]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.dangerouslyawesome.com/2006/10/09/click-to-activate-again/</guid>
		<description><![CDATA[ive been using deconcept&#8217;s swfobject for a while to remedy the IE Click to Activate box&#8230;along with simplifying the embedding of flash elements on the page. for one reason or another, the Click to Activate problem comes back if you leave the browser open for a little while, even though every flash element is embedded [...]]]></description>
			<content:encoded><![CDATA[<p>ive been using deconcept&#8217;s swfobject for a while to remedy the IE Click to Activate box&#8230;along with simplifying the embedding of flash elements on the page. for one reason or another, the Click to Activate problem comes back if you leave the browser open for a little while, even though every flash element is embedded with javascript.</p>

<p>so while the IE bug is a strange, somewhat unpredicatble manifestation, one of my coworkers suggested <a href="http://www.mix-fx.com/flash-prompt.htm">this fix</a>. I added it to the mix and everything is back to normal.</p>

<p>i tried to understand why, but really, it&#8217;s IE so all logic is out the window.</p>

<p>if anyone has any idea why this might happen, please, give a shout.</p>
<p><br/></p>

<strong>Join me for my next half-day coworking workshop on 2/19. <br/><a href="https://indyhall.stagehq.com/events/1129">Find out details</a> or sign up below. Save $75 by using the code DANGER.</strong>

<iframe src="https://indyhall.stagehq.com/events/1129/external" 
        marginheight="5" marginwidth="5" frameborder="0" scrolling="auto"
        height="250" width="500">
</iframe>]]></content:encoded>
			<wfw:commentRss>http://dangerouslyawesome.com/2006/10/click-to-activate-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>deconcept swfObject bug debugged!</title>
		<link>http://dangerouslyawesome.com/2006/09/deconcept-swfobject-bug/</link>
		<comments>http://dangerouslyawesome.com/2006/09/deconcept-swfobject-bug/#comments</comments>
		<pubDate>Tue, 26 Sep 2006 20:35:32 +0000</pubDate>
		<dc:creator>Alex Hillman</dc:creator>
				<category><![CDATA[elsewhere]]></category>
		<category><![CDATA[annoyances]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.dangerouslyawesome.com/2006/09/26/deconcept-swfobject-bug/</guid>
		<description><![CDATA[remember how i said my png transparency solution relied on deconcept&#8217;s swfobject? We noticed that whenever you clicked a link that left a page, it seemed that every embedded flash object was dumped from the page, collapsing holes and causing everything to look screwy for a second before the page switched. for the record, this [...]]]></description>
			<content:encoded><![CDATA[<p>remember how i said my <a href="http://www.dangerouslyawesome.com/png2swf">png transparency solution </a>relied on deconcept&#8217;s <a href="http://blog.deconcept.com/swfobject/">swfobject</a>? We noticed that whenever you clicked a link that left a page, it seemed that every embedded flash object was dumped from the page, collapsing holes and causing everything to look screwy for a second before the page switched.</p>

<p>for the record, this can be fixed by following these directions:

http://lists.deconcept.com/pipermail/swfobject-deconcept.com/2006-August/001407.html</p>

<p>Or, just comment out these lines from the swfobject.swf
<code>
if (typeof window.onbeforeunload == 'function') {<br />
    var oldBeforeUnload = window.onbeforeunload;<br />
    window.onbeforeunload = function() {<br />
        deconcept.SWFObjectUtil.cleanupSWFs();<br />
        oldBeforeUnload();<br />
    }<br />
} else {<br />
    window.onbeforeunload = deconcept.SWFObjectUtil.cleanupSWFs;<br />
}<br />
</code></p>

<p><em><strong>edit: for crying out loud, why dont any of my wordpress plugins for code formatting work???</strong></em></p>

<p><strong><em>edit 2: </em></strong></p>

<p>Geoff at Deconcpet wrote me about this, and it was definitely a known issue. I&#8217;m previewing the next release of swfobject, which seems to have the problem locked down, although, i dont have the ability to test the main function of the cause of the bug: the release of swf&#8217;s with streaming content. I should have that soon, for testing, and will follow up a report on that.</p>

<p>Thanks, Geoff. You (and swfobject) are awesome.</p>
<p><br/></p>

<strong>Join me for my next half-day coworking workshop on 2/19. <br/><a href="https://indyhall.stagehq.com/events/1129">Find out details</a> or sign up below. Save $75 by using the code DANGER.</strong>

<iframe src="https://indyhall.stagehq.com/events/1129/external" 
        marginheight="5" marginwidth="5" frameborder="0" scrolling="auto"
        height="250" width="500">
</iframe>]]></content:encoded>
			<wfw:commentRss>http://dangerouslyawesome.com/2006/09/deconcept-swfobject-bug/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>cleaner (?) documentation, source code, swf</title>
		<link>http://dangerouslyawesome.com/2006/09/cleaner-documentation-source-code-swf/</link>
		<comments>http://dangerouslyawesome.com/2006/09/cleaner-documentation-source-code-swf/#comments</comments>
		<pubDate>Mon, 25 Sep 2006 13:51:33 +0000</pubDate>
		<dc:creator>Alex Hillman</dc:creator>
				<category><![CDATA[elsewhere]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.dangerouslyawesome.com/2006/09/25/cleaner-documentation-source-code-swf/</guid>
		<description><![CDATA[check out http://www.dangerouslyawesome.com/png2swf/ for less rambley documentation, and some downloadables. WARNING: everything is still very alpha. very much in testing/production. report bugs in the comments, but theres a good chance i&#8217;m already aware/working on it Join me for my next half-day coworking workshop on 2/19. Find out details or sign up below. Save $75 by [...]]]></description>
			<content:encoded><![CDATA[<p>check out <a href="http://www.dangerouslyawesome.com/png2swf/">http://www.dangerouslyawesome.com/png2swf/</a> for less rambley documentation, and some downloadables.</p>

<p><strong>WARNING:</strong><em> everything is still very alpha. very much in testing/production. report bugs in the comments, but theres a good chance i&#8217;m already aware/working on it </em></p>
<p><br/></p>

<strong>Join me for my next half-day coworking workshop on 2/19. <br/><a href="https://indyhall.stagehq.com/events/1129">Find out details</a> or sign up below. Save $75 by using the code DANGER.</strong>

<iframe src="https://indyhall.stagehq.com/events/1129/external" 
        marginheight="5" marginwidth="5" frameborder="0" scrolling="auto"
        height="250" width="500">
</iframe>]]></content:encoded>
			<wfw:commentRss>http://dangerouslyawesome.com/2006/09/cleaner-documentation-source-code-swf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  dangerouslyawesome.com/tag/javascript/feed/ ) in 0.40658 seconds, on Feb 12th, 2012 at 7:19 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 12th, 2012 at 8:19 am UTC -->
