<?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>Shawson&#039;s Code Blog &#187; XHTML</title>
	<atom:link href="http://codeblog.shawson.co.uk/category/web-standards/xhtml/feed/" rel="self" type="application/rss+xml" />
	<link>http://codeblog.shawson.co.uk</link>
	<description>development notes for my failing memory</description>
	<lastBuildDate>Tue, 15 May 2012 15:22:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Transparent CSS Sprites &#8211; Smashing Magazine</title>
		<link>http://codeblog.shawson.co.uk/transparent-css-sprites-smashing-magazine/</link>
		<comments>http://codeblog.shawson.co.uk/transparent-css-sprites-smashing-magazine/#comments</comments>
		<pubDate>Sun, 31 Oct 2010 11:13:52 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/?p=827</guid>
		<description><![CDATA[If you are familiar with CSS Sprites, you should be able to grasp this twist relativ via Transparent CSS Sprites &#8211; Smashing Magazine. Related posts:Mastering CSS, Part 1: Styling Design Elements &#124; CSS &#124; Smashing Magazine CSS Sprites and a flickering problem in IE6 Flash floating over the top of my div!


Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/mastering-css-part-1-styling-design-elements-css-smashing-magazine/' rel='bookmark' title='Mastering CSS, Part 1: Styling Design Elements | CSS | Smashing Magazine'>Mastering CSS, Part 1: Styling Design Elements | CSS | Smashing Magazine</a></li>
<li><a href='http://codeblog.shawson.co.uk/css-sprites-and-a-flickering-problem-in-ie6/' rel='bookmark' title='CSS Sprites and a flickering problem in IE6'>CSS Sprites and a flickering problem in IE6</a></li>
<li><a href='http://codeblog.shawson.co.uk/flash-floating-over-the-top-of-my-div/' rel='bookmark' title='Flash floating over the top of my div!'>Flash floating over the top of my div!</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>If you are familiar with CSS Sprites, you should be able to grasp this twist relativ</p>
<p>via <a href="http://www.smashingmagazine.com/2010/10/31/transparent-css-sprites/">Transparent CSS Sprites &#8211; Smashing Magazine</a>.</p>


<p>Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/mastering-css-part-1-styling-design-elements-css-smashing-magazine/' rel='bookmark' title='Mastering CSS, Part 1: Styling Design Elements | CSS | Smashing Magazine'>Mastering CSS, Part 1: Styling Design Elements | CSS | Smashing Magazine</a></li>
<li><a href='http://codeblog.shawson.co.uk/css-sprites-and-a-flickering-problem-in-ie6/' rel='bookmark' title='CSS Sprites and a flickering problem in IE6'>CSS Sprites and a flickering problem in IE6</a></li>
<li><a href='http://codeblog.shawson.co.uk/flash-floating-over-the-top-of-my-div/' rel='bookmark' title='Flash floating over the top of my div!'>Flash floating over the top of my div!</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://codeblog.shawson.co.uk/transparent-css-sprites-smashing-magazine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash floating over the top of my div!</title>
		<link>http://codeblog.shawson.co.uk/flash-floating-over-the-top-of-my-div/</link>
		<comments>http://codeblog.shawson.co.uk/flash-floating-over-the-top-of-my-div/#comments</comments>
		<pubDate>Wed, 22 Sep 2010 13:04:04 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/?p=806</guid>
		<description><![CDATA[We had this problem recently using thickbox- the screen would go dark and the popup div would appear, however in the background an embedded youtube video floating above the darkened background. This is easy to fix- just add an extra parameter to your object embed- eg; &#60;object width=&#34;330&#34; height=&#34;203&#34; style=&#34;width: 330px; height: 203px;&#34; data=&#34;http://www.youtube.com/v/PF9Q3LcOAQ8?fs=1&#38;amp;amp;hl=en_GB&#38;amp;amp;rel=0&#38;amp;amp;border=1&#34; type=&#34;application/x-shockwave-flash&#34;&#62; [...]


Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/transparent-css-sprites-smashing-magazine/' rel='bookmark' title='Transparent CSS Sprites &#8211; Smashing Magazine'>Transparent CSS Sprites &#8211; Smashing Magazine</a></li>
<li><a href='http://codeblog.shawson.co.uk/flash-backgrounds-not-showing-in-ie/' rel='bookmark' title='Flash backgrounds not showing in IE'>Flash backgrounds not showing in IE</a></li>
<li><a href='http://codeblog.shawson.co.uk/jquery-accordion-control-links-not-working/' rel='bookmark' title='JQuery Accordion Control links not working'>JQuery Accordion Control links not working</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>We had this problem recently using thickbox- the screen would go dark and the popup div would appear, however in the background an embedded youtube video floating above the darkened background.</p>
<p>This is easy to fix- just add an extra parameter to your object embed- eg;</p>
<pre class="brush: html">

&lt;object width=&quot;330&quot; height=&quot;203&quot; style=&quot;width: 330px; height: 203px;&quot; data=&quot;http://www.youtube.com/v/PF9Q3LcOAQ8?fs=1&amp;amp;amp;hl=en_GB&amp;amp;amp;rel=0&amp;amp;amp;border=1&quot; type=&quot;application/x-shockwave-flash&quot;&gt;
&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot; /&gt;
...
</pre>


<p>Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/transparent-css-sprites-smashing-magazine/' rel='bookmark' title='Transparent CSS Sprites &#8211; Smashing Magazine'>Transparent CSS Sprites &#8211; Smashing Magazine</a></li>
<li><a href='http://codeblog.shawson.co.uk/flash-backgrounds-not-showing-in-ie/' rel='bookmark' title='Flash backgrounds not showing in IE'>Flash backgrounds not showing in IE</a></li>
<li><a href='http://codeblog.shawson.co.uk/jquery-accordion-control-links-not-working/' rel='bookmark' title='JQuery Accordion Control links not working'>JQuery Accordion Control links not working</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://codeblog.shawson.co.uk/flash-floating-over-the-top-of-my-div/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New site launch- natashahampshire.co.uk</title>
		<link>http://codeblog.shawson.co.uk/new-site-launch-natashahampshire-co-uk/</link>
		<comments>http://codeblog.shawson.co.uk/new-site-launch-natashahampshire-co-uk/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 21:04:44 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/?p=525</guid>
		<description><![CDATA[Juts launched a new portfolio site for my girlfriend, www.natashahampshire.co.uk &#8211; This is just the first phase with a few more features and a bunch of extra contact to be added in the coming weeks, but we needed to get it up ASAP so she can apply for a design course in London! Related posts:Javascript [...]


Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/javascript-css-minification/' rel='bookmark' title='Javascript &amp; CSS Minification'>Javascript &#038; CSS Minification</a></li>
<li><a href='http://codeblog.shawson.co.uk/multiple-domains-to-reduce-site-loading-times/' rel='bookmark' title='Multiple domains to reduce site loading times'>Multiple domains to reduce site loading times</a></li>
<li><a href='http://codeblog.shawson.co.uk/jqueryui/' rel='bookmark' title='JQueryUI'>JQueryUI</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>Juts launched a new portfolio site for my girlfriend, <a href="http://www.natashahampshire.co.uk">www.natashahampshire.co.uk</a> &#8211; This is just the first phase with a few more features and a bunch of extra contact to be added in the coming weeks, but we needed to get it up ASAP so she can apply for a design course in London!</p>


<p>Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/javascript-css-minification/' rel='bookmark' title='Javascript &amp; CSS Minification'>Javascript &#038; CSS Minification</a></li>
<li><a href='http://codeblog.shawson.co.uk/multiple-domains-to-reduce-site-loading-times/' rel='bookmark' title='Multiple domains to reduce site loading times'>Multiple domains to reduce site loading times</a></li>
<li><a href='http://codeblog.shawson.co.uk/jqueryui/' rel='bookmark' title='JQueryUI'>JQueryUI</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://codeblog.shawson.co.uk/new-site-launch-natashahampshire-co-uk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JQuery Accordion Control links not working</title>
		<link>http://codeblog.shawson.co.uk/jquery-accordion-control-links-not-working/</link>
		<comments>http://codeblog.shawson.co.uk/jquery-accordion-control-links-not-working/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 22:23:04 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/?p=93</guid>
		<description><![CDATA[I recently swapped the .net Accordion control on my main home page from the Ajax Control toolkit for the jQuery Accordion control from jquery.com- this was mainly because i have a big moving flash background of the sky wooshing past, and found the MS accordion control a bit too heavy to expand out smoothly on [...]


Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/jqzoomage-jquery-component/' rel='bookmark' title='jqZoomage jQuery component'>jqZoomage jQuery component</a></li>
<li><a href='http://codeblog.shawson.co.uk/google-code-highlighter/' rel='bookmark' title='Google Code Highlighter'>Google Code Highlighter</a></li>
<li><a href='http://codeblog.shawson.co.uk/adding-cross-browser-consistent-keyboard-short-cuts-to-your-website/' rel='bookmark' title='Adding cross browser consistent keyboard short-cuts to your website'>Adding cross browser consistent keyboard short-cuts to your website</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>I recently swapped the .net Accordion control on my main home page from the Ajax Control toolkit for the jQuery Accordion control from <a href="http://docs.jquery.com/UI/Accordion" target="_blank">jquery.com</a>- this was mainly because i have a big moving flash background of the sky wooshing past, and found the MS accordion control a bit too heavy to expand out smoothly on slower machine, so thought i would try the jQuery version and was pleased to find it was a lot smoother.</p>
<p>However, to my horror, all my links stopped working!</p>
<pre class="brush: javascript">
$(function() {
            $(&quot;#menu&quot;).accordion({
                active: false,
                alwaysOpen: false,
                animated: &quot;easeslide&quot;
            });
        });</pre>
<pre class="brush: html">
&lt;ul id=&quot;menu&quot; style=&quot;width: 250px;&quot;&gt;
  &lt;li&gt;
    &lt;a href=&quot;#&quot;&gt;Welcome&lt;/a&gt;
    &lt;div&gt;This is the home page to what will eventually be a whole bunch of different web projects that i have online to fiddle about with.&lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;a href=&quot;#&quot;&gt;Work&lt;/a&gt;
    &lt;div&gt;
      &lt;ul&gt;
        &lt;li&gt;
          &lt;a title=&quot;My Web Development Blog&quot; href=&quot;http://www.shawson.co.uk/codeblog/&quot;&gt;My Code Blog&lt;/a&gt;
        &lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;...&lt;/li&gt;
&lt;/ul&gt;
</pre>
<p>This is because the jQuery accordion, using the default settings as i was, treats links as buttons for expanding the sections of the accodion, so voids their default action.  I resolved this by updating the jQuery settings to only treat links with a specific class as the accordion headings, and leave other links alone- i created a new class called accordion-label to use for the accordion buttons and updated the jquery as follows;</p>
<pre class="brush: javascript">
$(function() {
            $(&quot;#menu&quot;).accordion({
                active: false,
                alwaysOpen: false,
                animated: &quot;easeslide&quot;,
                navigation: true,
                header: &quot;a.accordion-label&quot;
            });
        });
</pre>
<p>I then added the accordion-label class to my &#8220;Welcome&#8221; link, &#8220;Work&#8221; link etc, and left the rest as-is.</p>


<p>Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/jqzoomage-jquery-component/' rel='bookmark' title='jqZoomage jQuery component'>jqZoomage jQuery component</a></li>
<li><a href='http://codeblog.shawson.co.uk/google-code-highlighter/' rel='bookmark' title='Google Code Highlighter'>Google Code Highlighter</a></li>
<li><a href='http://codeblog.shawson.co.uk/adding-cross-browser-consistent-keyboard-short-cuts-to-your-website/' rel='bookmark' title='Adding cross browser consistent keyboard short-cuts to your website'>Adding cross browser consistent keyboard short-cuts to your website</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://codeblog.shawson.co.uk/jquery-accordion-control-links-not-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JQueryUI</title>
		<link>http://codeblog.shawson.co.uk/jqueryui/</link>
		<comments>http://codeblog.shawson.co.uk/jqueryui/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 14:29:56 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/?p=70</guid>
		<description><![CDATA[As most of my colleagues will know, I love JQuery and one of our contractors, Lee, today showed me the brilliant JQueryUI library which features a whole bunch of functionality similar to the horribly bloated .net control extenders. Well worth a look over at http://jqueryui.com/ Related posts:Using JQueryUI combobox() with KnockoutJS WCF 404.3 Errors ASP.net [...]


Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/using-jqueryui-combobox-with-knockoutjs/' rel='bookmark' title='Using JQueryUI combobox() with KnockoutJS'>Using JQueryUI combobox() with KnockoutJS</a></li>
<li><a href='http://codeblog.shawson.co.uk/wcf-404-3-errors/' rel='bookmark' title='WCF 404.3 Errors'>WCF 404.3 Errors</a></li>
<li><a href='http://codeblog.shawson.co.uk/asp-net-roles-and-membership-installed-to-local-sql-express-2008-mdf-file/' rel='bookmark' title='ASP.net Roles and Membership installed to local SQL Express 2008 MDF file'>ASP.net Roles and Membership installed to local SQL Express 2008 MDF file</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>As most of my colleagues will know, I love JQuery and one of our contractors, Lee, today showed me the brilliant JQueryUI library which features a whole bunch of functionality similar to the horribly bloated .net control extenders.  Well worth a look over at <a title="JQueryUI Interface Libraries" href="http://jqueryui.com/" target="_blank">http://jqueryui.com/</a></p>


<p>Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/using-jqueryui-combobox-with-knockoutjs/' rel='bookmark' title='Using JQueryUI combobox() with KnockoutJS'>Using JQueryUI combobox() with KnockoutJS</a></li>
<li><a href='http://codeblog.shawson.co.uk/wcf-404-3-errors/' rel='bookmark' title='WCF 404.3 Errors'>WCF 404.3 Errors</a></li>
<li><a href='http://codeblog.shawson.co.uk/asp-net-roles-and-membership-installed-to-local-sql-express-2008-mdf-file/' rel='bookmark' title='ASP.net Roles and Membership installed to local SQL Express 2008 MDF file'>ASP.net Roles and Membership installed to local SQL Express 2008 MDF file</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://codeblog.shawson.co.uk/jqueryui/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Code Highlighter</title>
		<link>http://codeblog.shawson.co.uk/google-code-highlighter/</link>
		<comments>http://codeblog.shawson.co.uk/google-code-highlighter/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 12:25:00 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[C#.net]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[VB.net]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/post.aspx?id=1a0049fa-b77b-430a-9c31-88c9252c84e4</guid>
		<description><![CDATA[You may have noticed that the little snippets of code I&#8217;ve been dropping into these post&#8217;s suddenly got a bit swankier looking. This is down to a new javascript tool I found for use on blogs and the like, for highlighting code you post on your pages. Basically you download the zip file- unzip it [...]


Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/runaway-sharepoint-2003-indexing/' rel='bookmark' title='Runaway Sharepoint 2003 Indexing!'>Runaway Sharepoint 2003 Indexing!</a></li>
<li><a href='http://codeblog.shawson.co.uk/google-font-api/' rel='bookmark' title='Google Font API'>Google Font API</a></li>
<li><a href='http://codeblog.shawson.co.uk/asp-net-build-step-to-minify-and-obfuscate-your-sites-javascript-and-css/' rel='bookmark' title='Adding minification and obfuscation of your Javascript and CSS to your ASP.net build process using Yahoo YUI Compressor'>Adding minification and obfuscation of your Javascript and CSS to your ASP.net build process using Yahoo YUI Compressor</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>You may have noticed that the little snippets of code I&#8217;ve been dropping into these post&#8217;s suddenly got a bit swankier looking.  This is down to a new javascript tool I found for use on blogs and the like, for highlighting code you post on your pages.</p>
<p>Basically you download the zip file- unzip it and copy the javascripts and css files over, then add a few lines of code to the head of your page;</p>
<p><textarea name="code" class="html"></p>
<link type="text/css" rel="stylesheet" href="css/SyntaxHighlighter.css"></link>
<script language="javascript" src="js/shCore.js"></script><br />
<script language="javascript" src="js/shBrushCSharp.js"></script><br />
<script language="javascript" src="js/shBrushXml.js"></script><br />
<script language="javascript">
dp.SyntaxHighlighter.ClipboardSwf = '/flash/clipboard.swf';
dp.SyntaxHighlighter.HighlightAll('code');
</script><br />
</textarea></p>
<p>You then put your code in-between &gt;pre&lt; tags and set a name attribute to &#8220;code&#8221; and set the class to whatever syntax you have- it has support for a whole bunch of languages including c#, vb, php, javascript, css, sql and a whole bunch of others.  You can grab this plug-in from <a href="http://code.google.com/p/syntaxhighlighter/" title="Google syntax highlighter">here</a></p>
<p>The install was easy- but a couple of bits did catch me out- the code sample above was the example they give you in the install page.  So I blindly copied over this code to the head of my blog, and copied all the files from the zip file over to my sites js and css folders.  I found that html highlighting worked fine and so did c# but vb and sql weren&#8217;t happening&#8230; It eventually clicked that you need to add the references to the additional syntax types you need as the example only has a line for the CS and XML/HTML &#8220;brush&#8221; libraries.  So I popped those lines in and it worked fine. </p>
<p>The other problem that I had, and indeed still have until I get home to actually edit the code, is compatibility with <a href="http://tinymce.moxiecode.com/">TinyMCE</a> which is the editor used by default in BlogEngine.  I found a couple of articles which might help with this but won&#8217;t know till tonight;</p>
<ul>
<li><a href="http://weblogs.asp.net/nawaf/archive/2008/04/06/syntaxhighlighter-plugin-for-tinymce-wysiwyg-editor.aspx">TinyMCE Code highlighter Plugin to work with Google Syntaxt Highlighter</a></li>
<li><a href="http://blog.daemon.com.au/go/blog-post/getting-tinymce-to-play-nice-with-dp-syntaxhighlighter">TinyMCE configuration settings to help everything get along a little better</a></li>
</ul>
<p>As mentioned on the Wiki pages there is also the issue that adding a name value to a pre tag, isn&#8217;t valid xhtml.</p>


<p>Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/runaway-sharepoint-2003-indexing/' rel='bookmark' title='Runaway Sharepoint 2003 Indexing!'>Runaway Sharepoint 2003 Indexing!</a></li>
<li><a href='http://codeblog.shawson.co.uk/google-font-api/' rel='bookmark' title='Google Font API'>Google Font API</a></li>
<li><a href='http://codeblog.shawson.co.uk/asp-net-build-step-to-minify-and-obfuscate-your-sites-javascript-and-css/' rel='bookmark' title='Adding minification and obfuscation of your Javascript and CSS to your ASP.net build process using Yahoo YUI Compressor'>Adding minification and obfuscation of your Javascript and CSS to your ASP.net build process using Yahoo YUI Compressor</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://codeblog.shawson.co.uk/google-code-highlighter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

