<?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: moopop: &#8220;unobtrusive&#8221; popups with mootools</title>
	<atom:link href="http://blog.gonchuki.com/archives/moopop-unobtrusive-popups-with-mootools/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.gonchuki.com/archives/moopop-unobtrusive-popups-with-mootools/</link>
	<description></description>
	<pubDate>Mon, 08 Sep 2008 16:39:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Pablo Fabregat &#187; Moopop, ventanas emergentes en un paso</title>
		<link>http://blog.gonchuki.com/archives/moopop-unobtrusive-popups-with-mootools/#comment-259</link>
		<dc:creator>Pablo Fabregat &#187; Moopop, ventanas emergentes en un paso</dc:creator>
		<pubDate>Mon, 14 Jul 2008 04:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gonchuki.com/archives/moopop-unobtrusive-popups-with-mootools/#comment-259</guid>
		<description>[...] y al pié; extensión para Mootools que nos permite poner un simple [...]</description>
		<content:encoded><![CDATA[<p>[...] y al pié; extensión para Mootools que nos permite poner un simple [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gonchuki</title>
		<link>http://blog.gonchuki.com/archives/moopop-unobtrusive-popups-with-mootools/#comment-241</link>
		<dc:creator>gonchuki</dc:creator>
		<pubDate>Tue, 24 Jun 2008 02:39:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gonchuki.com/archives/moopop-unobtrusive-popups-with-mootools/#comment-241</guid>
		<description>yes, sure:
http://blog.gonchuki.com/archives/updating-moopop-for-mootools-12/</description>
		<content:encoded><![CDATA[<p>yes, sure:<br />
<a href="http://blog.gonchuki.com/archives/updating-moopop-for-mootools-12/" rel="nofollow">http://blog.gonchuki.com/archives/updating-moopop-for-mootools-12/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg Smith</title>
		<link>http://blog.gonchuki.com/archives/moopop-unobtrusive-popups-with-mootools/#comment-239</link>
		<dc:creator>Greg Smith</dc:creator>
		<pubDate>Mon, 23 Jun 2008 15:55:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gonchuki.com/archives/moopop-unobtrusive-popups-with-mootools/#comment-239</guid>
		<description>I'm waiting to get this for mootools 1.2 - any update yet?</description>
		<content:encoded><![CDATA[<p>I&#8217;m waiting to get this for mootools 1.2 - any update yet?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gonchuki</title>
		<link>http://blog.gonchuki.com/archives/moopop-unobtrusive-popups-with-mootools/#comment-238</link>
		<dc:creator>gonchuki</dc:creator>
		<pubDate>Sat, 14 Jun 2008 16:50:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gonchuki.com/archives/moopop-unobtrusive-popups-with-mootools/#comment-238</guid>
		<description>@Matt:
I have 1.2 code fully working and deployed in a production site, I just need a couple hours to update this post with the code :) that means... *when* I have those couple of hours :(</description>
		<content:encoded><![CDATA[<p>@Matt:<br />
I have 1.2 code fully working and deployed in a production site, I just need a couple hours to update this post with the code <img src='http://blog.gonchuki.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> that means&#8230; *when* I have those couple of hours <img src='http://blog.gonchuki.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://blog.gonchuki.com/archives/moopop-unobtrusive-popups-with-mootools/#comment-237</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Fri, 13 Jun 2008 10:02:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gonchuki.com/archives/moopop-unobtrusive-popups-with-mootools/#comment-237</guid>
		<description>Any chance of an update of moopop to work with mootools 1.2?</description>
		<content:encoded><![CDATA[<p>Any chance of an update of moopop to work with mootools 1.2?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matijs</title>
		<link>http://blog.gonchuki.com/archives/moopop-unobtrusive-popups-with-mootools/#comment-236</link>
		<dc:creator>Matijs</dc:creator>
		<pubDate>Thu, 12 Jun 2008 08:37:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gonchuki.com/archives/moopop-unobtrusive-popups-with-mootools/#comment-236</guid>
		<description>Added some centering to the popup:

[code]
add_pop_to: function(el) {
    el.addEvent('click', function(e){ new Event(e).stop(); this.popup(el); }.bind(this));
    
    var size = el.getAttribute('rel').match(/\[(\d+),\s*(\d+)\]/) &#124;&#124; ['', this.width, this.height];
    
    if (size[1]) {
    /*
        added centering of the popup window
    */
        var left = (screen.width - size[1]) / 2;
        var top = (screen.height - size[2]) / 2;
        el.setAttribute('popupprops', 'width=' + size[1] + ', height=' + size[2] + ', left=' + left + ', top=' + top);
    }
  },
[/code]</description>
		<content:encoded><![CDATA[<p>Added some centering to the popup:</p>
<p>[code]<br />
add_pop_to: function(el) {<br />
    el.addEvent(&#8217;click&#8217;, function(e){ new Event(e).stop(); this.popup(el); }.bind(this));</p>
<p>    var size = el.getAttribute(&#8217;rel&#8217;).match(/\[(\d+),\s*(\d+)\]/) || ['', this.width, this.height];</p>
<p>    if (size[1]) {<br />
    /*<br />
        added centering of the popup window<br />
    */<br />
        var left = (screen.width - size[1]) / 2;<br />
        var top = (screen.height - size[2]) / 2;<br />
        el.setAttribute(&#8217;popupprops&#8217;, &#8216;width=&#8217; + size[1] + &#8216;, height=&#8217; + size[2] + &#8216;, left=&#8217; + left + &#8216;, top=&#8217; + top);<br />
    }<br />
  },<br />
[/code]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gonchuki</title>
		<link>http://blog.gonchuki.com/archives/moopop-unobtrusive-popups-with-mootools/#comment-118</link>
		<dc:creator>gonchuki</dc:creator>
		<pubDate>Sat, 16 Feb 2008 21:18:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gonchuki.com/archives/moopop-unobtrusive-popups-with-mootools/#comment-118</guid>
		<description>In fact I was thinking about rewriting some bits for mootools 1.2 but that will have to wait until we get the final release as most people is still using 1.11 for production.</description>
		<content:encoded><![CDATA[<p>In fact I was thinking about rewriting some bits for mootools 1.2 but that will have to wait until we get the final release as most people is still using 1.11 for production.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott L</title>
		<link>http://blog.gonchuki.com/archives/moopop-unobtrusive-popups-with-mootools/#comment-117</link>
		<dc:creator>Scott L</dc:creator>
		<pubDate>Sat, 16 Feb 2008 19:33:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gonchuki.com/archives/moopop-unobtrusive-popups-with-mootools/#comment-117</guid>
		<description>Added some lines for positioning:

//at the top
width: 0,
height: 0,
top: 70,
left: 160,

//towards bottom
if (size[1]) el.setAttribute('popupprops', 'width=' + size[1] + ', height=' + size[2] + ', top=' + this.top + ', left=' + this.left );

We could probably set this in the rel tag too but that may be too cumbersome.  Would be nice to have a "get user screen width" function and have the window centered based on that. ;)</description>
		<content:encoded><![CDATA[<p>Added some lines for positioning:</p>
<p>//at the top<br />
width: 0,<br />
height: 0,<br />
top: 70,<br />
left: 160,</p>
<p>//towards bottom<br />
if (size[1]) el.setAttribute(&#8217;popupprops&#8217;, &#8216;width=&#8217; + size[1] + &#8216;, height=&#8217; + size[2] + &#8216;, top=&#8217; + this.top + &#8216;, left=&#8217; + this.left );</p>
<p>We could probably set this in the rel tag too but that may be too cumbersome.  Would be nice to have a &#8220;get user screen width&#8221; function and have the window centered based on that. <img src='http://blog.gonchuki.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://blog.gonchuki.com/archives/moopop-unobtrusive-popups-with-mootools/#comment-114</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Fri, 08 Feb 2008 09:38:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gonchuki.com/archives/moopop-unobtrusive-popups-with-mootools/#comment-114</guid>
		<description>Hi, thanx for this class as I like to use it for my project!

Just a little improvement from me:

I wanted to use popups for a gallery, so I like to give it a name to open all those links in this popup. Therefor I changed it to:

popup: function(el) {
  window.open(el.href, el.name &#124;&#124; '', el.getAttribute('popupprops') &#124;&#124; '');
}

Thanx again,
Daniel</description>
		<content:encoded><![CDATA[<p>Hi, thanx for this class as I like to use it for my project!</p>
<p>Just a little improvement from me:</p>
<p>I wanted to use popups for a gallery, so I like to give it a name to open all those links in this popup. Therefor I changed it to:</p>
<p>popup: function(el) {<br />
  window.open(el.href, el.name || &#8221;, el.getAttribute(&#8217;popupprops&#8217;) || &#8221;);<br />
}</p>
<p>Thanx again,<br />
Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FLaX</title>
		<link>http://blog.gonchuki.com/archives/moopop-unobtrusive-popups-with-mootools/#comment-54</link>
		<dc:creator>FLaX</dc:creator>
		<pubDate>Mon, 22 Oct 2007 19:56:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gonchuki.com/archives/moopop-unobtrusive-popups-with-mootools/#comment-54</guid>
		<description>strange. I figured out the problem, in my javascript declaration I had this:



instead of this:



and it didn't work, but using the web developer tools in FF it recognized all my scripts, including moopop! Strange... Anyway cheers! thanks for sharing the script!</description>
		<content:encoded><![CDATA[<p>strange. I figured out the problem, in my javascript declaration I had this:</p>
<p>instead of this:</p>
<p>and it didn&#8217;t work, but using the web developer tools in FF it recognized all my scripts, including moopop! Strange&#8230; Anyway cheers! thanks for sharing the script!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
