<?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>Pixelbox &#187; JavaScript</title>
	<atom:link href="http://www.pixelbox.net/category/development/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pixelbox.net</link>
	<description>Pixelbox, technology development and photography.</description>
	<lastBuildDate>Thu, 08 Apr 2010 16:35:01 +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>&#8220;Save as iPhone web app&#8221; bookmarklet</title>
		<link>http://www.pixelbox.net/2010/04/08/save-as-iphone-web-app-bookmarklet/</link>
		<comments>http://www.pixelbox.net/2010/04/08/save-as-iphone-web-app-bookmarklet/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 16:13:38 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.pixelbox.net/?p=423</guid>
		<description><![CDATA[Ever wished website owners would make their mobiles sites save to the iPhone as a web app? Not any more...]]></description>
			<content:encoded><![CDATA[<p>I was chatting to <a href="http://www.lyingonthecovers.net/?p=371">Tom</a> today about the all things iPad/iPhone etc and he mentioned an article on the Guardian where they mentioned being hard pushed to create an iPad app that offered anything over their website.
</p>
<p>
We have often thought this about many apps that litter the app store that could easily have been done in HTML 5. With a target of the iPhone there is a lot of support and it&#8217;s often hard to tell if something is a native app or a web app (<a href="http://mrgan.tumblr.com/post/257187093/pie-guy">pie guy is a great example</a>). In many ways it&#8217;s a better idea to do this, as you can then use the same &#8220;app&#8221; on any device, the BBC mobile news site is a great example, and I&#8217;m unsure what valuable extras they could add by creating a native app&#8230;
</p>
<p>
The problem is, the onus is on the developers to tell the iPhone specific things, that can make such a diference. Some are quite complex and would require lots of work, but others are really simple, such as default zoom, and if the toolbar is required (The BBC mobile site always opens slightly too zoomed in!). These are done by simply adding meta tags to the head of your HTML. We then suddenly realised that you could do this using a JavaScript bookmarklet, <a href="http://www.pixelbox.net/2008/01/17/custom-icons-for-your-iphone-web-clips/">the same way Drew did way back for changing the home screen icon</a>.
</p>
<p>
Obviously we quickly created one and it works a treat. Basically you click the bookmarklet on a site of your choice, and when it loads it won&#8217;t open in normal Safari and won&#8217;t show you an address bar. This is great for apps like Gmail, Google Tasks, Latitude, BBC news, etc etc
</p>
<h4>Step by step</h4>
<ol>
<li>First drag this link to your safari bookmark bar. <a href="javascript: var s = document.createElement('meta');s.setAttribute('name', 'apple-mobile-web-app-capable');s.setAttribute('content', 'yes');document.getElementsByTagName('head')[0].appendChild(s);void(s);var z = document.createElement('meta');z.setAttribute('viewport', 'apple-mobile-web-app-capable');z.setAttribute('content', 'width=device-width');document.getElementsByTagName('head')[0].appendChild(z);void(z);">Convert to WebApp</a></li>
<li>Sync your iPhone (with bookmark sync turned on)</li>
<li>Browse to a website you want to make a web clip of through Safari on your iPhone</li>
<li>Open your bookmarks and tap the one you just added to bookmark bar (nothing will appear to happen)</li>
<li>Then tap the + at the bottom of the screen</li>
<li>Select, “Add to Home Screen” and give it a sensible name.</li>
</ol>
<p>You can see here the diference between the BBC sport website with and without using the bookmarklet:</p>
<h4>Default</h4>
<p><a href="http://www.pixelbox.net/wp-content/uploads/2010/04/default.png"><img src="http://www.pixelbox.net/wp-content/uploads/2010/04/default-200x300.png" alt="How the BBC mobile site loads by default" title="Default" width="200" height="300" class="alignnone size-medium wp-image-424" /></a></p>
<h4>Saved as WebApp</h4>
<p><a href="http://www.pixelbox.net/wp-content/uploads/2010/04/webapp.png"><img src="http://www.pixelbox.net/wp-content/uploads/2010/04/webapp-200x300.png" alt="How the site looks when saved as a web app" title="webapp" width="200" height="300" class="alignnone size-medium wp-image-425" /></a></p>
<p>Enjoy!</p>
<p><strong>UPDATE</strong> It seems standard links on the first page open in Safari :( Still works well for Google web apps!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pixelbox.net/2010/04/08/save-as-iphone-web-app-bookmarklet/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Interview questions to ask a front end developer</title>
		<link>http://www.pixelbox.net/2008/01/09/interview-questions-to-ask-a-front-end-developer/</link>
		<comments>http://www.pixelbox.net/2008/01/09/interview-questions-to-ask-a-front-end-developer/#comments</comments>
		<pubDate>Wed, 09 Jan 2008 12:28:51 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Hijax]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.pixelbox.net/2008/01/09/interview-questions-to-ask-a-front-end-developer/</guid>
		<description><![CDATA[This-morning I had to quickly run up some questions for someone&#8217;s second interview. We were looking for someone with good front end knowledge, so I knocked up some questions to ask them. I found these were very good at getting them talking, and gave them a lot of potential to show they had a strong [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://www.pixelbox.net/wp-content/uploads/2008/01/814457_business_card_3.thumbnail.jpg' alt='Interview' />
<p>
This-morning I had to quickly run up some questions for someone&#8217;s second interview. We were looking for someone with good front end knowledge, so I knocked up some questions to ask them. I found these were very good at getting them talking, and gave them a lot of potential to show they had a strong knowledge in the field.
</p>
<p>Let me know if you think there are some other good questions that will provoke some good discussions!</p>
<h3>HTML Questions</h3>
<ul>
<li>What is a doctype?</li>
<li>What different versions of HTML are there, what&#8217;s the difference between transitional and strict?</li>
<li>What do you know about HTML 5, and do you think you will use it?</li>
<li>What are the advantages and disadvantages of using web standards.</li>
<li>Do you know what the trinity of web standards are? (Separation of, structure, behavior and presentation)</li>
<li>What is the concept behind the semantic web, and why does it matter?</li>
<li>Do you know what micro formats are?</li>
<li>What related blogs or websites to you read?</li>
</ul>
<h3>Accessibility Questions</h3>
<ul>
<li>What is accessibility and why does it matter?</li>
<li>What should you put in alt text for presentational images?</li>
<li>Why are, &#8220;click here&#8221; links bad to use?</li>
<li>Why do people use skip to content and skip to navigation links?</li>
<li>How can CSS aid accessibility?</li>
<li>How can you test for accessibility compliancy? Why do automated tests not guaranty accessibility.</li>
<li>What related blogs or websites to you read?</li>
</ul>
<h3>CSS Questions</h3>
<ul>
<li>What is the difference between using inline CSS and using an external CSS file. When would you use inline CSS?</li>
<li>What browser do you develop in?</li>
<li>What browsers do you test in?</li>
<li>What is the ACID2 test?</li>
<li>Who or what is WASP?</li>
<li>What are CSS hacks and what are they used for?</li>
<li>What related blogs or websites to you read?</li>
</ul>
<h3>SEO Questions</h3>
<ul>
<li>What would you said the main 4 search engines are?</li>
<li>What would you say the most important element in the head of an HTML document are?</li>
<li>What would you say the most important element in the body of an HTML document are?</li>
<li>How do search engines treat content inside an IFrame?</li>
<li>How can you convey information in an image to a search engine.</li>
<li>How can you convey information in a flash movie to a search engine.</li>
<li>What is keyword stuffing?</li>
<li>What is cloning?</li>
<li>How should you re-direct traffic from http://pixelbox.net to http://www.pixelbox.net ?</li>
<li>What related blogs or websites to you read?</li>
</ul>
<h3>JavaScript Questions</h3>
<ul>
<li>What is ECMAScript?</li>
<li>What is the DOM?</li>
<li>What is unobtrusive JavaScript? Why is it important? What is HIJAX</li>
<li>How would you add a JavaScript event to a link or button, and why?</li>
<li>What are the advantages and disadvantages of Frameworks?</li>
<li>What would you do if a framework could not provide the functionality you needed?</li>
<li>What frameworks have you used and why did you choose it?</li>
<li>What is browser sniffing and where would you use it? (trick question&#8230; never!)</li>
<li>What is Comet? What sites use it?</li>
<li>What is JSON? Why would you use JSON over XML?</li>
<li>What sites do you think use JavaScript well?</li>
<li>What industry blogs do you read?</li>
<li>How do you debug JavaScript</li>
<li>What problems have you had with IE when DOM scripting and how have you overcome them?</li>
<li>What related blogs or websites to you read?</li>
</ul>
<h3>Tools Questions</h3>
<ul>
<li>What software do you use to develop in and why?</li>
<li>What are the advantages and disadvantages of using WYSIWYG development tools?</li>
<li>What browser do you use to develop in and why?</li>
<li>What browser do you use on a daily basis, and why?</li>
<li>What is any, plugins or bookmarklets do you use?</li>
<li>What browsers do you test you work in?</li>
<li>What operating systems do you test your work in?</li>
<li>Do you use source control, if so what, if not why not?</li>
<li>Do you develop locally or on a remote server?</li>
<li>Do you know how to set up a web server, apache, MySQL etc</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.pixelbox.net/2008/01/09/interview-questions-to-ask-a-front-end-developer/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Generic Error messages</title>
		<link>http://www.pixelbox.net/2007/12/18/generic-error-messages/</link>
		<comments>http://www.pixelbox.net/2007/12/18/generic-error-messages/#comments</comments>
		<pubDate>Tue, 18 Dec 2007 10:09:56 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Hijax]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.pixelbox.net/2007/12/18/generic-error-messages/</guid>
		<description><![CDATA[Recently I needed an method for displaying error messages that was nicer than alert boxes, unobtrusive and generic. I wanted to be able to output errors from PHP in the HTML that could then be displayed in an eye catching way, but also use the same method to display errors from JavaScript. This way you [...]]]></description>
			<content:encoded><![CDATA[<p>
Recently I needed an method for displaying error messages that was nicer than alert boxes, unobtrusive and generic.
</p>
<p>
I wanted to be able to output errors from PHP in the HTML that could then be displayed in an eye catching way, but also use the same method to display errors from JavaScript. This way you have one method for displaying errors to your users, rather than a mix of inline, alerts and error pages.
</p>
<p>
The solution will run once the DOM is ready and search for elements with the class, &#8220;ssError&#8221; (server side error). If it finds them it will remove them from where they are and add them to a generic error div at the top of the page, which will then be animated so the user notices it.
</p>
<p>
This code requires various parts of the YUI library, which must be included before the error.js file. To display server side errors, just add the class ssError to them, and to output client side error just call the function PBdisplayErrors(&#8216;Your Error here!&#8217;) with you error as a string.
</p>
<p><a href="#" onclick="PBdisplayErrors('Yikes! This is an error!')">Click here to simulate an error!</a></p>
<p>There is <a href="http://www.pixelbox.net/demos/errorExample/">an example of the error message and a link to the js file here</a>.</p>
<p>
This is the first time I have used the YUI libraries, they are a little confusing at first, but show great examples of best practice. Previously I used prototype, which gives you more finished animations, whilst the YUI is a little more raw. I do really like the event model though, which is really useful for hijax and dealing with XML header requests.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pixelbox.net/2007/12/18/generic-error-messages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex IE Object bug</title>
		<link>http://www.pixelbox.net/2007/04/03/flex-ie-object-bug/</link>
		<comments>http://www.pixelbox.net/2007/04/03/flex-ie-object-bug/#comments</comments>
		<pubDate>Tue, 03 Apr 2007 09:34:00 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.pixelbox.net/2007/04/03/flex-ie-object-bug/</guid>
		<description><![CDATA[My first flex app has been having some IE support issues. Mainly errors with making SOAP calls, but it was unclear if they were related to something else not loading. Which made the RIA not work, on IE but on everything else. My first port of call was the Object tag, as IE is the [...]]]></description>
			<content:encoded><![CDATA[<p>My first flex app has been having some IE support issues. Mainly errors with making SOAP calls, but it was unclear if they were related to something else not loading. Which made the RIA not work, on IE but on everything else.</p>
<p>My first port of call was the Object tag, as IE is the only browser that uses it as opposed to the Embed used by other browsers.  We are using <a href="http://blog.deconcept.com/swfobject/">swfobject</a> for doing this so I found it strange and also found it even harder to debug as in IE you are unable to view the generated source of a page (even after finding an <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=e59c3964-672d-4511-bb3e-2d5e1db91038&amp;displaylang=en">IE developer toolbar</a>).</p>
<p>I did managed to lock the problem down finally though, and it turned out that it was the id tag. Not having an id tag killed the application in some way and it loaded but nothing really worked. This lead me to notice that the id we were using for our RIA had a space in it, causing the same problem.</p>
<p>Replacing the id without the spaces fixed the problem and it now all works fine, so if anyone else has a problem like this check your id for spaces, or check you have an id at all!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pixelbox.net/2007/04/03/flex-ie-object-bug/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Gmail server errors&#8230; ooops!</title>
		<link>http://www.pixelbox.net/2007/03/02/102/</link>
		<comments>http://www.pixelbox.net/2007/03/02/102/#comments</comments>
		<pubDate>Fri, 02 Mar 2007 10:53:20 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.pixelbox.net/2007/03/02/102/</guid>
		<description><![CDATA[Yesterday I had a problem with Gmail where I couldn&#8217;t get to my in box. I though this would pass but it didn&#8217;t and other people in the office were getting on fine. I started by clearing my cache and flushing my DNS but it still didn&#8217;t work on Safari, Firefox, Flock or Omniweb, even [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://farm1.static.flickr.com/164/406647565_1a4c033750_m.jpg" title="Google mail error" alt="Google mail error" height="120" width="240" /></p>
<p>Yesterday I had a problem with Gmail where I couldn&#8217;t get to my in box. I though this would pass but it didn&#8217;t and other people in the office were getting on fine.</p>
<p>I started by clearing my cache and flushing my DNS but it still didn&#8217;t work on Safari, Firefox, Flock or Omniweb, even adium and Google notifier didn&#8217;t work&#8230;</p>
<p>When I got home I still had the same problem, even after re booting and clearing stuff out again.</p>
<p>This morning I tried google&#8217;s help page and it told me I should log out, then clear my cache and then try again. Which I am happy to say worked!</p>
<p>The question is, what caused this??? and why would it effect all my applications?</p>
<p><a href="http://www.flickr.com/photos/oxton/406647565/" title="Gmail problems"> I see others are having the same gmail problems </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pixelbox.net/2007/03/02/102/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fun with google maps</title>
		<link>http://www.pixelbox.net/2007/02/24/fun-with-google-maps/</link>
		<comments>http://www.pixelbox.net/2007/02/24/fun-with-google-maps/#comments</comments>
		<pubDate>Sat, 24 Feb 2007 12:41:14 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.pixelbox.net/2007/02/24/fun-with-google-maps/</guid>
		<description><![CDATA[Over the last few days at work I had some time to get creative with Google maps. I was asked to implement google maps in a pop up window, which having never done before I expected would take a fair amount of time. However implementing what we had seen on another site was more or [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Google maps API" href="http://www.bigkidlondon.com/yap-yap/index.php?page_id=5"><img border="0" src="http://static.flickr.com/180/400638024_28a7621ca6_m.jpg" /></a>Over the last few days at work I had some time to get creative with Google maps. I was asked to implement google maps in a pop up window, which having never done before I expected would take a fair amount of time. However implementing what we had seen on another site was more or less done with you by Google.</p>
<p>So this gave me opportunity to play around with the API and add some fun logic on top of that, with <a href="http://www.bigkidlondon.com/yap-yap/index.php?page_id=5">BigKid</a> being a creative agency this seemed to fit really well, and added one of those little easter eggs you see and think wow that&#8217;s really cool and they don&#8217;t even promote it. Hopefully we can add more when the opportunity is there :)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pixelbox.net/2007/02/24/fun-with-google-maps/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSS Mastery iPod Giveaway</title>
		<link>http://www.pixelbox.net/2006/12/20/css-mastery-advanced-web-standards-solutions/</link>
		<comments>http://www.pixelbox.net/2006/12/20/css-mastery-advanced-web-standards-solutions/#comments</comments>
		<pubDate>Wed, 20 Dec 2006 20:33:17 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.pixelbox.net/2006/12/20/css-mastery-advanced-web-standards-solutions/</guid>
		<description><![CDATA[Dear Santa, I recently came across a post on Andy&#8217;s website suggesting I should write you a letter to ask for a copy of the book, CSS Mastery for Christmas. Not knowing much about the book I decided to do a little research and discover if I really did want it&#8230; The book is entitled [...]]]></description>
			<content:encoded><![CDATA[<p><a title="CSS Mastery: Advanced Web Standards Solutions" href="http://flickr.com/photos/77646648@N00/328413733"><img border="0" src="http://static.flickr.com/142/328413733_32c51526be_m.jpg" /></a>Dear Santa,</p>
<p>I recently came across a post on <a title="Andy Budd" href="http://www.andybudd.com/">Andy&#8217;s website</a> suggesting I should write you a letter to ask for a copy of the book, <a title="CSS Mastery" href="http://www.cssmastery.com/">CSS Mastery</a> for Christmas.</p>
<p>Not knowing much about the book I decided to do a little research and discover if I really did want it&#8230;</p>
<p>The book is entitled <a title="Become a CSS Pro" href="http://www.cssmastery.com/">CSS Mastery: Advanced Web Standards Solutions</a>, from which I assume it takes developers through the best practices in order to developer websites that are valid, accessiable and up to the W3C&#8217;s standards.</p>
<p>I personally wrote my dissertation on the subject of developing with web standards and interviewed <a title="Andy Budd" href="http://www.andybudd.com/">Andy</a> during the process, so would be fascinated to see how he tackles the subject.</p>
<p>I am currently doing a lot of front end work on a very large website due to launch in the new year. I believe I have tackled it in the best way, and used many techniques I learnt through Zeldman, Cederholm, Clark and Keith books. So have another frame of reference would be fantastic.</p>
<p>The book starts by setting the foundations for front-end web development. This is something thats importance I can&#8217;t stress enough. Even now I am still getting to grips with how the flow works and the more I understand the less I feel the distant urge to sod it and hack away with tables and spacer gifs. So when I saw the second chapter was about the visual formatting model I was even more excited. From having previously meet Andy I&#8217;m sure the book will also cover the trinity of web standards, something I am deeply passionate about.</p>
<p>Latter sections of CSS Mastery cover hacks and bug fixes, which I assume will help developers support browsers that are not as CSS compliant, such as Internet Explorer. This again is something that I often see tipping developers over the edge and resorting to hacky and browser spercific methods.<br />
I also spotted that the book also has two case studies, <a title="A great example of CSS Mastery" href="http://doodles.cssmastery.com/">More Than Doodles</a> and <a title="Another great example of what can be achieved with CSS Mastery" href="http://tuscany.cssmastery.com/">Tuscany Luxury Resorts</a>. The first thing you notice is that both of these sites look fantastic, and have lots of modern web design styles and techniques that I would love to learn more about. They also look like full sites, rather than those small, rushed and often rather ugly sites you get with most other CSS books.</p>
<p>Andy was helped with the book by Cameron Moll and Simon Collison, both some what web development celebrities, whose names I&#8217;m sure you have heard before and can only add quality to the book. The book is also publised by Friends of ED, who have also published one of my faviourite development books by Jeremy Keith on DOM Scripting.</p>
<p>A great looking sample chapter of the book can be downloaded from the webiste <a href="http://www.cssmastery.com/CSSMastery-Chapter7.pdf">CSS Mastery: Chapter 7 Layout</a>. You can also get the examples used in the book and view the example sites.</p>
<p>So in conclusion it looks like a great book, so if your still doing your shopping santa, I hope I can give you a hint. (You can even <a title="Get your copy of the great CSS Mastery from Amazon" href="http://www.amazon.co.uk/exec/obidos/redirect?link_code=as2&#038;path=ASIN/1590596145&#038;tag=blogography-21&#038;camp=1634&#038;creative=6738">get CSS Mastery from amazon</a> so you dont have to leave the house ;) )</p>
<p>Thanks, Rob</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pixelbox.net/2006/12/20/css-mastery-advanced-web-standards-solutions/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>My recent links&#8230;</title>
		<link>http://www.pixelbox.net/2006/12/20/my-recent-links/</link>
		<comments>http://www.pixelbox.net/2006/12/20/my-recent-links/#comments</comments>
		<pubDate>Wed, 20 Dec 2006 09:35:19 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Hijax]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.pixelbox.net/2006/12/20/my-recent-links/</guid>
		<description><![CDATA[Last night I spent about half an hour I should have spend a long time ago, installing a plug in to display my recent links from del.icio.us (social bookmarking). It was fairly easy, I downloaded a script for displaying RSS feeds, changed the link and called if from inside an un-ordered list on my side [...]]]></description>
			<content:encoded><![CDATA[<p><a title="delicious logo" href="http://flickr.com/photos/77646648@N00/327987090"><img border="0" src="http://static.flickr.com/144/327987090_405173353f_m.jpg" /></a></p>
<p>Last night I spent about half an hour I should have spend a long time ago, installing a plug in to display my recent links from del.icio.us (social bookmarking).</p>
<p>It was fairly easy, I downloaded a script for displaying RSS feeds, changed the link and called if from inside an un-ordered list on my side bar. Job done.</p>
<p>However I have to say I am slightly un-impressed with it. Currently it seems to only update every now and again, obviously you wouldn&#8217;t want to delay my site loading whilst it fetched an RSS feed from another server. Especially not every time you refresh the page.</p>
<p>It seems that instead it downloads the XML to a temp folder and uses that. However its really annoying when I want to see up to the minute info on my links.</p>
<p>So I gathered that the solution to this problem is to overlay what I currently have with a client side script which gets the feed from the site directly after the initial page has loaded.</p>
<p>In effect this allows up to date information, and also has the cashed information to fall back on (Hijax-styli)&#8230; however I am yet to implement it ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pixelbox.net/2006/12/20/my-recent-links/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>IEs support for the DOM sucks</title>
		<link>http://www.pixelbox.net/2006/11/14/ies-support-for-the-dom-sucks/</link>
		<comments>http://www.pixelbox.net/2006/11/14/ies-support-for-the-dom-sucks/#comments</comments>
		<pubDate>Tue, 14 Nov 2006 17:23:10 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Hijax]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.pixelbox.net/2006/11/14/ies-support-for-the-dom-sucks/</guid>
		<description><![CDATA[Again I find myself running into problems with IE, today its with it&#8217;s DOM support. I recently wrote some JavaScript to look at a links href attribute to detect if the link was external or not (the existence of HTTP:// would show it was external). The problem was that Internet Explorer showed the absolute href [...]]]></description>
			<content:encoded><![CDATA[<p>
Again I find myself running into problems with IE, today its with it&#8217;s DOM support.
</p>
<p>
I recently wrote some JavaScript to look at a links href attribute to detect if the link was external or not (the existence of HTTP:// would show it was external). The problem was that Internet Explorer showed the absolute href rather than the text content of the attribute in the DOM. Therefore it meant that every link had HTTP:// in it&#8217;s href attribute.
</p>
<p>
I discovered that you could pass a section option in the JavaScript for .getAttribute that would force IE to return the value of the href in the DOM rather than how it saw it. This was found via <a href="http://www.glennjones.net/Post/809/getAttributehrefbug.htm">Glenn Jone&#8217;s</a> post on Internet Explorers getAttribute href bug.
</p>
<p>
Another day another IE work around&#8230; sigh</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pixelbox.net/2006/11/14/ies-support-for-the-dom-sucks/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Problems with setAttribute in IE</title>
		<link>http://www.pixelbox.net/2006/11/13/problems-with-setattribute-in-ie/</link>
		<comments>http://www.pixelbox.net/2006/11/13/problems-with-setattribute-in-ie/#comments</comments>
		<pubDate>Mon, 13 Nov 2006 11:43:55 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Hijax]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.pixelbox.net/2006/11/13/problems-with-setattribute-in-ie/</guid>
		<description><![CDATA[Whilst being Pr0 and trying to work around IE&#8217;s inability to understand the CSS :after class I used JavaScript to add a clearing element after the classes through the DOM, but only for IE. (I know browser sniffing is wrong but if it adds in a clearing element in Opera too there won&#8217;t be any [...]]]></description>
			<content:encoded><![CDATA[<p>
Whilst being Pr0 and trying to work around IE&#8217;s inability to understand the CSS :after class I used JavaScript to add a clearing element after the classes through the DOM, but only for IE. (I know browser sniffing is wrong but if it adds in a clearing element in Opera too there won&#8217;t be any ill effect).
</p>
<p>
Anyway I found that Internet Explorer can&#8217;t add style content through setAttribute and also can&#8217;t seem to set the class name and then apply the class from the CSS.
</p>
<p>
After a bit of digging on the web I found that you can use setAttribute(&#8220;className&#8221;,&#8221;clearAll&#8221;); to do the same in IE. This works fine but be sure to remember that if Opera or Camino are pretending to be IE they wont add the class name through className so it&#8217;s worth adding a class in too, just as a back up. (Why can&#8217;t browsers pretending to be IE not have another navigator element saying their true identity)
</p>
<p>
Thanks to <a href="http://www.quirksmode.org/bugreports/archives/2005/03/setAttribute_does_not_work_in_IE_when_used_with_th.html">quirksmode</a>
</p>
<p> for the info on this!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pixelbox.net/2006/11/13/problems-with-setattribute-in-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
