<?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>WonderLabs &#187; IE</title>
	<atom:link href="http://labs.wondergroup.com/category/programs/browsers/ie/feed/" rel="self" type="application/rss+xml" />
	<link>http://labs.wondergroup.com</link>
	<description></description>
	<lastBuildDate>Fri, 20 Nov 2009 19:31:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Actionscript in IE getBytesTotal( ) gotcha</title>
		<link>http://labs.wondergroup.com/languages/actionscript/actionscript-in-ie-getbytestotal-gotcha/</link>
		<comments>http://labs.wondergroup.com/languages/actionscript/actionscript-in-ie-getbytestotal-gotcha/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 18:00:03 +0000</pubDate>
		<dc:creator>jberman</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">http://labs.wondergroup.com/?p=190</guid>
		<description><![CDATA[With a recent update either in IE8 or within the Flash Player, I noticed a lot of our AS2 Flash sites that load external assets were failing; either the asset wouldn&#8217;t load or it wouldn&#8217;t properly report its EVENT_LOADED event. It was happening sporadically, and usually when a lot of external assets were being loaded [...]]]></description>
			<content:encoded><![CDATA[<p>With a recent update either in IE8 or within the Flash Player, I noticed a lot of our AS2 Flash sites that load external assets were failing; either the asset wouldn&#8217;t load or it wouldn&#8217;t properly report its EVENT_LOADED event. It was happening sporadically, and usually when a lot of external assets were being loaded at the same time.</p>
<p>When I looked into this further I found this line of code within the &#8220;run&#8221; function that executes on an interval:</p>
<pre name="code" language="javascript">
if (mc_clip.getBytesTotal( ) < 0)
{
        // failed to load
        bool_isLoaded = false;
        clearInterval( int_interval );
        dispatchEvent( new Event( this, EVENT_FAILED ) );
}
</pre>
<p>To fix it, I simply added a counter. It now checks to see if getBytesTotal( ) returns negative 10 times before finally reporting EVENT_FAILED.</p>
<p>However, in IE, mc_clip.getBytesTotal( ) is returning a negative number - even though the clip exists and is still loading!</p>
<p>Updating this code to include a wait counter to make sure this the number is still negative after 10 tries seems to have fixed it. </p>
<pre name="code" language="javascript">
if (mc_clip.getBytesTotal( ) < 0)
{
    if (int_wait > 10)
    {
        // failed to load
        bool_isLoaded = false;
        clearInterval( int_interval );
        dispatchEvent( new Event( this, EVENT_FAILED ) );
    }
    int_wait++;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://labs.wondergroup.com/languages/actionscript/actionscript-in-ie-getbytestotal-gotcha/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Meta content-type tag does matter!</title>
		<link>http://labs.wondergroup.com/programs/browsers/meta-content-type-tag-does-matter/</link>
		<comments>http://labs.wondergroup.com/programs/browsers/meta-content-type-tag-does-matter/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 20:43:59 +0000</pubDate>
		<dc:creator>jberman</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[FireFox]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[Safari]]></category>

		<guid isPermaLink="false">http://labs.wondergroup.com/?p=107</guid>
		<description><![CDATA[When editing several files for a French web site that contained non-ASCII latin characters I noticed some strange rendering inconsistencies between Safari and Firefox / IE.
Safari was displaying the characters correctly, however Firefox/IE were not. I tried resaving the file in all different encodings from UTF-8, UTF-16, to Western ISO Latin and got very weird [...]]]></description>
			<content:encoded><![CDATA[<p>When editing several files for a French web site that contained non-ASCII latin characters I noticed some strange rendering inconsistencies between Safari and Firefox / IE.</p>
<p>Safari was displaying the characters correctly, however Firefox/IE were not. I tried resaving the file in all different encodings from UTF-8, UTF-16, to Western ISO Latin and got very weird results.</p>
<p>Then I noticed a <meta> tag that had been in the existing version of the site:</p>
<pre class="html" name="code">
&lt;meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /&gt;
</pre>
<p>Even though my file was saved as UTF-8, this tag was confusing Firefox and IE into rendering my character data incorrectly. Interestingly, Safari was able to look at the actual file encoding and ignore this meta information.</p>
<p>To fix it all it took was making sure the file was saved as UTF-8 and then making sure the meta tag reflected this:</p>
<pre class="html" name="code">
&lt;meta http-equiv="content-type" content="text/html; charset=utf-8" /&gt;
</pre>
<p>If you encounter strange character rendering then give this a try!</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.wondergroup.com/programs/browsers/meta-content-type-tag-does-matter/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Howto: View Ajax-generated source in IE</title>
		<link>http://labs.wondergroup.com/programs/browsers/howto-view-ajax-generated-source-in-ie/</link>
		<comments>http://labs.wondergroup.com/programs/browsers/howto-view-ajax-generated-source-in-ie/#comments</comments>
		<pubDate>Thu, 14 May 2009 20:03:39 +0000</pubDate>
		<dc:creator>rgriffith</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[Quick Tips and Tricks]]></category>

		<guid isPermaLink="false">http://labs.wondergroup.com/?p=9</guid>
		<description><![CDATA[Today, Jordan and I were trying to view a piece of rendered source in IE that was put into a div via Ajax. I Googled &#8220;IE View Ajax source&#8221; and figured I might find an add-in to IE or something that would accomplish this. The first link I found said all that you needed to [...]]]></description>
			<content:encoded><![CDATA[<p>Today, Jordan and I were trying to view a piece of rendered source in IE that was put into a div via Ajax. I Googled &#8220;IE View Ajax source&#8221; and figured I might find an add-in to IE or something that would accomplish this. The first link I found said all that you needed to view this was paste the following code into the address bar in IE:</p>
<pre name="code" class="html">javascript:'<xmp>' + window.document.body.outerHTML+ '</xmp>'</pre>
<p>Or you can use this bookmarklet (Drag to links bar or add to Favorites): <a title="View Generated Source Bookmarklet for IE" href="javascript:'&lt;xmp&gt;' + window.document.body.outerHTML+ '&lt;/xmp&gt;'">View Generated Source</a>. </p>
<p>I know, I didn&#8217;t believe it would work either but it does work. The HTML that it outputs though is very, very scary.</p>
<p>The page where I found this is here: <a href="http://ericappel.net/blog/2006/10/03/ViewHTMLSourceGeneratedByAJAX.aspx" target="_blank">http://ericappel.net/blog/2006/10/03/ViewHTMLSourceGeneratedByAJAX.aspx</a></p>
<p>In addition, apparently Microsoft makes a developer toolbar for IE (7 not 8) that you can download as well. <a href="http://www.microsoft.com/downloads/details.aspx?familyid=E59C3964-672D-4511-BB3E-2D5E1DB91038&#038;displaylang=en" target="_blank">Microsoft Developer Toolbar</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.wondergroup.com/programs/browsers/howto-view-ajax-generated-source-in-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

