<?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://www.shawson.co.uk/codeblog/category/xhtml/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shawson.co.uk/codeblog</link>
	<description>development notes for my failing memory</description>
	<lastBuildDate>Mon, 26 Jul 2010 19:08:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>New site launch- natashahampshire.co.uk</title>
		<link>http://www.shawson.co.uk/codeblog/new-site-launch-natashahampshire-co-uk/</link>
		<comments>http://www.shawson.co.uk/codeblog/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 &#038; [...]


Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/javascript-css-minification/' rel='bookmark' title='Permanent Link: Javascript &#038; CSS Minification'>Javascript &#038; CSS Minification</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/multiple-domains-to-reduce-site-loading-times/' rel='bookmark' title='Permanent Link: Multiple domains to reduce site loading times'>Multiple domains to reduce site loading times</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/jqueryui/' rel='bookmark' title='Permanent Link: 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://www.shawson.co.uk/codeblog/javascript-css-minification/' rel='bookmark' title='Permanent Link: Javascript &#038; CSS Minification'>Javascript &#038; CSS Minification</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/multiple-domains-to-reduce-site-loading-times/' rel='bookmark' title='Permanent Link: Multiple domains to reduce site loading times'>Multiple domains to reduce site loading times</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/jqueryui/' rel='bookmark' title='Permanent Link: JQueryUI'>JQueryUI</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.shawson.co.uk/codeblog/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://www.shawson.co.uk/codeblog/jquery-accordion-control-links-not-working/</link>
		<comments>http://www.shawson.co.uk/codeblog/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://www.shawson.co.uk/codeblog/google-code-highlighter/' rel='bookmark' title='Permanent Link: Google Code Highlighter'>Google Code Highlighter</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/asp-net-update-panels-and-jquery/' rel='bookmark' title='Permanent Link: ASP.net update panel&#8217;s and jQuery'>ASP.net update panel&#8217;s and jQuery</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/javascript-css-minification/' rel='bookmark' title='Permanent Link: Javascript &#038; CSS Minification'>Javascript &#038; CSS Minification</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://www.shawson.co.uk/codeblog/google-code-highlighter/' rel='bookmark' title='Permanent Link: Google Code Highlighter'>Google Code Highlighter</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/asp-net-update-panels-and-jquery/' rel='bookmark' title='Permanent Link: ASP.net update panel&#8217;s and jQuery'>ASP.net update panel&#8217;s and jQuery</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/javascript-css-minification/' rel='bookmark' title='Permanent Link: Javascript &#038; CSS Minification'>Javascript &#038; CSS Minification</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.shawson.co.uk/codeblog/jquery-accordion-control-links-not-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JQueryUI</title>
		<link>http://www.shawson.co.uk/codeblog/jqueryui/</link>
		<comments>http://www.shawson.co.uk/codeblog/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:New site launch- natashahampshire.co.uk
JQuery Accordion Control links not working
WCF [...]


Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/new-site-launch-natashahampshire-co-uk/' rel='bookmark' title='Permanent Link: New site launch- natashahampshire.co.uk'>New site launch- natashahampshire.co.uk</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/jquery-accordion-control-links-not-working/' rel='bookmark' title='Permanent Link: JQuery Accordion Control links not working'>JQuery Accordion Control links not working</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/wcf-404-3-errors/' rel='bookmark' title='Permanent Link: WCF 404.3 Errors'>WCF 404.3 Errors</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://www.shawson.co.uk/codeblog/new-site-launch-natashahampshire-co-uk/' rel='bookmark' title='Permanent Link: New site launch- natashahampshire.co.uk'>New site launch- natashahampshire.co.uk</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/jquery-accordion-control-links-not-working/' rel='bookmark' title='Permanent Link: JQuery Accordion Control links not working'>JQuery Accordion Control links not working</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/wcf-404-3-errors/' rel='bookmark' title='Permanent Link: WCF 404.3 Errors'>WCF 404.3 Errors</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.shawson.co.uk/codeblog/jqueryui/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Code Highlighter</title>
		<link>http://www.shawson.co.uk/codeblog/google-code-highlighter/</link>
		<comments>http://www.shawson.co.uk/codeblog/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[C#.net]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[VB.net]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[php]]></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://www.shawson.co.uk/codeblog/runaway-sharepoint-2003-indexing/' rel='bookmark' title='Permanent Link: Runaway Sharepoint 2003 Indexing!'>Runaway Sharepoint 2003 Indexing!</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/flash-backgrounds-not-showing-in-ie/' rel='bookmark' title='Permanent Link: Flash backgrounds not showing in IE'>Flash backgrounds not showing in IE</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/google-font-api/' rel='bookmark' title='Permanent Link: Google Font API'>Google Font API</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://www.shawson.co.uk/codeblog/runaway-sharepoint-2003-indexing/' rel='bookmark' title='Permanent Link: Runaway Sharepoint 2003 Indexing!'>Runaway Sharepoint 2003 Indexing!</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/flash-backgrounds-not-showing-in-ie/' rel='bookmark' title='Permanent Link: Flash backgrounds not showing in IE'>Flash backgrounds not showing in IE</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/google-font-api/' rel='bookmark' title='Permanent Link: Google Font API'>Google Font API</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.shawson.co.uk/codeblog/google-code-highlighter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
