<?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>Acts Media &#187; mootools</title>
	<atom:link href="http://blog.actsmedia.com/tag/mootools/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.actsmedia.com</link>
	<description>Acts Media specializes in Wed Design, Web Development, and Flash/Flex Authoring</description>
	<lastBuildDate>Thu, 27 Jan 2011 16:15:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>MooTools target in IE</title>
		<link>http://blog.actsmedia.com/2009/08/mootools-target-in-ie/</link>
		<comments>http://blog.actsmedia.com/2009/08/mootools-target-in-ie/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 15:36:08 +0000</pubDate>
		<dc:creator>Bryn Knatterud</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mootools]]></category>

		<guid isPermaLink="false">http://blog.actsmedia.com/?p=47</guid>
		<description><![CDATA[When using MooTools 1.11 the event object target property can not be read by IE. The way to correct this is to use the following&#8230; var target = $&#40;e.target &#124;&#124; e.srcElement&#41;; Here it is with surrounding code&#8230; &#160; $&#40;'elementId'&#41;.addEvent&#40;'click', function&#40;e&#41; &#123; var target = $&#40;e.target &#124;&#124; e.srcElement&#41;; if&#40;target.checked&#41;&#123; //do something here &#125; else &#123; //do [...]]]></description>
			<content:encoded><![CDATA[<p>When using MooTools 1.11 the event object target property can not be read by IE. The way to correct this is to use the following&hellip;</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">        <span style="color: #003366; font-weight: bold;">var</span> target <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>e.<span style="color: #660066;">target</span> <span style="color: #339933;">||</span> e.<span style="color: #660066;">srcElement</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Here it is with surrounding code&hellip;</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">&nbsp;
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'elementId'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addEvent</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'click'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">var</span> target <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>e.<span style="color: #660066;">target</span> <span style="color: #339933;">||</span> e.<span style="color: #660066;">srcElement</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>target.<span style="color: #660066;">checked</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #006600; font-style: italic;">//do something here</span>
	<span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #006600; font-style: italic;">//do something here</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.actsmedia.com/2009/08/mootools-target-in-ie/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

