<?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>Alex Little &#187; ie</title>
	<atom:link href="http://alexlittle.net/blog/tag/ie/feed/" rel="self" type="application/rss+xml" />
	<link>http://alexlittle.net/blog</link>
	<description></description>
	<lastBuildDate>Thu, 09 Feb 2012 10:34:14 +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>More IE/CSS/div fun</title>
		<link>http://alexlittle.net/blog/2008/06/18/more-iecssdiv-fun/</link>
		<comments>http://alexlittle.net/blog/2008/06/18/more-iecssdiv-fun/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 14:29:52 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Web dev & programming]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[ie]]></category>

		<guid isPermaLink="false">http://alexlittle.net/blog/?p=386</guid>
		<description><![CDATA[Not being a designer spending all my time getting to know the ins and outs of how floating divs work, it tends to take me a little while to get my head around how to lay out pages using pure CSS. I thought I&#8217;d pretty much got how to do 2 and 3 column layouts [...]]]></description>
			<content:encoded><![CDATA[<p>Not being a designer spending all my time getting to know the ins and outs of how floating divs work, it tends to take me a little while to get my head around how to lay out pages using pure CSS. I thought I&#8217;d pretty much got how to do 2 and 3 column layouts with CSS and divs, but today I found a new problem which really had me stumped for a while.</p>
<p>Essentially I wanted an ordered list, then within each &lt;li&gt; element a couple of &lt;div&gt;s  which I could float to layout how I wanted. Everything was working fine in Firefox,  but not in IE(6), the images below show the output  given in Firefox and IE:</p>
<p><strong>IE (6):</strong></p>
<p><a href="http://alexlittle.net/blog/images/2008/06/li-ie.jpg"><img class="alignnone size-full wp-image-387" title="li-ie" src="http://alexlittle.net/blog/images/2008/06/li-ie.jpg" alt="" width="331" height="324" /></a></p>
<p><strong>Firefox:</strong></p>
<p><a href="http://alexlittle.net/blog/images/2008/06/li-ff.jpg"><img class="alignnone size-full wp-image-388" title="li-ff" src="http://alexlittle.net/blog/images/2008/06/li-ff.jpg" alt="" width="264" height="244" /></a></p>
<p><a href="http://alexlittle.net/blog/demo/ol-div-ie-ff.html">HTML code which generated the above images.</a></p>
<p>The items numbered 1-3 show how I want the output to appear, but my first stab at the code resulted in items numbered 4-6. As you can see, in Firefox it appears fine, but in IE the &#8216;float:left&#8217; is being ignored, making the div containing the text appear below the checkbox.  [Aside: you might ask why I'm using divs and floats for something as simple as just some text next to a checkbox, well, this is just my starting point, my final page will be more complicated than this example!]</p>
<p>The only difference between the working and non-working examples is that the div containing text has width property defined (set to 100%) in the working version. I&#8217;m not sure why this should be necessary &#8211; my example shows that it&#8217;s not needed if the wrapper div isn&#8217;t part of an ordered list.</p>
<p>My only explanation is that this is another (frustrating) little IE CSS bug &#8211; unless anyone can give me another explanation? Alternatively if there are better ways to do what I&#8217;m trying to achieve?</p>
]]></content:encoded>
			<wfw:commentRss>http://alexlittle.net/blog/2008/06/18/more-iecssdiv-fun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE crashing with MSG</title>
		<link>http://alexlittle.net/blog/2007/10/25/ie-crashing-with-msg/</link>
		<comments>http://alexlittle.net/blog/2007/10/25/ie-crashing-with-msg/#comments</comments>
		<pubDate>Thu, 25 Oct 2007 14:36:08 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Web dev & programming]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[msg]]></category>
		<category><![CDATA[openlearn]]></category>

		<guid isPermaLink="false">http://alexlittle.net/blog/2007/10/25/ie-crashing-with-msg/</guid>
		<description><![CDATA[Came back from holiday yesterday (see the pics!) , to find a stack of emails about problems with MSG crashing IE. This is a bit odd as we&#8217;ve not updated MSG for a little while, so strange that it just seems to have started occuring. It seems quite an erratic problem, but it does bring [...]]]></description>
			<content:encoded><![CDATA[<p>Came back from holiday yesterday (<a href="http://alexlittle.net/blog/photo.php?ps=34">see the pics</a>!) , to find a stack of emails about problems with MSG crashing IE. This is a bit odd as we&#8217;ve not updated MSG for a little while, so strange that it just seems to have started occuring. It seems quite an erratic problem, but it does bring the whole browser down &#8211; something I find a little odd for a purely javascript application.</p>
<p>I&#8217;m really hoping to get this fixed very soon, but haven&#8217;t yet found the root cause, I can reliable recreate the issue, so just need to find why it&#8217;s happening.</p>
<p>Plus I need to get my presentation for next weeks <a href="http://www.open.ac.uk/openlearn/openlearn2007/conference.php">OpenLearn conference</a> written sometime soon!</p>
<p>Update (29th Oct)&#8230; I have now got the problem resolved, though still don&#8217;t know the real root cause. I fixed it by going back through the changes I&#8217;ve made recently and seeing at what point the error started occuring.<br />
The change which appears to have been causing the error was when I switched from using &lt;a href=&#8221;javascript:&#8230;.&#8221;&gt; to using (what I thought was the proper way!) of adding/removing event listeners. The actual problem occured with the call to detach event, although it didn&#8217;t fail everytime &#8211; it would work for the first few times and then randomly cause the browser to crash. I did notice that the carsh would only happen if I had the MSG client and the referring site (the one with the users presence icon) open at the same time, if only one was open the crash wouldn&#8217;t occur.</p>
<p>For info this was the code that was causing problems:<br />
<code><br />
var oldImg = presenceNode.firstChild;<br />
    //remove any current listeners<br />
    if(oldImg.removeEventListener){ // Mozilla, Netscape, Firefox<br />
    oldImg.removeEventListener('click', launchClick, false);<br />
    oldImg.removeEventListener('click', readMessageClick, false);<br />
	} else { // IE<br />
    oldImg.detachEvent('onclick', launchClick);<br />
    oldImg.detachEvent('onclick', readMessageClick);<br />
	}<br />
</code></p>
<p>So I replaced this with the code below that just alters the location and title of the link (also a bit of adjusting to add the &lt;a&gt; in):<br />
<code><br />
var oldAnchor = presenceNode.firstChild;<br />
    var newAnchor = oldAnchor.cloneNode(true);<br />
 newAnchor.href = "javascript:readMessageClick();";<br />
        newAnchor.title = MSGAPIconf.str_oneMessageUnread;</p>
<p></code><br />
So, glad to have got it fixed, but would be even better to know why this was really happening at all!</p>
<p>Update Number 2 (1st Nov) &#8211; The fix has now been made live on the MSG-OpenLearn servers.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexlittle.net/blog/2007/10/25/ie-crashing-with-msg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS ul &amp; li border differences in IE6 &amp; Firefox</title>
		<link>http://alexlittle.net/blog/2006/10/04/css-ul-li-border-differences-in-ie6-firefox/</link>
		<comments>http://alexlittle.net/blog/2006/10/04/css-ul-li-border-differences-in-ie6-firefox/#comments</comments>
		<pubDate>Wed, 04 Oct 2006 12:44:14 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Web dev & programming]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[ie]]></category>

		<guid isPermaLink="false">http://alexlittle.net/blog/2006/10/04/css-ul-li-border-differences-in-ie6-firefox/</guid>
		<description><![CDATA[Spent a little while this morning trying to fix a little inconsistency between IE (v6) and Firefox in how the border settings for ul and li elements worked. Here are a couple of screenshots to demonstrate the problem: IE: Firefox: And here&#8217;s a snippet of the CSS I was using: ul.menu { margin: 0; padding: [...]]]></description>
			<content:encoded><![CDATA[<p>Spent a little while this morning trying to fix a little inconsistency between IE (v6) and Firefox in how the border settings for ul and li elements worked. Here are a couple of screenshots to demonstrate the problem:</p>
<p>IE:</p>
<p><img src="http://alexlittle.net/blog/images/ie.gif" /></p>
<p>Firefox:</p>
<p><img src="http://alexlittle.net/blog/images/ff.gif" /></p>
<p>And here&#8217;s a snippet of the CSS I was using:</p>
<p>ul.menu {<br />
margin: 0;<br />
padding: 0;<br />
left: 20px;<br />
width: 90%;<br />
border-bottom: solid 1px #d09800;<br />
}</p>
<p>ul.menu li {<br />
display: inline;<br />
margin: 0;<br />
}</p>
<p>ul.menu,<br />
ul.menu li a {<br />
padding: 5px 15px 6px;<br />
}</p>
<p>ul.menu li a {<br />
font-size: 1em;<br />
color: #d09800;<br />
margin: 0;<br />
border: solid 1px ;</p>
<p>}</p>
<p>ul.menu li a:hover {<br />
background: #fdfaf3;<br />
color: black !important;<br />
text-decoration: none;<br />
border: solid 1px #d09800;<br />
}</p>
<p>ul.menu li.current_page_item a,<br />
ul.menu li.current_page_item a:hover {<br />
color: #333 !important;<br />
background: white;<br />
text-decoration: none;<br />
broder: 1px;<br />
border-top: solid 1px #d09800;<br />
border-left: solid 1px #d09800;<br />
border-right: solid 1px #d09800;<br />
border-bottom: solid 1px white;<br />
}</p>
<p>When I changed this snippet to be:</p>
<p>ul.menu {<br />
margin: 9px;<br />
padding-left: 10px;<br />
border-bottom: 1px solid #d09800;<br />
padding-bottom: 6px;<br />
padding-top: 5px;<br />
}</p>
<p>ul.menu li {<br />
display: inline;<br />
margin: 0px;<br />
}</p>
<p>ul.menu li a {<br />
padding: 5px 15px 6px;<br />
border: 1px solid #d09800;<br />
text-decoration: none;<br />
font-size: 1em;<br />
color: #d09800;<br />
margin: 0;<br />
}</p>
<p>ul.menu li a:hover {<br />
background: #fdfaf3;<br />
color: black;<br />
text-decoration: none;<br />
}</p>
<p>ul.menu li.current_page_item a,<br />
ul.menu li.current_page_item a:hover {<br />
border-top: 1px solid #d09800;<br />
border-bottom: 1px solid #fff;<br />
list-style: none;<br />
display: inline;<br />
color: #333;<br />
background: white;<br />
text-decoration: none;<br />
}</p>
<p>Everything worked as I wanted it to! For info the original CSS was taken from the K2 WordPress template which I adapted for the tabbed menu that we wanted for the MSG site.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexlittle.net/blog/2006/10/04/css-ul-li-border-differences-in-ie6-firefox/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>getElementsByName&#8230;</title>
		<link>http://alexlittle.net/blog/2006/09/28/getelementsbyname/</link>
		<comments>http://alexlittle.net/blog/2006/09/28/getelementsbyname/#comments</comments>
		<pubDate>Thu, 28 Sep 2006 11:33:52 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Web dev & programming]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[ie]]></category>

		<guid isPermaLink="false">http://alexlittle.net/blog/2006/09/28/getelementsbyname/</guid>
		<description><![CDATA[Found that we had a bug where the presences weren&#8217;t being updated in IE but they were in Firefox (which I usually use) &#8211; tracked the problem down to the differences in how these browsers deal with the document.getElementsByName &#8211; I was using the name element on a span tag which Firefox &#8216;recognises&#8217; but IE [...]]]></description>
			<content:encoded><![CDATA[<p>Found that we had a bug where the presences weren&#8217;t being updated in IE but they were in Firefox (which I usually use) &#8211; tracked the problem down to the differences in how these browsers deal with the document.getElementsByName &#8211; I was using the name element on a span tag which Firefox &#8216;recognises&#8217; but IE doesn&#8217;t, for more info on this: <a href="http://jszen.blogspot.com/2004/07/whats-in-name.html">http://jszen.blogspot.com/2004/07/whats-in-name.html.</a></p>
<p>Anyway, turned out to be easy enough to fix by just putting the name on the img tag rather than span.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexlittle.net/blog/2006/09/28/getelementsbyname/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.638 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-02-10 09:17:58 -->

