<?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>Flipflops.org &#187; Mootools</title>
	<atom:link href="http://www.flipflops.org/category/mootools/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flipflops.org</link>
	<description>Flipflops.org is about web development and fairly conceptual art</description>
	<lastBuildDate>Sat, 05 Jun 2010 22:46:16 +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>My first bit of Mootools and centering a Google Map in a hidden div</title>
		<link>http://www.flipflops.org/2009/10/26/my-first-bit-of-mootools-and-centering-a-google-map-in-a-hidden-div/</link>
		<comments>http://www.flipflops.org/2009/10/26/my-first-bit-of-mootools-and-centering-a-google-map-in-a-hidden-div/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 22:56:10 +0000</pubDate>
		<dc:creator>Flipflops</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Mootools]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.flipflops.org/2009/10/26/my-first-bit-of-mootools-and-centering-a-google-map-in-a-hidden-div/</guid>
		<description><![CDATA[Started a new job last week for a really cool agency in a place I really want to work* &#8211; but they are Mootools users not jQuery folk, so I am been thrown headlong into (among other things) the world of Mootools. I&#8217;m used to just sitting down and being able to make things work [...]]]></description>
			<content:encoded><![CDATA[<p>Started a new job last week for a really cool agency in a place I really want to work* &#8211; but they are Mootools users not jQuery folk, so I am been thrown headlong into (among other things) the world of Mootools. I&#8217;m used to just sitting down and being able to make things work quickly and painlessly with jQuery and it is funny being back to basics again. Today I wrote my first useful bit of Mootools code, which in the grand scheme of things is nothing &#8211; just a nice fading toggle to show and hide a Google Map &#8211; but it still felt good.</p>
<p>Along the way I had to ran into a problem with my map &#8211; when I showed it the centre-ing was gone &#8211; I tried all sorts of things&#8230; map.checkResize() didn&#8217;t work and map.setCenter() didn&#8217;t work.</p>
<p>Eventually I deduced that first you actually need to call both functions &#8211; reset, then centre e.g.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">&nbsp;
    map.<span style="color: #660066;">checkResize</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    map.<span style="color: #660066;">setCenter</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">new</span> GLatLng<span style="color: #009900;">&#40;</span><span style="color: #CC0000;">51.90568</span><span style="color: #339933;">,</span> <span style="color: #339933;">-</span><span style="color: #CC0000;">1.33214</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Along my way I have found a <a href="http://jqueryvsmootools.com/">great article comparing jQuery and Mootools</a> &#8211; which I would recommend to anyone going either way.</p>
<p>*But it is a kind of a personal philosophy not to ever say on my blog where I do work, just because. I&#8217;ve taken over a big project running on a Cloud server written by a load of other people, the sort of thing that is hard but very rewarding.<br />
** I have no idea where those coordinates are. Maybe Up North somewhere?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.flipflops.org/2009/10/26/my-first-bit-of-mootools-and-centering-a-google-map-in-a-hidden-div/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
