<?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>A Virtual Insight - Richard Turner &#187; FireFox</title>
	<atom:link href="http://www.richardturner.com/tag/firefox/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.richardturner.com</link>
	<description></description>
	<lastBuildDate>Fri, 23 Jul 2010 18:36:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>jQuery Images in a Select Menu Dropdown</title>
		<link>http://www.richardturner.com/2010/01/jquery-images-in-a-select-menu-dropdown/</link>
		<comments>http://www.richardturner.com/2010/01/jquery-images-in-a-select-menu-dropdown/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 17:02:47 +0000</pubDate>
		<dc:creator>Richard Turner</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[FireFox]]></category>
		<category><![CDATA[Internet Explorer]]></category>

		<guid isPermaLink="false">http://www.richardturner.com/?p=122</guid>
		<description><![CDATA[A client had a dropdown that listed fonts, they wanted each option to be an image preview of the font in the select menu, now since some of these were not web-safe font&#8217;s I could not use CSS &#8216;font-family&#8217;. I originally wrote about 3 lines of code append an img tag to the option tag [...]]]></description>
			<content:encoded><![CDATA[<p>A client had a dropdown that listed fonts, they wanted each option to be an image preview of the font in the select menu, now since some of these were not web-safe font&#8217;s I could not use CSS &#8216;font-family&#8217;. I originally wrote about 3 lines of code append an img tag to the option tag which worked great in FireFox but no others.</p>
<p>I then scratched my head for a while and browsed the web for an example, I found one, ajaxload.info, so i extracted their JavaScript, rewrote it into jQuery, customised it to suit my needs. All done, Firefox &#8211; check, Chrome &#8211; check, IE &#8211; no. What a surprise, okay ajaxload.info in IE &#8211; load. Hmm theres doesn&#8217;t work either.</p>
<p>So about 6 hours after starting this seemingly easy task, i finally came up with a working version for FireFox, Chrome, IE, Safari etc. And here it is to save someone else the headache should they ever need it.</p>
<pre class="chili"><code class="=html"""""">&lt; !DOCTYPE HTML PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
	&lt;style type=&quot;text/css&quot;&gt;
	select {
		z-index: 1;
	}

	.mask {
		width: 150px;
		z-index: 100;
		background: url(transparentGif.gif);
		position: absolute;
		padding: 2px;
	}

	div.typelist {
		background: #FFFFFF;
		border: 1px solid #868686;
		overflow-x: hidden;
		overflow-y: auto;
		display: none;
		position: absolute;
		width: 148px;
		height: 150px;
	}

		div.typelist a {
			display: block;
			padding: 10px 20px;
			width: 100%;
			border: 0px;
			outline: 0px;
		}

		div.typelist a img {
			border: 0px;
		}
	&lt;/style&gt;
	&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.microsoft.com/ajax/jQuery/jquery-1.3.2.js&quot;&gt;&lt;/script&gt;
	&lt;script type=&quot;text/javascript&quot;&gt;
	var img_dir = &#039;&#039;; //with trailing slash

	function RT_ShowImageMenu(id) {
		$(&#039;div.typelist&#039;).css(&#039;display&#039;, &#039;none&#039;); //close all

		$(&#039;#typelist-&#039; + id).css(&#039;display&#039;, &#039;block&#039;);
		document.onclick = function() {
			document.onclick = function() {
				$(&#039;#typelist-&#039; + id).css(&#039;display&#039;, &#039;none&#039;);
				document.onclick = null;
			}
		}
	}

	function RT_MakeImageMenu() {
		$(&#039;select.image-select&#039;).each(function(){
			var mask_id = &#039;mask-&#039; + $(this).attr(&#039;id&#039;);
			var mask = $(&#039;&lt;div id=&quot;&#039; + mask_id + &#039;&quot; class=&quot;mask&quot; onclick=&quot;RT_ShowImageMenu(\&#039;&#039; + $(this).attr(&#039;id&#039;) + &#039;\&#039;); &quot;&gt;&lt;/div&gt;&#039;);
			$(mask).insertBefore($(this));

			$(&#039;#&#039; + mask_id).css( { height: $(this).height(), width: $(this).width() } );

			typelist_id = &#039;typelist-&#039; + $(this).attr(&#039;id&#039;);
			typelist = $(&#039;&lt;div id=&quot;&#039; + typelist_id + &#039;&quot; class=&quot;typelist&quot;&gt;&lt;/div&gt;&#039;);
			$(typelist).insertAfter($(this));

			$(this).find(&#039;option&#039;).each(function(){
				$(&#039;#&#039; + typelist_id).append(&#039;&lt;a href=&quot;javascript:RT_SelectOption(\&#039;&#039; + $(this).parent().attr(&#039;id&#039;) + &#039;\&#039;, \&#039;&#039; + $(this).val() + &#039;\&#039;)&quot; title=&quot;&#039; + $(this).html() + &#039;&quot;&gt;&lt;img src=&quot;&#039; + img_dir + $(this).val() + &#039;.png&quot; alt=&quot;&#039; + $(this).html() + &#039;&quot; /&gt;&lt;/a&gt;&#039;);
			});
		});
	}

	function RT_SelectOption(element, id) {
		$(&#039;#&#039; + element).val(id);
		$(&#039;#typelist-&#039; + element).css(&#039;display&#039;, &#039;none&#039;);
	}

	$(document).ready(function() {
		RT_MakeImageMenu();
	});
	&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
      &lt;select id=&quot;font&quot; name=&quot;font&quot; class=&quot;image-select&quot;&gt;
        &lt;option value=&quot;1&quot;&gt;Arial&lt;/option&gt;
        &lt;option value=&quot;2&quot;&gt;Verdana&lt;/option&gt;
        &lt;option value=&quot;3&quot;&gt;Courier&lt;/option&gt;
        &lt;option value=&quot;4&quot;&gt;Tahoma&lt;/option&gt;
      &lt;/select&gt;

      &lt;br /&gt;&lt;br /&gt;

      &lt;select id=&quot;font2&quot; name=&quot;font2&quot; class=&quot;image-select&quot;&gt;
        &lt;option value=&quot;1&quot;&gt;Arial&lt;/option&gt;
        &lt;option value=&quot;2&quot;&gt;Verdana&lt;/option&gt;
        &lt;option value=&quot;3&quot;&gt;Courier&lt;/option&gt;
        &lt;option value=&quot;4&quot;&gt;Tahoma&lt;/option&gt;
      &lt;/select&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
<p><a href="http://www.richardturner.com/jquery/image-select/index.html" target="_blank">View Example</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.richardturner.com/2010/01/jquery-images-in-a-select-menu-dropdown/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Poisoned Apple</title>
		<link>http://www.richardturner.com/2008/10/the-poisoned-apple/</link>
		<comments>http://www.richardturner.com/2008/10/the-poisoned-apple/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 22:40:11 +0000</pubDate>
		<dc:creator>Richard Turner</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Apple TV]]></category>
		<category><![CDATA[FireFox]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://www.richardturner.com/?p=90</guid>
		<description><![CDATA[PC or Mac? FireFox or IE? Both are common questions in the IT world, well I&#8217;m FireFox on a PC both in the office and at home. However i do own an Apple iPhone and Apple TV. I have yet to experience any problems with Apple TV, but here are some of my thoughts on [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_92" class="wp-caption alignright" style="width: 274px"><img class="size-medium wp-image-92" title="Apple" src="http://www.richardturner.com/wp-content/uploads/2008/10/applelogo.png" alt="Apple" width="264" height="264" /><p class="wp-caption-text">Apple</p></div>
<p>PC or Mac? FireFox or IE? Both are common questions in the IT world, well I&#8217;m FireFox on a PC both in the office and at home. However i do own an Apple iPhone and Apple TV. I have yet to experience any problems with Apple TV, but here are some of my thoughts on the iPhone.</p>
<p>Apples are apparently better than PCs, what with windows updates, blue screens etc. that you get with Microsoft Windows, however what they don&#8217;t tell you is Apple are equally as bad they just take a different approach, instead of blue screens or error messages, you just get a &#8220;pretty&#8221; colour wheel whilst things are loading / restarting to try and distract you from the fact that it&#8217;s taking just as long to load than a PC would. Give me a Quad Core Xenon with Vista and i assure you it would be just as fast if not faster than a Mac.</p>
<p>When Apple released their iPhone 3G on 2.0 firmware, there was a huge amount of problems and very shortly after they announced 2.1 firmware which was meant to fix crashing of applications, general lag and other issues. However whilst running 2.1 you will not find applications crashing or lag because instead of locking up your iPhone they just close for no reason at all! This is really frustrating when you are trying to use an application on your IPhone, especially the ones Apple make you pay for! Either fix the problem or leave it broke, don&#8217;t claim to have fixed something that you clearly haven&#8217;t &#8211; you just changed how it handles the error!</p>
<p>On the day of release of the new Mac-Book Air, Apple announced numerous updates to fix known issues with software. Why release something that isn&#8217;t ready? If you want to make a claim to something at least have evidence to support it, this is just from what i know, I&#8217;m sure with a little digging i could find a lot more wrong with Apple&#8217;s methods and claims.</p>
<p>A friend recently had a similar experience with an <a href="http://www.bajb.net/2008/10/time-capsule-goes-down-like-a-lead-balloon/" target="_blank">Apple Time Capsule</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.richardturner.com/2008/10/the-poisoned-apple/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
