<?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>RB Music - Uncovered &#38; Rediscovered Hits &#187; MooTools</title>
	<atom:link href="http://www.rb-music.co.uk/tag/mootools/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rb-music.co.uk</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 27 Oct 2011 16:13:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Mootools form validation with mootools.floor</title>
		<link>http://www.rb-music.co.uk/2009/03/23/mootools-form-validation-with-mootoolsfloor/</link>
		<comments>http://www.rb-music.co.uk/2009/03/23/mootools-form-validation-with-mootoolsfloor/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 11:59:25 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[MooTools]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Mootools.Math]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://www.rb-music.co.uk/?p=192</guid>
		<description><![CDATA[Latest javascript mission was to get some nice validation for a holiding page I was creating I wanted something quite simple but ended up coming across a class called mootools.floor which cover all your validation needs e.g. email check, compare two field etc there are a long list of possibilites in the documentation

It includes support [...]]]></description>
			<content:encoded><![CDATA[<p>Latest javascript mission was to get some nice validation for a holiding page I was creating I wanted something quite simple but ended up coming across a class called <a href="http://mootools.floor.ch/docs/formcheck/files/formcheck-js.html">mootools.floor</a> which cover all your validation needs e.g. email check, compare two field etc there are a long list of possibilites in the <a href="http://mootools.floor.ch/docs/formcheck/files/formcheck-js.html">documentation</a></p>
<p><span id="more-192"></span></p>
<p>It includes support for AJAX form submission plus countless other features. The other plus point is the tooltips can be styled completely using CSS so this will fit into any site with a bit of tinkering. It also supports custom validation just write your own javascript function of what you want to validate. It really is a nice tool. It&#8217;s fairly easy to get up and running but once you get past the simple parts of this class it can be fairly tricky to get your head around &#8211; but once you get your head around it, its really nice to use!</p>
<p><a href="http://mootools.floor.ch/en/labs/">See the demos</a> of this in action</p>
<p><a href="http://mootools.floor.ch/docs/formcheck/files/formcheck-js.html">Documentation</a></p>
<p><img src="http://www.rb-music.co.uk/wp-content/uploads/2009/03/mathsfloor.jpg" alt="maths.floor example" title="maths.floor example" width="565" height="358" class="alignnone size-full wp-image-195" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rb-music.co.uk/2009/03/23/mootools-form-validation-with-mootoolsfloor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Loading graphic generator</title>
		<link>http://www.rb-music.co.uk/2009/01/17/loading-graphic-generator/</link>
		<comments>http://www.rb-music.co.uk/2009/01/17/loading-graphic-generator/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 20:36:09 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[MooTools]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[loading]]></category>
		<category><![CDATA[loading graphic]]></category>
		<category><![CDATA[pre-loading]]></category>

		<guid isPermaLink="false">http://www.rb-music.co.uk/?p=169</guid>
		<description><![CDATA[Earlier I was looking around for a loading graphic for my pre-loading image rotator and on my Google travels came across &#8216;Ajaxload&#8216;. This website will create custom loading graphics on the fly. 

Pick from a selection of different types of graphics enough to suit every site. Pick a background colour using the colour pick or [...]]]></description>
			<content:encoded><![CDATA[<p>Earlier I was looking around for a loading graphic for my pre-loading image rotator and on my Google travels came across &#8216;<a href="http://www.ajaxload.info/">Ajaxload</a>&#8216;. This website will create custom loading graphics on the fly. </p>
<p><span id="more-169"></span></p>
<p>Pick from a selection of different types of graphics enough to suit every site. Pick a background colour using the colour pick or supply hex code or go for transparent. The same applies for a foreground colour. Lets go for white background colour and the blue of my site for foreground as an example. Hit generate and it pops up in the box below hit download and there you have it a custom loading graphic&#8230;</p>
<p><img src="http://www.rb-music.co.uk/wp-content/uploads/2009/01/ajax-loader.gif" alt="loading graphic from ajaxload.info" title="loading graphic from ajaxload.info" width="16" height="16" /></p>
<p><a href="http://www.ajaxload.info/">Ajaxload &#8211; Ajax loading gif generator</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rb-music.co.uk/2009/01/17/loading-graphic-generator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MooTools preloading image rotator class</title>
		<link>http://www.rb-music.co.uk/2009/01/17/mootools-preloading-image-rotator-class/</link>
		<comments>http://www.rb-music.co.uk/2009/01/17/mootools-preloading-image-rotator-class/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 20:25:20 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[MooTools]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[image rotator]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mooTools Javascript]]></category>
		<category><![CDATA[pre-loading images]]></category>

		<guid isPermaLink="false">http://www.rb-music.co.uk/?p=166</guid>
		<description><![CDATA[Following on from my previous post about a pre-loading image rotator I have decided to create a mooTools class for it so it can be used easily over and over again.

This class will pre-load an array of images and then begin to fade between them useful if you want to load particularly large images and [...]]]></description>
			<content:encoded><![CDATA[<p>Following on from my <a href="http://www.rb-music.co.uk/2008/10/20/mootools-preloading-image-loader/">previous post</a> about a pre-loading image rotator I have decided to create a mooTools class for it so it can be used easily over and over again.</p>
<p><span id="more-166"></span></p>
<p>This class will pre-load an array of images and then begin to fade between them useful if you want to load particularly large images and let your users know that the images are on there way.</p>
<p>An example of the class in action can be <a href="http://www.rb-music.co.uk/examples/mootoolspreloader/mootoolsclass.html">found here</a></p>
<p>To download the example for your own use it can be <a href="http://www.rb-music.co.uk/examples/mootoolspreloader/mooclass.zip">downloaded here</a></p>
<p>This has been tested in Firefox 3, Opera 10 and Internet Explorer 7&#8230; Feel free to comment on any suggestions for improved functionality! Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rb-music.co.uk/2009/01/17/mootools-preloading-image-rotator-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mootools Popups</title>
		<link>http://www.rb-music.co.uk/2009/01/06/mootools-popups/</link>
		<comments>http://www.rb-music.co.uk/2009/01/06/mootools-popups/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 22:52:50 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[MooTools]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[slimbox]]></category>
		<category><![CDATA[smoothbox]]></category>
		<category><![CDATA[squeezebox]]></category>
		<category><![CDATA[thickbox]]></category>

		<guid isPermaLink="false">http://www.rb-music.co.uk/?p=160</guid>
		<description><![CDATA[On most project I tend to use this somewhere or other a &#8220;slimbox&#8221; type of popup you know the ones. Well here are two takes on this effect allowing for images/iframe content and ajax calls.

Squeezebox
http://digitarald.de/project/squeezebox/
I&#8217;d rate this over smoothbox it tends to throw back some JS errors when I used it although it could be [...]]]></description>
			<content:encoded><![CDATA[<p>On most project I tend to use this somewhere or other a &#8220;slimbox&#8221; type of popup you know the ones. Well here are two takes on this effect allowing for images/iframe content and ajax calls.</p>
<p><span id="more-160"></span></p>
<h3>Squeezebox</h3>
<p><a href="http://digitarald.de/project/squeezebox/">http://digitarald.de/project/squeezebox/</a></p>
<p>I&#8217;d rate this over smoothbox it tends to throw back some JS errors when I used it although it could be down to conflicts I have not got round to checking it out yet&#8230; Works with Moo tools 1.2</p>
<h3>Smoothbox</h3>
<p><a href="http://gueschla.com/labs/smoothbox/">http://gueschla.com/labs/smoothbox/</a></p>
<p>I think this is an older version development wise however it still functions perfectly apart from the JS errors it might just be me!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rb-music.co.uk/2009/01/06/mootools-popups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MooTools preloading image rotator</title>
		<link>http://www.rb-music.co.uk/2008/10/20/mootools-preloading-image-loader/</link>
		<comments>http://www.rb-music.co.uk/2008/10/20/mootools-preloading-image-loader/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 20:31:22 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[MooTools]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.rb-music.co.uk/?p=64</guid>
		<description><![CDATA[I must have written six or seven of these bad boys since about January so I though one last time I&#8217;ll post it here and adapt it from time to time when I need it ! So here it is for both me any anyone else intrested

This takes a number of images pre loads them [...]]]></description>
			<content:encoded><![CDATA[<p>I must have written six or seven of these bad boys since about January so I though one last time I&#8217;ll post it here and adapt it from time to time when I need it ! So here it is for both me any anyone else intrested</p>
<p><span id="more-64"></span></p>
<p>This takes a number of images pre loads them and will then fade between them</p>
<p>html</p>
<div class="pre">&lt;div id=&#8221;image_rotator&#8221;&gt;<br />
&lt;img src=&#8221;image/img1.jpg&#8221; style=&#8221;visibility: visible; opacity: 1&#8243; /&gt;<br />
&lt;img src=&#8221;image/img2.jpg&#8221; style=&#8221;visibility: hidden; opacity: 0&#8243; /&gt;<br />
&lt;img src=&#8221;image/img3.jpg&#8221; style=&#8221;visibility: hidden; opacity: 0&#8243; /&gt;<br />
&lt;/div&gt;</div>
<p>css</p>
<div class="pre">#image_rotator {<br />
position: relative;<br />
width: 100px;<br />
height: 100px;<br />
}<br />
#image_rotator {<br />
position: absolute<br />
}</div>
<p>javascript</p>
<div class="pre">window.addEvent(&#8220;domready&#8221;, function() {</p>
<p>var images = $$(&#8216;#image_rotator img&#8217;) //the image<br />
var imgTotal = images.length-1;<br />
var pos = 0;</p>
<p>//set up an array of image src&#8217;s we want to preload<br />
var imgSrcs = new Array();</p>
<p>//loop through array and stuff the images src&#8217;s into an array to use next<br />
images.each(function (el,l) {<br />
imgSrcs[l] = images[l].src;<br />
});</p>
<p>//check all our images from array have loaded then start calling fadeImages every 5 seconds<br />
var myImages = new Asset.images(imgSrcs,<br />
onComplete: function(){<br />
fadeImages.periodical(5000);<br />
}<br />
});</p>
<p>function fadeImages() {</p>
<p>//if we are at the end of list of images fade out last 1 fade in 1st else we fade current and fade in the next<br />
if (pos == imgTotal) {<br />
fadeImgOut=imgTotal;<br />
fadeImgIn =0;<br />
pos = 0;<br />
}<br />
else {<br />
fadeImgOut=pos;<br />
fadeImgIn =pos+1;<br />
pos ++;<br />
}</p>
<p>//do the fading stuff<br />
var fadeOut = new Fx.Tween(images[fadeImgOut], {duration: 2000});<br />
var fadeIn = new Fx.Tween(images[fadeImgIn], {duration: 2000});<br />
fadeOut.start(&#8216;opacity&#8217;,[1,0]);<br />
fadeIn.start(&#8216;opacity&#8217;,[0,1]);</p>
<p>}</p>
<p>});</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.rb-music.co.uk/2008/10/20/mootools-preloading-image-loader/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>MooTools product scroller</title>
		<link>http://www.rb-music.co.uk/2008/10/17/mootools-product-scroller/</link>
		<comments>http://www.rb-music.co.uk/2008/10/17/mootools-product-scroller/#comments</comments>
		<pubDate>Fri, 17 Oct 2008 19:44:09 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[MooTools]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.rb-music.co.uk/?p=27</guid>
		<description><![CDATA[On a recent project we needed a way of scrolling a product listing nicley I came up with following.

Obviously there are probably a zillion ways of acheiving the same result but this is my take on it. I admit to not being any kind of genius when it comes to javascript/mootools so probably room for [...]]]></description>
			<content:encoded><![CDATA[<p>On a recent project we needed a way of scrolling a product listing nicley I came up with following.</p>
<p><span id="more-27"></span><br />
Obviously there are probably a zillion ways of acheiving the same result but this is my take on it. I admit to not being any kind of genius when it comes to javascript/mootools so probably room for improvement but hey it works!</p>
<p>html</p>
<div class="pre">
&lt;div=&#8221;left&#8221;&gt;&lt;/div&gt;<br />
&lt;div id=&#8221;wrapper&#8221;&gt;<br />
&lt;div=&#8221;carosuel&#8221;&gt;<br />
&lt;img src=&#8221;" /&gt;<br />
&lt;img src=&#8221;" /&gt;<br />
&lt;img src=&#8221;" /&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;div=&#8221;right&#8221;&gt;&lt;/div&gt;
</div>
<p>css</p>
<div class="pre">
#wrapper {<br />
width: x;<br />
height: x<br />
position: relative;<br />
}<br />
#carousel {<br />
left: 0;<br />
width: x;<br />
}
</div>
<p>javascript</p.</p>
<div class="pre">
// Let&#8217;s define some variables first<br />
var wrapper = $(&#8216;wrap&#8217;); // The outer wrapper<br />
var carousel = $(&#8216;carousel&#8217;); // The inner wrapper<br />
var items = $$(&#8216;#carousel div&#8217;); // The different elements, this is an array<br />
var item_width = 52; // The full width of a single item (incl. borders, padding, etc &#8230; if there is any)<br />
var max_margin = item_width*items.length; //The width of the carousel elements with the wrapper<br />
var allowScroll = true; //Allow scroll depending on with of carousel</p>
<p>var min_move = wrapper.getStyle(&#8220;width&#8221;).toInt() &#8211; max_margin + 10; //Work out the maximum margin to move the carousel to</p>
<p>//Check to see if the carousel is less then the wrapper if so don&#8217;t allow any scrolling<br />
if (max_margin < wrapper.getStyle("width").toInt())  {<br />
	allowScroll = false;<br />
}</p>
<p>// Set up the animation<br />
var animation = new Fx.Tween(carousel, {duration: 1000});</p>
<p>// The function to browse forward(right)<br />
function next_item(pos){<br />
	if(pos >= -max_margin){<br />
		animation.start(&#8216;left&#8217;, 0);<br />
	}<br />
}</p>
<p>// The function to browse backward(left)<br />
function previous_item(pos){<br />
	if(pos <= 0){<br />
	animation.start('left', min_move);<br />
	}<br />
}</p>
<p>// Set up the 'next' and 'previous' buttons only allow if allowScroll = true<br />
$('left').addEvent('mouseover', function(){<br />
	if (allowScroll == true) {<br />
		var position = parseInt(carousel.getStyle('left'));<br />
		previous_item(position);<br />
	}</p>
<p>});</p>
<p>$('right').addEvent('mouseover', function(){<br />
	if (allowScroll == true) {<br />
		var position = parseInt(carousel.getStyle('left'));<br />
		next_item(position);<br />
	}<br />
});</p>
<p>$('left').addEvent('mouseout', function(e){<br />
	animation.cancel();<br />
});</p>
<p>$('right').addEvent('mouseout', function(e){<br />
	animation.cancel();<br />
});
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.rb-music.co.uk/2008/10/17/mootools-product-scroller/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

