<?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>36Flavours.com &#187; Browsers</title>
	<atom:link href="http://36flavours.com/category/browsers/feed/" rel="self" type="application/rss+xml" />
	<link>http://36flavours.com</link>
	<description>A taste of something different...</description>
	<lastBuildDate>Mon, 19 Apr 2010 20:01:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>jQuery document ready bug in Safari / WebKit</title>
		<link>http://36flavours.com/2010/01/jquery-document-ready-bug-in-safari-webkit/</link>
		<comments>http://36flavours.com/2010/01/jquery-document-ready-bug-in-safari-webkit/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 13:52:28 +0000</pubDate>
		<dc:creator>Steve Whiteley</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[1.3.2]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[load]]></category>
		<category><![CDATA[ready]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[window]]></category>

		<guid isPermaLink="false">http://36flavours.com/?p=623</guid>
		<description><![CDATA[There is an issue with the jQuery 1.3.2 document ready function in WebKit based browsers that which can cause numerous problems if you are manipulating the DOM, in my situation getting the width / height of an element. Using the .width() and .height() methods were working fine in every other browser but Safari, which I [...]]]></description>
			<content:encoded><![CDATA[<p class="first">There is an issue with the jQuery 1.3.2 document ready function in WebKit based browsers that which can cause numerous problems if you are manipulating the DOM, in my situation getting the width / height of an element.</p>
<p>Using the <strong>.width()</strong> and <strong>.height()</strong> methods were working fine in every other browser but <strong>Safari</strong>, which I thought was a little bit odd. After trying to come up with an alternative method of coding calculating the heights and comparing them in <strong>FireBug</strong> and <strong>Web Inspector</strong>, I set about Googling the problem.<span id="more-623"></span></p>
<p>The only problem was that I had no idea what to search for, so started with the term &#8220;jquery height in safari&#8221;. The <a href="http://old.nabble.com/Safari-unable-to-get-width-and-height-of-image.-td17511293s27240.html" target="_blank">first result</a> looked promising but took a fair bit of reading, although it proved to be worth while in the end. One comment pointed out that you should try to:</p>
<blockquote><p><strong>use jQuery(window).load() instead of jQuery(document).ready()</strong></p></blockquote>
<p>I tried this and straight away saw the results that were expected. The problem was that I didn&#8217;t really want to stop using the preferred document ready method <em>($(function() { &#8230; });)</em>, so searched the <a href="http://dev.jquery.com/" target="_blank">jQuery Bug Tracker</a> for any sign of a bug report.</p>
<p>I eventually found one highlighting the exact problem I was having, issue <a href="http://dev.jquery.com/ticket/5521" target="_blank">#5521</a>. The solution came in the form of a patch the document ready function that targets Safari.</p>
<p><code>+ if (jQuery.browser.safari &amp;&amp; document.readyState != "complete") {<br />
+ setTimeout( arguments.callee, 100 );<br />
+ return;<br />
+ }</code></p>
<p>It doesn&#8217;t look like this fix (nor any other form of solution) have been included in the latest nightly build, so I&#8217;m opting for the window load solution for now.</p>
<p><strong>EDIT:</strong> Another solution to this problem is  to simply include any CSS files before the inclusion of the jQuery file. I found this by browsing the bug tracker and coming across<a href="http://dev.jquery.com/ticket/3690" target="_blank"> ticket #3690</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://36flavours.com/2010/01/jquery-document-ready-bug-in-safari-webkit/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Resetting a Blackberry Bold to it&#8217;s Factory Settings</title>
		<link>http://36flavours.com/2009/08/resetting-a-blackberry-bold-to-its-factory-settings/</link>
		<comments>http://36flavours.com/2009/08/resetting-a-blackberry-bold-to-its-factory-settings/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 18:24:12 +0000</pubDate>
		<dc:creator>Steve Whiteley</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[apps]]></category>
		<category><![CDATA[BlackBerry]]></category>
		<category><![CDATA[bold]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[factory]]></category>
		<category><![CDATA[handheld]]></category>
		<category><![CDATA[reset]]></category>

		<guid isPermaLink="false">http://36flavours.com/?p=308</guid>
		<description><![CDATA[In a similar manor the iPhone, you can download and install applications for the BlackBerry Bold, either via the BlackBerry App World or directly from the author&#8217;s website. Until recently I had been doing the latter, until one download caused an &#8220;Unexpected IO Error&#8221;. I was unable to find any additional debugging information on the [...]]]></description>
			<content:encoded><![CDATA[<p class="first">In a similar manor the iPhone, you can download and install applications for the BlackBerry Bold, either via the <a href="http://appworld.blackberry.com/webstore/" target="_blank">BlackBerry App World</a> or directly from the author&#8217;s website. Until recently I had been doing the latter, until one download caused an &#8220;Unexpected IO Error&#8221;.</p>
<p>I was unable to find any additional debugging information on the error, which was also preventing the <strong>SMS and MMS</strong> application from displaying or even functioning. Any messages that were sent to me didn&#8217;t appear to be reaching me, even read receipts were stating that the message had been delivered.<span id="more-308"></span><br />
<img class="alignright" title="BlackBerry Logo" src="http://i39.tinypic.com/2irkcx2.png" alt="" width="178" height="178" /><br />
In an attempt to salvage things I attempted to delete the last installed application &#8211; <strong>no luck</strong>. I then attempted a hard reset by pulling off the battery, leaving it for a minute and then replacing it and turning the phone back on &#8211; <strong>still no luck</strong>.</p>
<p>I then decided that it might be a good idea to carry out a factory reset&#8230;</p>
<p><strong>Factory Reset Instructions:</strong></p>
<p>I recommend starting the process by backing up any existing data &#8211; contacts, photos etc &#8211; using the <strong>Desktop Manager software</strong>.  Now we can move on to the actual reset process.</p>
<ol>
<li>Press the <strong>menu key</strong>, the button to left of trackball, select the &#8220;<strong><em>Options</em></strong>&#8221; folder.</li>
<li>Scroll down and select &#8220;<strong><em>Security Options</em></strong>&#8221; then &#8220;<strong><em>General Settings</em></strong>&#8220;.</li>
<li>Press the menu key and select &#8220;<strong><em>Wipe Handheld</em></strong>&#8220;. A warning box will then appear to tell you that all application data will be lost. Select &#8220;<strong><em>Include third party applications</em></strong>&#8221; and then &#8220;<strong><em>Continue</em></strong>&#8220;.</li>
<li>Another box will appear asking you to enter the word &#8220;<strong><em>blackberry</em></strong>&#8221; to confirm the wipe. Doing this will restore the Bold to the <strong>factory settings</strong>.</li>
</ol>
<p>If you decided to make a backup earlier, you may want to<strong> restore your data</strong> at this point.</p>
<p>You can now continue to use your Blackberry as before, without any additional applications installed. Some functionality may however have been lost, for example when trying to use the web browser you may get the error &#8220;<strong><span id="konasapn0">This is a wi-fi service. Please ensure your device has an active wi-fi connection and try again.</span></strong>&#8220;.</p>
<p>This can be resolved by carrying out the following action:</p>
<p><strong><em>Options &gt; advanced &gt; host routing table &gt; menu (button left of trackball) &gt; click on &#8220;Register Now.&#8221;</em></strong></p>
<p>If at this point it is still not working, you should ensure that the default browser is set to &#8220;<em>Internet Browser</em>&#8220;:</p>
<p><strong><em>Options &gt; advanced &gt; Browser &gt; Default browser configuration &gt; set to &#8220;Internet Browser&#8221;.</em></strong></p>
<p>This process appears to have got everything back on track for me &#8211; <strong>relief</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://36flavours.com/2009/08/resetting-a-blackberry-bold-to-its-factory-settings/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>JS preload image &#039;bug&#039; in Opera</title>
		<link>http://36flavours.com/2009/03/js-preload-image-bug-in-opera/</link>
		<comments>http://36flavours.com/2009/03/js-preload-image-bug-in-opera/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 14:48:39 +0000</pubDate>
		<dc:creator>Steve Whiteley</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[preload]]></category>

		<guid isPermaLink="false">http://sha.re.it/?p=181</guid>
		<description><![CDATA[I have recently attempted to load an image in JavaScript (using jQuery) and once loaded get it&#8217;s dimensions. Using the following code I managed to successfully read the width and height properties in FireFox 2/3, IE 6/7, Windows Safari 3/4 and Google Chrome, but the dimensions were not available in Opera (10). $&#40;'&#60;img alt=&#34;&#34; /&#62;'&#41; [...]]]></description>
			<content:encoded><![CDATA[<p class="first">I have recently attempted to load an image in JavaScript (using <a href="http://jquery.com/">jQuery</a>) and once loaded get it&#8217;s dimensions.</p>
<p>Using the following code I managed to successfully read the width and height properties in <a href="http://www.mozilla-europe.org/en/firefox/">FireFox</a> 2/3, <a href="http://www.microsoft.com/windows/products/winfamily/ie/default.mspx">IE</a> 6/7, <a href="http://www.apple.com/safari/download/">Windows Safari</a> 3/4 and <a href="http://www.google.co.uk/chrome/">Google Chrome</a>, but the dimensions were not available in <a href="http://www.opera.com/">Opera</a> (10).<span id="more-181"></span></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;img alt=&quot;&quot; /&gt;'</span><span style="color: #009900;">&#41;</span>
	.<span style="color: #660066;">load</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;">'body'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">append</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #003366; font-weight: bold;">var</span> w <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">width</span><span style="color: #339933;">;</span>
		<span style="color: #003366; font-weight: bold;">var</span> h <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">height</span><span style="color: #339933;">;</span>
		<span style="color: #006600; font-style: italic;">//..</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
	.<span style="color: #660066;">error</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;">//..</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
	.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'src'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'/path/to/image.jpg'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>After a fair bit of time playing around trying to debug this small snippet of code, I <em>eventually</em> discovered that if the image was appended to the DOM <strong>after</strong> the width and height had been read then Opera would report the values correctly.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">		<span style="color: #003366; font-weight: bold;">var</span> w <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">width</span><span style="color: #339933;">;</span>
		<span style="color: #003366; font-weight: bold;">var</span> h <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">height</span><span style="color: #339933;">;</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'body'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">append</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #006600; font-style: italic;">//..</span></pre></div></div>

<p>Simply moving line 3 down to below the reading of dimensions solved this issue.</p>
]]></content:encoded>
			<wfw:commentRss>http://36flavours.com/2009/03/js-preload-image-bug-in-opera/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Opacity in Opera using jQuery</title>
		<link>http://36flavours.com/2009/02/css-opacity-in-opera-using-jquery/</link>
		<comments>http://36flavours.com/2009/02/css-opacity-in-opera-using-jquery/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 23:05:51 +0000</pubDate>
		<dc:creator>Steve Whiteley</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://sha.re.it/?p=134</guid>
		<description><![CDATA[Whilst attempting to cross browser test a jQuery plug-in that I&#8217;m currently working on, I noticed that my opacity settings were being ignored in my current version of Opera (9.23). $&#40;&#34;#id&#34;&#41;.css&#40;&#123;opacity: 0.8&#125;&#41;; It turns out that the latest version of jQuery (1.3.1) doesn&#8217;t believe that Opera 9.2 supports CSS opacity, and therefore it is ignored [...]]]></description>
			<content:encoded><![CDATA[<p class="first">Whilst attempting to cross browser test a <a href="http://jquery.com/">jQuery</a> plug-in that I&#8217;m currently working on, I noticed that my opacity settings were being ignored in my current version of <a href="http://www.opera.com/browser/">Opera</a> (9.23).</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#id&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span> <span style="color: #CC0000;">0.8</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>It turns out that the latest version of <a href="http://docs.jquery.com/Downloading_jQuery">jQuery (1.3.1)</a> doesn&#8217;t believe that Opera 9.2 supports CSS opacity, and therefore it is ignored completely.<span id="more-134"></span></p>
<p>There are two possible fixes for this, the first is to simply <strong>upgrade Opera</strong> to a newer version (the latest is 9.6.3).</p>
<p>The second option is to tell jQuery that opera does support opacity using the following &#8211; or similar &#8211; within your script:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>$.<span style="color: #660066;">browser</span>.<span style="color: #660066;">opera</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    $.<span style="color: #660066;">support</span>.<span style="color: #660066;">opacity</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://36flavours.com/2009/02/css-opacity-in-opera-using-jquery/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CSS: Targeting Safari 3 only</title>
		<link>http://36flavours.com/2009/01/css-targetting-safari-3-only/</link>
		<comments>http://36flavours.com/2009/01/css-targetting-safari-3-only/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 13:43:24 +0000</pubDate>
		<dc:creator>Steve Whiteley</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[aqua]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[target]]></category>

		<guid isPermaLink="false">http://sha.re.it/?p=93</guid>
		<description><![CDATA[Although Safari 3 tends to render layouts the same as the other leading popular browsers, it prefers to use it&#8217;s &#8220;aqua&#8221; button styling for standard sized form buttons. One solution for this is to set a dimension (width or height) to the button. To target Safari 3 in CSS you can use the following to [...]]]></description>
			<content:encoded><![CDATA[<p class="first">Although Safari 3 tends to render layouts the same as the other leading popular browsers, it prefers to use it&#8217;s &#8220;aqua&#8221; button styling for standard sized form buttons.</p>
<p>One solution for this is to set a dimension (width or height) to the button.</p>
<p>To target Safari 3 in CSS you can use the following to add or override any existing attributes, such as the height of a button:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@media screen and (-webkit-min-device-pixel-ratio:0) {</span>
	button <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">40px</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>If required, multiple selectors can be added into a single block.</p>
]]></content:encoded>
			<wfw:commentRss>http://36flavours.com/2009/01/css-targetting-safari-3-only/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSS: Extra Button Padding in IE</title>
		<link>http://36flavours.com/2008/10/css-extra-button-padding-in-ie/</link>
		<comments>http://36flavours.com/2008/10/css-extra-button-padding-in-ie/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 19:43:42 +0000</pubDate>
		<dc:creator>Steve Whiteley</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[Internet Explorer]]></category>

		<guid isPermaLink="false">http://sha.re.it/?p=76</guid>
		<description><![CDATA[Today at work I was asked how to remove the extra padding added to buttons (both the button tag and input[type=button]) in Internet Explorer. The Problem: In the example below there is a standard button with 10px padding on all sides. Internet explorer chooses to add additional horizontal padding: The solution: After coming across this [...]]]></description>
			<content:encoded><![CDATA[<p class="first">Today at work I was asked how to remove the extra padding added to buttons (both the button tag and input[type=button]) in Internet Explorer.</p>
<p><strong>The Problem:</strong></p>
<p>In the example below there is a standard button with 10px padding on all sides. Internet explorer chooses to add additional horizontal padding:</p>
<p><img class="aligncenter size-full wp-image-78" title="ie-button-padding" src="http://36flavours.com/blog/wp-content/uploads/2008/10/ie-button-padding.gif" alt="" width="133" height="76" /></p>
<p><strong>The solution:</strong></p>
<p>After coming across this problem myself in the past, I eventually remembered that there are two CSS styles you can add to fix this <span style="text-decoration: line-through;">bug</span> feature in IE:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">button <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">visible</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://36flavours.com/2008/10/css-extra-button-padding-in-ie/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Cross Browser CSS Layout Debugging</title>
		<link>http://36flavours.com/2008/04/cross-browser-css-layout-debugging/</link>
		<comments>http://36flavours.com/2008/04/cross-browser-css-layout-debugging/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 21:53:31 +0000</pubDate>
		<dc:creator>Steve Whiteley</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[safari]]></category>

		<guid isPermaLink="false">http://sha.re.it/?p=12</guid>
		<description><![CDATA[I&#8217;ve spent the majority of today fixing CSS layout issues to ensure my latest work project will look just as good in IE6 as it does in Firefox and the other major browsers. I tend to stick to Firefox as my development browser to test a project as I go along, this way I can [...]]]></description>
			<content:encoded><![CDATA[<p class="first">I&#8217;ve spent the majority of today fixing CSS layout issues to ensure my latest work project will look just as good in IE6 as it does in Firefox and the other major browsers.</p>
<p>I tend to stick to Firefox as my development browser to test a project as I go along, this way I can almost guarantee that the layout will look fine when browsing in Opera, Safari (Win) and even IE7/8.</p>
<p>Internet Explorer 6 on the other hand is a whole different ball game altogether, even in standards compliance mode things can take an age to get sorted, often finding yourself floating elements as well as adding in any filters as it is unable to render png transparency or opacity correctly.</p>
<p>At least Microsoft had got the majority of things right when they released Internet Explorer 7 and now with the beta release of IE8 with the IE7 rendering engine option things are looking up for web developers.</p>
<p>Unfortunately we will have to put up with the woes of IE6 and below, at least until the percentage of users drops to a more insignificant amount. Currently <a title="Stats from the W3C log files" href="http://www.w3schools.com/browsers/browsers_stats.asp" target="_blank">around 30%</a> of users are still browsing using IE6 which is enough to put doubt into every developers mind as to whether or not they should bother with it.</p>
<p>Currently I have <a title="Firefox 2 Download" href="http://www.mozilla-europe.org/en/products/firefox/" target="_blank">Firefox 2</a> / <a title="Firefox 3 beta Download" href="http://www.mozilla.com/en-US/firefox/all-beta.html" target="_blank">3 beta</a>, <a title="Opera Download" href="http://www.opera.com/download/" target="_blank">Opera</a> 9, <a title="Safari Download" href="http://www.apple.com/safari/" target="_blank">Safari</a> (Windows) and <a title="Internet Explorer 8 Download" href="http://www.microsoft.com/windows/products/winfamily/ie/ie8/getitnow.mspx" target="_blank">IE 8</a> (with built in 7 rendering option) all installed on my PC. Both Opera and Firefox allow for multiple installs of different releases on a single machine, but when it comes to IE6 I&#8217;ve had to either use the <a title="Stand Alone IE 6 Download" href="http://browsers.evolt.org/?ie/32bit/standalone" target="_blank">stand alone</a> version or use a <a title="Windows Virtual Machine" href="http://www.microsoft.com/windows/products/winfamily/virtualpc/overview.mspx" target="_blank">Virtual Machine</a> with an <a title="XP with IE6 Image" href="http://www.microsoft.com/downloads/details.aspx?FamilyId=21EABB90-958F-4B64-B5F1-73D0A413C8EF&amp;displaylang=en" target="_blank">XP and IE6 Image</a>.</p>
<p>The stand alone version from <a title="Evolt" href="http://www.evolt.org/" target="_blank">Evolt</a> is fine up until the point where you are wanting to test any filters, css conditional statements or set up a proxy connection.</p>
<p>The the virtual machine option on the other hand will render everything as expected, but does require you to go through the booting up process and download the latest image every couple of months as they expire.</p>
<p>With my irritations of backward compatibility aside, I believe as developers we should all continue to dedicate some of our time allowing as many people as possibly to have the same browsing experience, even though it can be a major chore at times and testing in each browser can have it difficulties.</p>
]]></content:encoded>
			<wfw:commentRss>http://36flavours.com/2008/04/cross-browser-css-layout-debugging/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>JS String Splitting in Internet Explorer</title>
		<link>http://36flavours.com/2008/03/js-string-splitting-in-internet-explorer/</link>
		<comments>http://36flavours.com/2008/03/js-string-splitting-in-internet-explorer/#comments</comments>
		<pubDate>Sun, 23 Mar 2008 19:29:15 +0000</pubDate>
		<dc:creator>Steve Whiteley</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://sha.re.it/2008/03/23/js-string-splitting-in-internet-explorer/</guid>
		<description><![CDATA[Over the past few days I have been working on a JavaScript based syntax highlighted code editor to add to my JS Library (known to some as the Juice Library). I wanted to split the lines of code displayed into a series of words with any spacing preserved, so started off by splitting each line [...]]]></description>
			<content:encoded><![CDATA[<p class="first">Over the past few days I have been working on a JavaScript based syntax highlighted code editor to add to my JS Library (known to some as the Juice Library).</p>
<p>I wanted to split the lines of code displayed into a series of words with any spacing preserved, so started off by splitting each line on any none word &#8220;\W&#8221;.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> words <span style="color: #339933;">=</span> line.<span style="color: #660066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/\W/g</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>This worked fine in Firefox, but when it came to IE the results were not quite what I was expecting. All the words were matched but all white space had been completely ignored, so instead I turned to using &#8220;\b&#8221; as the delimiter.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> words <span style="color: #339933;">=</span> line.<span style="color: #660066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/\b/g</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>This took me a step closer to what was required but it was still not the desired result as I didn&#8217;t want any non-word characters to be grouped with alpha-numeric values,  such as &#8220;123&#8243;.</p>
<p>I spent a little &#8211; in fact too much -time browsing the web for some pointers and came across an article posted on the <a href="http://www.sitepoint.com/blogs/2006/06/23/the-power-of-stringprototypesplit-almost/" title="The power of String.prototype.split() … almost" target="_blank">SitePoint blog</a> outlining the inconstancies of the String.prototype.split method across different browsers, which seemed explained the problem I was getting earlier but unfortunately offered no resolution.</p>
<p>Now to try and find a solution to all this.</p>
<p>Because splitting on &#8220;\W&#8221; was almost correct I reverted back to using that and now knowing what I had read over at SitePoint I somehow needed to prevent any non-word character sets from being ignored but without affecting the output in any way.</p>
<p>One possibility that arose was to wrap use the special character of null &#8220;\0&#8243; around each section and then split on that value. I tried a long winded version of the following to see if it would take me any closer to the desired result and simplified it afterwords.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> words <span style="color: #339933;">=</span> line.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/(\W)/g</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'<span style="color: #000099; font-weight: bold;">\0</span>$1<span style="color: #000099; font-weight: bold;">\0</span>'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'<span style="color: #000099; font-weight: bold;">\0</span>'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>The output form this was pretty much almost what was required in both FF and IE, however it does not ease my frustration in the time wasted coming up and researching into this solution.</p>
<p>I can now continue on with my syntax highlighter in peace, or at least until the next major cross browser issue arises.</p>
]]></content:encoded>
			<wfw:commentRss>http://36flavours.com/2008/03/js-string-splitting-in-internet-explorer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FF AdBlock add-on blocking local images</title>
		<link>http://36flavours.com/2008/03/ff-adblock-add-on-blocking-local-images/</link>
		<comments>http://36flavours.com/2008/03/ff-adblock-add-on-blocking-local-images/#comments</comments>
		<pubDate>Sun, 16 Mar 2008 12:10:40 +0000</pubDate>
		<dc:creator>Steve Whiteley</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[add-on]]></category>
		<category><![CDATA[ads]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[fubra]]></category>

		<guid isPermaLink="false">http://sha.re.it/2008/03/16/ff-adblock-add-on-blocking-local-images/</guid>
		<description><![CDATA[I received an email last night from a colleague regarding his recent visit to the Fubra site using the Firefox web browser. In his email Matt Wardy pointed out that he could not see the central image on the homepage relating to advertising. Whilst digging around for a reason he found that there was an [...]]]></description>
			<content:encoded><![CDATA[<p class="first">I received an email last night from a colleague regarding his recent visit to the <a href="http://www.fubra.com" title="Fubra Limited" target="_blank">Fubra site</a> using the <a href="http://www.mozilla.com/firefox/" title="Firefox web browser | Faster, more secure, &amp; customizable" target="_blank">Firefox</a> web browser. In his email <strike>Matt</strike> Wardy pointed out that he could not see the central image on the homepage relating to advertising.</p>
<p align="center"><a href="http://36flavours.com/blog/wp-content/uploads/2008/03/fubra-adblock.jpg" title="Fubra Site - Adblock image issue"><img src="http://36flavours.com/blog/wp-content/uploads/2008/03/fubra-adblock.jpg" alt="Fubra Site - Adblock image issue" /></a></p>
<p>Whilst digging around for a reason he found that there was an inline style of &#8220;display: none;&#8221; applied to the image although no inline style was visible in the source code, which asked the question of where was it coming from?</p>
<p>As with many development and layout issues in Firefox they often come back to one of the many extensions or add-ons that you have installed &#8211; for example wondering why JavaScript isn&#8217;t working and then realising that it&#8217;s simply because you had disabled it earlier on to ensure your site will work without it enabled :S.</p>
<p>In this case it was found to be that AdBlock was installed, so by either disabling the AdBlock add-on or whitelisting the <a href="http://www.fubra.com" title="Fubra Limited" target="_blank">Fubra</a> site and hitting refresh, all image problems appeared to have been resolved &#8211; for now.</p>
<p>A quick solution was applied for anyone visiting the site with AdBlock enabled in order to avoid the hiding of imagery.</p>
<blockquote><p>For now I&#8217;ve renamed the images and it seems to have solved the problem.</p></blockquote>
<p>I found it very interesting that the AdBlock extension would automatically block localised images simple because they contained the phrase &#8216;advertising&#8217;.</p>
<p>It seems to me that the add-on may be acting a little greedy here and should maybe only exclude images from third party websites containing this phrase or similar phrases if any.</p>
<p>After all, adverts are usually put in place for a reason and in a lot of cases without them it&#8217;s unlikely that the site would be there at all.</p>
]]></content:encoded>
			<wfw:commentRss>http://36flavours.com/2008/03/ff-adblock-add-on-blocking-local-images/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
