<?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>h3x.no &#187; Web development</title>
	<atom:link href="http://h3x.no/category/web-development/feed" rel="self" type="application/rss+xml" />
	<link>http://h3x.no</link>
	<description>Tor Henning Ueland`s thoughts about technology and other stuff</description>
	<lastBuildDate>Mon, 20 Feb 2012 10:07:52 +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>Simple Apache trick to increase Google Speed Test score</title>
		<link>http://h3x.no/2010/04/19/simple-apache-trick-to-increase-google-speed-test-score</link>
		<comments>http://h3x.no/2010/04/19/simple-apache-trick-to-increase-google-speed-test-score#comments</comments>
		<pubDate>Mon, 19 Apr 2010 08:45:16 +0000</pubDate>
		<dc:creator>Tor Henning Ueland</dc:creator>
				<category><![CDATA[Web development]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[static]]></category>

		<guid isPermaLink="false">http://h3x.no/?p=392</guid>
		<description><![CDATA[Google Speed Test will (unless set up) complain if you have not set up images to take use of browser caching. To get the browser to start caching static content you can add the following to your Apache vhost file: &#8230; <a href="http://h3x.no/2010/04/19/simple-apache-trick-to-increase-google-speed-test-score">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Google Speed Test will (unless set up) complain if you have not set up images to take use of browser caching. To get the browser to start caching static content you can add the following to your Apache vhost file:</p>
<p><code>ExpiresActive On<br />
ExpiresByType image/gif "access plus 365 days"<br />
ExpiresByType image/jpeg "access plus 365 days"<br />
ExpiresByType image/png "access plus 365 days"<br />
ExpiresByType image/bmp "access plus 365 days"<br />
ExpiresByType image/png "access plus 365 days"<br />
ExpiresByType text/css "access plus 365 days"<br />
ExpiresByType text/x-js "access plus 365 days"<br />
ExpiresByType application/x-javascript "access plus 365 days"<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://h3x.no/2010/04/19/simple-apache-trick-to-increase-google-speed-test-score/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show/hide a div with javascript</title>
		<link>http://h3x.no/2009/04/21/showhide-a-div-with-javascript</link>
		<comments>http://h3x.no/2009/04/21/showhide-a-div-with-javascript#comments</comments>
		<pubDate>Tue, 21 Apr 2009 11:35:25 +0000</pubDate>
		<dc:creator>Tor Henning Ueland</dc:creator>
				<category><![CDATA[Web development]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.h3x.no/?p=32</guid>
		<description><![CDATA[Looking for a simple javascript to show/hide a given text/element? Here`s all you need! &#60;!-- Simple show/hide system @author - Tor Henning Ueland --&#62; &#60;script language="javascript" type="text/javascript"&#62; //ShowHide function - takes the div ID as argument function showHide(divId) { //Switch &#8230; <a href="http://h3x.no/2009/04/21/showhide-a-div-with-javascript">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Looking for a simple javascript to show/hide a given text/element?</p>
<p>Here`s all you need! <img src='http://h3x.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><!-- body.hl { background-color:#ffffff; } pre.hl  { color:#000000; background-color:#ffffff; font-size:10pt; font-family:'Courier New';} .hl.num { color:#2928ff; } .hl.esc { color:#ff00ff; } .hl.str { color:#ff0000; } .hl.dstr { color:#818100; } .hl.slc { color:#838183; font-style:italic; } .hl.com { color:#838183; font-style:italic; } .hl.dir { color:#008200; } .hl.sym { color:#000000; } .hl.line { color:#555555; } .hl.mark  { background-color:#ffffbb;} .hl.kwa { color:#000000; font-weight:bold; } .hl.kwb { color:#830000; } .hl.kwc { color:#000000; font-weight:bold; } .hl.kwd { color:#010181; }</p>
<p>--></p>
<pre class="hl"><span class="hl com">&lt;!--</span>
<span class="hl com">   Simple show/hide system</span>
<span class="hl com">   @author - Tor Henning Ueland</span>
<span class="hl com">--&gt;</span>
<span class="hl kwa">&lt;script</span> <span class="hl kwb">language</span>=<span class="hl str">"javascript"</span> <span class="hl kwb">type</span>=<span class="hl str">"text/javascript"</span><span class="hl kwa">&gt;</span>

        //ShowHide function - takes the div ID as argument
        function showHide(divId) {

                //Switch the display mode for the the div to hide
                var theDiv = document.getElementById(divId);
                if(theDiv.style.display == 'block')
                        theDiv.style.display = 'none';
                else
                        theDiv.style.display = 'block';

                //Remove this part if you dont want a <span class="hl str">"show/hide"</span> text
                var showText = document.getElementById(<span class="hl str">"showText"</span>);
                var hideText = document.getElementById(<span class="hl str">"hideText"</span>);

                //Switch the display mode for the the show/hide text/div
                if(showText.style.display == 'block') {
                        showText.style.display = 'none';
                        hideText.style.display = 'block';
                } else {
                        showText.style.display = 'block';
                        hideText.style.display = 'none';
                }
        }
<span class="hl kwa">&lt;/script&gt;</span>

<span class="hl kwa">&lt;div</span> <span class="hl kwb">id</span>=<span class="hl str">"showHideMe"</span> <span class="hl kwb">style</span>=<span class="hl str">"display:none;"</span><span class="hl kwa">&gt;</span>
        Now you see me!
<span class="hl kwa">&lt;/div&gt;</span>

<span class="hl kwa">&lt;a</span> <span class="hl kwb">href</span>=<span class="hl str">"#"</span> <span class="hl kwb">onClick</span>=<span class="hl str">"showHide('showHideMe')"</span><span class="hl kwa">&gt;</span>
        <span class="hl kwa">&lt;div</span> <span class="hl kwb">id</span>=<span class="hl str">"showText"</span> <span class="hl kwb">style</span>=<span class="hl str">"display:block;"</span><span class="hl kwa">&gt;</span>Show<span class="hl kwa">&lt;/div&gt;</span>
        <span class="hl kwa">&lt;div</span> <span class="hl kwb">id</span>=<span class="hl str">"hideText"</span> <span class="hl kwb">style</span>=<span class="hl str">"display:none;"</span><span class="hl kwa">&gt;</span>Hide<span class="hl kwa">&lt;/div&gt;</span>
<span class="hl kwa">&lt;/a&gt;</span></pre>
]]></content:encoded>
			<wfw:commentRss>http://h3x.no/2009/04/21/showhide-a-div-with-javascript/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using apc
Page Caching using apc
Database Caching 1/23 queries in 0.013 seconds using apc

Served from: h3x.no @ 2012-05-17 18:17:59 -->
