<?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>Ian Winter &#187; javascript</title>
	<atom:link href="http://ianwinter.co.uk/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://ianwinter.co.uk</link>
	<description>Have you found the instructions yet?</description>
	<lastBuildDate>Wed, 14 Sep 2011 22:16:39 +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>Asynchronous Tracking with Google</title>
		<link>http://ianwinter.co.uk/2009/12/02/asynchronous-tracking-with-google/</link>
		<comments>http://ianwinter.co.uk/2009/12/02/asynchronous-tracking-with-google/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 13:43:07 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[analytics]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[tracking]]></category>

		<guid isPermaLink="false">http://ianwinter.co.uk/?p=1103</guid>
		<description><![CDATA[Google Analytics has had its latest update by now allowing asynchronous tracking cools. Pretty neat and also useful if you&#8217;re suffering or concerned on page load times. Interesting to see how it would work with multiple GA accounts, but, in theory should be easy to tweak. http://code.google.com/apis/analytics/docs/tracking/asyncTracking.htm]]></description>
			<content:encoded><![CDATA[<p>Google Analytics has had its latest update by now allowing asynchronous tracking cools. Pretty neat and also useful if you&#8217;re suffering or concerned on page load times. Interesting to see how it would work with multiple GA accounts, but, in theory should be easy to tweak.</p>
<p><a href="http://code.google.com/apis/analytics/docs/tracking/asyncTracking.html">http://code.google.com/apis/analytics/docs/tracking/asyncTracking.htm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ianwinter.co.uk/2009/12/02/asynchronous-tracking-with-google/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Prototype Validation using Ajax</title>
		<link>http://ianwinter.co.uk/2007/06/05/prototype-validation-using-ajax/</link>
		<comments>http://ianwinter.co.uk/2007/06/05/prototype-validation-using-ajax/#comments</comments>
		<pubDate>Tue, 05 Jun 2007 22:34:00 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I&#8217;ve been using the excellent Prototype validation over at &#60;a href=&#8221;http://tetlaw.id.au/view/javascript/really-easy-field-validation&#8221;&#62;dexagogo&#60;/a&#62; but recently wanted to have a a feature so as when you type a username in a sign up form it fires a real time lookup to check the username availability. After a bit of Googling and some experimentation I came up with the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using the excellent Prototype validation over at &lt;a href=&#8221;http://tetlaw.id.au/view/javascript/really-easy-field-validation&#8221;&gt;dexagogo&lt;/a&gt; but recently wanted to have a a feature so as when you type a username in a sign up form it fires a real time lookup to check the username availability. After a bit of Googling and some experimentation I came up with the following. Hopefully it&#8217;ll save you some time. In this case the lookup is done via Coldfusion which encodes and returns JSON.</p>
<p>The form bit is pretty standard.</p>
<p><code>&lt;div class="form-row"&gt;<br />
	&lt;div class="field-label"&gt;&lt;label for="field1"&gt;Username&lt;/label&gt;:&lt;/div&gt;<br />
	&lt;div class="field-widget"&gt;&lt;input name="field1" id="field1" class="text required validate-username" title="Enter yourusername." /&gt;&lt;/div&gt;<br />
&lt;/div&gt;</code></p>
<p>The Javascript bit included on this page in an external JS file.</p>
<p><code>Validation.addAllThese([<br />
    ['validate-username','Sorry, that username is already taken.',function(v,elm) {<br />
        if(elm._ajaxValidating &#038;&#038; elm._hasAjaxValidateResult) {<br />
            elm._ajaxValidating = false;<br />
            elm._hasAjaxValidateResult = false;<br />
            return elm._ajaxValidateResult;<br />
        }<br />
        var sendRequest = function() {<br />
            new Ajax.Request('/path/to/check/file?username='+v+'&#038;r='+Math.random(),{<br />
                onSuccess : function(response) {<br />
                    elm._ajaxValidateResult = eval(response.responseText);<br />
                    elm._hasAjaxValidateResult = true;<br />
                    Validation.test('validate-username',elm);<br />
                }<br />
            });<br />
            elm._ajaxValidating = true;<br />
            return true;<br />
        }<br />
        return elm._ajaxValidating || Validation.get('IsEmpty').test(v) || sendRequest();<br />
     }]<br />
]);</code></p>
<p>The Javascript bit in the page.</p>
<p><code>&lt;script language="javascript" type="text/javascript"&gt;<br />
	var valid_register = new Validation('register', {immediate:true,stopOnFirst:true,onSubmit:false});<br />
&lt;/script&gt;</code></p>
<p>The form is submitted with an Event.observe on the submit button I have as well. </p>
<p>And so concludes my first geekish post for a while, it feels strangely good!</p>
]]></content:encoded>
			<wfw:commentRss>http://ianwinter.co.uk/2007/06/05/prototype-validation-using-ajax/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>script.aculo.us 1.7.0</title>
		<link>http://ianwinter.co.uk/2007/01/23/scriptaculous-170/</link>
		<comments>http://ianwinter.co.uk/2007/01/23/scriptaculous-170/#comments</comments>
		<pubDate>Tue, 23 Jan 2007 12:26:00 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[prototype]]></category>
		<category><![CDATA[scriptaculous]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[A new version of script.aculo.us has now been released. It includes the final version of prototype (1.5.0) and a new Morph effect amongst other bits and bobs.]]></description>
			<content:encoded><![CDATA[<p>A new version of <a href="http://script.aculo.us/downloads">script.aculo.us</a> has now been released. It includes the final version of <a href="http://prototypejs.org/">prototype</a> (1.5.0) and a new Morph effect amongst other bits and bobs.</p>
]]></content:encoded>
			<wfw:commentRss>http://ianwinter.co.uk/2007/01/23/scriptaculous-170/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox 2.0.0.1 Release, Protoype bug fixed</title>
		<link>http://ianwinter.co.uk/2006/12/20/firefox-2001-release-protoype-bug-fixed/</link>
		<comments>http://ianwinter.co.uk/2006/12/20/firefox-2001-release-protoype-bug-fixed/#comments</comments>
		<pubDate>Wed, 20 Dec 2006 09:48:00 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Firefox 2.0.0.1 has been released fixing a number of security bugs but, more handily the prototype bug with object.extend is now fixed. The original bugzilla report has the repeatable test case (see comment 4) to test.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mozilla.com/en-US/firefox/">Firefox 2.0.0.1</a> has been released fixing a number of security bugs but, more handily the prototype bug with object.extend is now fixed.</p>
<p>The <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=357947">original bugzilla report</a> has the repeatable test case (see comment 4) to test.</p>
]]></content:encoded>
			<wfw:commentRss>http://ianwinter.co.uk/2006/12/20/firefox-2001-release-protoype-bug-fixed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Object.extend problem in Firefox 2.0</title>
		<link>http://ianwinter.co.uk/2006/10/26/objectextend-problem-in-firefox-20/</link>
		<comments>http://ianwinter.co.uk/2006/10/26/objectextend-problem-in-firefox-20/#comments</comments>
		<pubDate>Thu, 26 Oct 2006 10:53:00 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[An annoying bug has come up post Firefox 2.0 release to do with prototype and object.extent. A full text case can be found on the Ruby on Rails site. The bug is listed in bugzilla as well. Go vote for bug 357947 to get this sorted.]]></description>
			<content:encoded><![CDATA[<p>An annoying bug has come up post Firefox 2.0 release to do with prototype and object.extent.</p>
<p>A full text case can be found on the <a href="http://dev.rubyonrails.org/ticket/6481" target="_blank">Ruby on Rails</a> site. The bug is listed in bugzilla as well. Go vote for bug <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=357947">357947</a> to get this sorted.</p>
]]></content:encoded>
			<wfw:commentRss>http://ianwinter.co.uk/2006/10/26/objectextend-problem-in-firefox-20/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Top 10 Web Developer Libraries</title>
		<link>http://ianwinter.co.uk/2006/06/26/top-10-web-developer-libraries/</link>
		<comments>http://ianwinter.co.uk/2006/06/26/top-10-web-developer-libraries/#comments</comments>
		<pubDate>Mon, 26 Jun 2006 20:35:00 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[One of the many lists you&#8217;ll read and then forget about again, Top 10 Web Developer Libraries. Still quite useful if you&#8217;ve never seen any of the web2.0 stuff about.]]></description>
			<content:encoded><![CDATA[<p>One of the many lists you&#8217;ll read and then forget about again, <a href="http://www.cameronolthuis.com/2006/06/top-10-web-developer-libraries/" target="_blank">Top 10 Web Developer Libraries</a>. Still quite useful if you&#8217;ve never seen any of the web2.0 stuff about.</p>
]]></content:encoded>
			<wfw:commentRss>http://ianwinter.co.uk/2006/06/26/top-10-web-developer-libraries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ajax</title>
		<link>http://ianwinter.co.uk/2005/05/26/ajax-2/</link>
		<comments>http://ianwinter.co.uk/2005/05/26/ajax-2/#comments</comments>
		<pubDate>Thu, 26 May 2005 09:40:00 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[An interesting article over at adaptive path on the changing face of web applications and how they&#8217;re moving closer to desktop applications. Examples given are Google Maps &#038; Google Suggest. Ajax being short hand for Asynchronous JavaScript + XML. Worth a read. adaptive path ý ajax: a new approach to web applications]]></description>
			<content:encoded><![CDATA[<p>An interesting article over at adaptive path on the changing face of web applications and how they&#8217;re moving closer to desktop applications. Examples given are Google Maps &#038; Google Suggest. Ajax being short hand for Asynchronous JavaScript + XML. Worth a read.</p>
<p><a href="http://www.adaptivepath.com/publications/essays/archives/000385.php" target="_blank">adaptive path ý ajax: a new approach to web applications</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ianwinter.co.uk/2005/05/26/ajax-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

