<?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"
	>
<channel>
	<title>Comments on: JavaScript overlay using Prototype and Script.aculo.us</title>
	<atom:link href="http://mattroper.co.uk/2008/05/27/javascript-overlay-using-prototype-and-scriptaculous/feed/" rel="self" type="application/rss+xml" />
	<link>http://mattroper.co.uk/2008/05/27/javascript-overlay-using-prototype-and-scriptaculous/</link>
	<description></description>
	<pubDate>Tue, 06 Jan 2009 02:05:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: JDD</title>
		<link>http://mattroper.co.uk/2008/05/27/javascript-overlay-using-prototype-and-scriptaculous/#comment-50</link>
		<dc:creator>JDD</dc:creator>
		<pubDate>Fri, 22 Aug 2008 22:18:16 +0000</pubDate>
		<guid isPermaLink="false">http://mattroper.co.uk/?p=8#comment-50</guid>
		<description>I optimized your code a bit, I didn't test it so there could be some bugs.
I made the dialog appear after the overlay has finished its fade-in animation.
http://gist.github.com/6855</description>
		<content:encoded><![CDATA[<p>I optimized your code a bit, I didn&#8217;t test it so there could be some bugs.<br />
I made the dialog appear after the overlay has finished its fade-in animation.<br />
<a href="http://gist.github.com/6855" rel="nofollow">http://gist.github.com/6855</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://mattroper.co.uk/2008/05/27/javascript-overlay-using-prototype-and-scriptaculous/#comment-25</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Thu, 05 Jun 2008 08:06:44 +0000</pubDate>
		<guid isPermaLink="false">http://mattroper.co.uk/?p=8#comment-25</guid>
		<description>Hi Steve, thanks for the feedback - glad you found it useful!

I think I came across the height issue myself at some stage. I also changed the CSS so that the overlay position is fixed, stopping the user scrolling past the end of the overlay.

It was able to centre the dialogue better with a fixed height and width, using negative margins to bring it back in line:

	top: 50%;
	left: 50%;
	width: 30em;
	height: 22em;
	margin: -11em 0 0 -15em;</description>
		<content:encoded><![CDATA[<p>Hi Steve, thanks for the feedback - glad you found it useful!</p>
<p>I think I came across the height issue myself at some stage. I also changed the CSS so that the overlay position is fixed, stopping the user scrolling past the end of the overlay.</p>
<p>It was able to centre the dialogue better with a fixed height and width, using negative margins to bring it back in line:</p>
<p>	top: 50%;<br />
	left: 50%;<br />
	width: 30em;<br />
	height: 22em;<br />
	margin: -11em 0 0 -15em;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://mattroper.co.uk/2008/05/27/javascript-overlay-using-prototype-and-scriptaculous/#comment-24</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 04 Jun 2008 16:33:11 +0000</pubDate>
		<guid isPermaLink="false">http://mattroper.co.uk/?p=8#comment-24</guid>
		<description>Sorry for double post, but just to add, for some reason the overlay was only working up to the last element on the page, (if the browser was bigger than content) so I change line:

this.overlay.setStyle({ height: document.body.getHeight() + 'px' });

to:

this.overlay.setStyle({ height: '100%' });</description>
		<content:encoded><![CDATA[<p>Sorry for double post, but just to add, for some reason the overlay was only working up to the last element on the page, (if the browser was bigger than content) so I change line:</p>
<p>this.overlay.setStyle({ height: document.body.getHeight() + &#8216;px&#8217; });</p>
<p>to:</p>
<p>this.overlay.setStyle({ height: &#8216;100%&#8217; });</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://mattroper.co.uk/2008/05/27/javascript-overlay-using-prototype-and-scriptaculous/#comment-23</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 04 Jun 2008 16:15:44 +0000</pubDate>
		<guid isPermaLink="false">http://mattroper.co.uk/?p=8#comment-23</guid>
		<description>Cheers mate, found this useful, going to adapt it to handle content through ajax. ;)</description>
		<content:encoded><![CDATA[<p>Cheers mate, found this useful, going to adapt it to handle content through ajax. <img src='http://mattroper.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
</channel>
</rss>
