<?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>Sirbastian Manning &#187; snippet</title>
	<atom:link href="http://sirbastian.com/blog/category/snippets/feed/" rel="self" type="application/rss+xml" />
	<link>http://sirbastian.com/blog</link>
	<description>Sirbastian Manning&#039;s Personal Website</description>
	<lastBuildDate>Mon, 27 Jul 2009 06:42:50 +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>Fav XMLHttpRequest function</title>
		<link>http://sirbastian.com/blog/fav-xmlhttprequest-function/</link>
		<comments>http://sirbastian.com/blog/fav-xmlhttprequest-function/#comments</comments>
		<pubDate>Thu, 21 May 2009 14:29:10 +0000</pubDate>
		<dc:creator>Sirbastian</dc:creator>
				<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://sirbastian.com/blog/fav-xmlhttprequest-function/</guid>
		<description><![CDATA[
	var request = null;
	function InitAJAX()
	{
	    var objxml = null;
	    var ProgID = ["Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP", "Microsoft.XMLHTTP"];            

	    try {
	        objxml = new XMLHttpRequest();
	    }
	   [...]]]></description>
		<wfw:commentRss>http://sirbastian.com/blog/fav-xmlhttprequest-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rock solid javascript addEvent()</title>
		<link>http://sirbastian.com/blog/rock-solid-javascript-addevent/</link>
		<comments>http://sirbastian.com/blog/rock-solid-javascript-addevent/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 00:02:17 +0000</pubDate>
		<dc:creator>Sirbastian</dc:creator>
				<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://sirbastian.com/blog/rock-solid-javascript-addevent/</guid>
		<description><![CDATA[Rock solid addEvent() written, again, by Dustin Diaz (my internet super hero). 

	function addEvent( obj, type, fn ) {
		if (obj.addEventListener) {
			obj.addEventListener( type, fn, false );
			EventCache.add(obj, type, fn);
		}
		else if (obj.attachEvent) {
			obj["e"+type+fn] = fn;
			obj[type+fn] = function() { obj["e"+type+fn]( window.event ); }
			obj.attachEvent( "on"+type, obj[type+fn] );
			EventCache.add(obj, type, fn);
		}
		else {
			obj["on"+type] = obj["e"+type+fn];
		}
	}

	var EventCache = function(){
		var listEvents = [];
		return {
			listEvents : [...]]]></description>
		<wfw:commentRss>http://sirbastian.com/blog/rock-solid-javascript-addevent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Integer to Roman numeral</title>
		<link>http://sirbastian.com/blog/integer-to-roman-numeral/</link>
		<comments>http://sirbastian.com/blog/integer-to-roman-numeral/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 10:13:37 +0000</pubDate>
		<dc:creator>Sirbastian</dc:creator>
				<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://sirbastian.com/blog/integer-to-roman-numeral/</guid>
		<description><![CDATA[Changes and integer to a roman numeral. 

	private function numberToRoman($num)
	{
	     $n = intval($num);
	     $result = '';

	     $lookup = array('M' => 1000, 'CM' => 900, 'D' => 500, 'CD' => 400,
	     'C' => 100, 'XC' => 90, 'L' => 50, [...]]]></description>
		<wfw:commentRss>http://sirbastian.com/blog/integer-to-roman-numeral/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Optimised AJAX Call</title>
		<link>http://sirbastian.com/blog/optimised-ajax-call/</link>
		<comments>http://sirbastian.com/blog/optimised-ajax-call/#comments</comments>
		<pubDate>Sat, 29 Mar 2008 14:34:52 +0000</pubDate>
		<dc:creator>Sirbastian</dc:creator>
				<category><![CDATA[snippet]]></category>
		<category><![CDATA[]]></category>

		<guid isPermaLink="false">http://sirbastian.com/blog/optimised-ajax-call/</guid>
		<description><![CDATA[A nice way to manage AJAX calls written by Dustin Diaz. 

	var asyncRequest = function() {
	  function handleReadyState(o, callback) {
	    if (o &#038;&#038; o.readyState == 4 &#038;&#038; o.status == 200) {
	      if (callback) {
	        callback(o);
	     [...]]]></description>
		<wfw:commentRss>http://sirbastian.com/blog/optimised-ajax-call/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable the Firebug extension</title>
		<link>http://sirbastian.com/blog/disable-the-firebug-extension/</link>
		<comments>http://sirbastian.com/blog/disable-the-firebug-extension/#comments</comments>
		<pubDate>Sat, 29 Mar 2008 14:00:06 +0000</pubDate>
		<dc:creator>Sirbastian</dc:creator>
				<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://sirbastian.com/blog/disable-the-firebug-extension/</guid>
		<description><![CDATA[Useful for pages containing a lot of javascript that might bring Firefox to a grinding halt if it&#8217;s not disabled.

	if (! ('console' in window) &#124;&#124; !('firebug' in console)) {
	    var names = ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'];
	    window.console [...]]]></description>
		<wfw:commentRss>http://sirbastian.com/blog/disable-the-firebug-extension/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

