<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: CSS: Position-x and Position-y</title>
	<atom:link href="http://www.rickyh.co.uk/css-position-x-and-position-y/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rickyh.co.uk/css-position-x-and-position-y/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 25 Dec 2011 17:28:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: PD</title>
		<link>http://www.rickyh.co.uk/css-position-x-and-position-y/#comment-238</link>
		<dc:creator>PD</dc:creator>
		<pubDate>Wed, 21 Sep 2011 20:24:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.rickyh.co.uk/?p=100#comment-238</guid>
		<description>I&#039;m trying to integrate with jQuery, I&#039;ve tried 1.4 w/out luck. When I link the jQuery Lib none move in the allowed direction. Do you know if this is compatible with other versions of jQuery?

Thanks
PD</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to integrate with jQuery, I&#8217;ve tried 1.4 w/out luck. When I link the jQuery Lib none move in the allowed direction. Do you know if this is compatible with other versions of jQuery?</p>
<p>Thanks<br />
PD</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mateng, TYPO3 Developer Cologne</title>
		<link>http://www.rickyh.co.uk/css-position-x-and-position-y/#comment-227</link>
		<dc:creator>Mateng, TYPO3 Developer Cologne</dc:creator>
		<pubDate>Thu, 11 Aug 2011 12:55:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.rickyh.co.uk/?p=100#comment-227</guid>
		<description>This looks nice - but as my project is depending on jQuery: Is there an alternative method without Mootools?</description>
		<content:encoded><![CDATA[<p>This looks nice &#8211; but as my project is depending on jQuery: Is there an alternative method without Mootools?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tatarao mylipalli</title>
		<link>http://www.rickyh.co.uk/css-position-x-and-position-y/#comment-223</link>
		<dc:creator>tatarao mylipalli</dc:creator>
		<pubDate>Thu, 07 Jul 2011 04:49:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.rickyh.co.uk/?p=100#comment-223</guid>
		<description>Hi Ricky,
 The demo is so nice and its working fine in IE browser and the events of rad grid control also fired, but in firefox and chrome rad grid control events are not fired. please suggest me is their any modification to  work in firefox and chrome.
Thanks.</description>
		<content:encoded><![CDATA[<p>Hi Ricky,<br />
 The demo is so nice and its working fine in IE browser and the events of rad grid control also fired, but in firefox and chrome rad grid control events are not fired. please suggest me is their any modification to  work in firefox and chrome.<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reinhard</title>
		<link>http://www.rickyh.co.uk/css-position-x-and-position-y/#comment-219</link>
		<dc:creator>Reinhard</dc:creator>
		<pubDate>Thu, 09 Jun 2011 16:57:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.rickyh.co.uk/?p=100#comment-219</guid>
		<description>Looks great and is exactly the problem I would like to solve, i.e. fixed x and absolute y pos., but I am not experienced enough to use your code. I want to scroll a widget element in WP Theme Weaver. Any directions how and whether your solution can be applied are very much appreciated.</description>
		<content:encoded><![CDATA[<p>Looks great and is exactly the problem I would like to solve, i.e. fixed x and absolute y pos., but I am not experienced enough to use your code. I want to scroll a widget element in WP Theme Weaver. Any directions how and whether your solution can be applied are very much appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philip Dahl</title>
		<link>http://www.rickyh.co.uk/css-position-x-and-position-y/#comment-207</link>
		<dc:creator>Philip Dahl</dc:creator>
		<pubDate>Sun, 10 Apr 2011 17:58:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.rickyh.co.uk/?p=100#comment-207</guid>
		<description>Oh man I should have looked for this years ago! Thanks for the knowledge!</description>
		<content:encoded><![CDATA[<p>Oh man I should have looked for this years ago! Thanks for the knowledge!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maxmurd</title>
		<link>http://www.rickyh.co.uk/css-position-x-and-position-y/#comment-206</link>
		<dc:creator>maxmurd</dc:creator>
		<pubDate>Fri, 08 Apr 2011 17:13:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.rickyh.co.uk/?p=100#comment-206</guid>
		<description>Sorry man your demo is cool but your explaination is defintely too brief and lacks of some fundamental details; your code in demoMain is quite different, that&#039;s why the demo works!</description>
		<content:encoded><![CDATA[<p>Sorry man your demo is cool but your explaination is defintely too brief and lacks of some fundamental details; your code in demoMain is quite different, that&#8217;s why the demo works!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke</title>
		<link>http://www.rickyh.co.uk/css-position-x-and-position-y/#comment-201</link>
		<dc:creator>Luke</dc:creator>
		<pubDate>Wed, 30 Mar 2011 04:24:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.rickyh.co.uk/?p=100#comment-201</guid>
		<description>Great tutorial, thanks! :)</description>
		<content:encoded><![CDATA[<p>Great tutorial, thanks! <img src='http://www.rickyh.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cliff</title>
		<link>http://www.rickyh.co.uk/css-position-x-and-position-y/#comment-195</link>
		<dc:creator>Cliff</dc:creator>
		<pubDate>Thu, 17 Mar 2011 17:48:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.rickyh.co.uk/?p=100#comment-195</guid>
		<description>As an update, I figured out what my problem was.  The jquery library does not seem to play nicely with mootools, so ensure that you&#039;re not including both if you want to avoid an hour of frustration.</description>
		<content:encoded><![CDATA[<p>As an update, I figured out what my problem was.  The jquery library does not seem to play nicely with mootools, so ensure that you&#8217;re not including both if you want to avoid an hour of frustration.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cliff</title>
		<link>http://www.rickyh.co.uk/css-position-x-and-position-y/#comment-194</link>
		<dc:creator>Cliff</dc:creator>
		<pubDate>Thu, 17 Mar 2011 01:36:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.rickyh.co.uk/?p=100#comment-194</guid>
		<description>Hey Ricky,

The demo you have is awesome, but I cannot get it to work.  I&#039;ve copied the javascript you posted in the earlier comment, saved it as ScrollSpy.js, and still nothing.  I also tried copying the source of your demo example and using that, but that doesn&#039;t work either.  I&#039;d really like to get this working because it seems like easily the best fix anywhere on the internet that I can find.

Basically what I&#039;d like to know is this: What isn&#039;t displayed in the source of the demo page?  I feel like thats probably the key to whatever I have that isn&#039;t working.</description>
		<content:encoded><![CDATA[<p>Hey Ricky,</p>
<p>The demo you have is awesome, but I cannot get it to work.  I&#8217;ve copied the javascript you posted in the earlier comment, saved it as ScrollSpy.js, and still nothing.  I also tried copying the source of your demo example and using that, but that doesn&#8217;t work either.  I&#8217;d really like to get this working because it seems like easily the best fix anywhere on the internet that I can find.</p>
<p>Basically what I&#8217;d like to know is this: What isn&#8217;t displayed in the source of the demo page?  I feel like thats probably the key to whatever I have that isn&#8217;t working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.rickyh.co.uk/css-position-x-and-position-y/#comment-189</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 23 Feb 2011 21:33:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.rickyh.co.uk/?p=100#comment-189</guid>
		<description>var ScrollSpy = new Class({
	
	/* implements */
	Implements: [Options,Events],

	/* options */
	options: {
		min: 0,
		mode: &#039;vertical&#039;,
		max: 0,
		container: window,
		onEnter: $empty,
		onLeave: $empty,
		onTick: $empty
	},
	
	/* initialization */
	initialize: function(options) {
		/* set options */
		this.setOptions(options);
		this.container = $(this.options.container);
		this.enters = this.leaves = 0;
		this.max = this.options.max;
		
		/* fix max */
		if(this.max == 0) 
		{ 
			var ss = this.container.getScrollSize();
			this.max = this.options.mode == &#039;vertical&#039; ? ss.y : ss.x;
		}
		/* make it happen */
		this.addListener();
	},
	
	/* a method that does whatever you want */
	addListener: function() {
		/* state trackers */
		this.inside = false;
		this.container.addEvent(&#039;scroll&#039;,function() {
			/* if it has reached the level */
			var position = this.container.getScroll();
			var xy = this.options.mode == &#039;vertical&#039; ? position.y : position.x;
			/* if we reach the minimum and are still below the max... */
			if(xy &gt;= this.options.min &amp;&amp; xy &lt;= this.max) {
					/* trigger Enter event if necessary */
					if(!this.inside) {
						/* record as inside */
						this.inside = true;
						this.enters++;
						/* fire enter event */
						this.fireEvent(&#039;enter&#039;,[position,this.enters]);
					}
					/* trigger the &quot;tick&quot;, always */
					this.fireEvent(&#039;tick&#039;,[position,this.inside,this.enters,this.leaves]);
			}
			else {
				/* trigger leave */
				if(this.inside) 
				{
					this.inside = false;
					this.leaves++;
					this.fireEvent(&#039;leave&#039;,[position,this.leaves]);
				}
			}
		}.bind(this));
	}
});</description>
		<content:encoded><![CDATA[<p>var ScrollSpy = new Class({</p>
<p>	/* implements */<br />
	Implements: [Options,Events],</p>
<p>	/* options */<br />
	options: {<br />
		min: 0,<br />
		mode: &#8216;vertical&#8217;,<br />
		max: 0,<br />
		container: window,<br />
		onEnter: $empty,<br />
		onLeave: $empty,<br />
		onTick: $empty<br />
	},</p>
<p>	/* initialization */<br />
	initialize: function(options) {<br />
		/* set options */<br />
		this.setOptions(options);<br />
		this.container = $(this.options.container);<br />
		this.enters = this.leaves = 0;<br />
		this.max = this.options.max;</p>
<p>		/* fix max */<br />
		if(this.max == 0)<br />
		{<br />
			var ss = this.container.getScrollSize();<br />
			this.max = this.options.mode == &#8216;vertical&#8217; ? ss.y : ss.x;<br />
		}<br />
		/* make it happen */<br />
		this.addListener();<br />
	},</p>
<p>	/* a method that does whatever you want */<br />
	addListener: function() {<br />
		/* state trackers */<br />
		this.inside = false;<br />
		this.container.addEvent(&#8216;scroll&#8217;,function() {<br />
			/* if it has reached the level */<br />
			var position = this.container.getScroll();<br />
			var xy = this.options.mode == &#8216;vertical&#8217; ? position.y : position.x;<br />
			/* if we reach the minimum and are still below the max&#8230; */<br />
			if(xy >= this.options.min &#038;&#038; xy <= this.max) {<br />
					/* trigger Enter event if necessary */<br />
					if(!this.inside) {<br />
						/* record as inside */<br />
						this.inside = true;<br />
						this.enters++;<br />
						/* fire enter event */<br />
						this.fireEvent(&#8216;enter&#8217;,[position,this.enters]);<br />
					}<br />
					/* trigger the &#8220;tick&#8221;, always */<br />
					this.fireEvent(&#8216;tick&#8217;,[position,this.inside,this.enters,this.leaves]);<br />
			}<br />
			else {<br />
				/* trigger leave */<br />
				if(this.inside)<br />
				{<br />
					this.inside = false;<br />
					this.leaves++;<br />
					this.fireEvent(&#8216;leave&#8217;,[position,this.leaves]);<br />
				}<br />
			}<br />
		}.bind(this));<br />
	}<br />
});</p>
]]></content:encoded>
	</item>
</channel>
</rss>

