<?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>Phil Brown&#039;s Web Development Blog &#187; Google Maps</title>
	<atom:link href="http://blog.philipbrown.id.au/tag/google-maps/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.philipbrown.id.au</link>
	<description></description>
	<lastBuildDate>Mon, 24 May 2010 05:11:00 +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>Boxen &#8211; a jQuery iframe plugin</title>
		<link>http://blog.philipbrown.id.au/2009/04/boxen-a-jquery-iframe-plugin/</link>
		<comments>http://blog.philipbrown.id.au/2009/04/boxen-a-jquery-iframe-plugin/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 01:00:41 +0000</pubDate>
		<dc:creator>Phil</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[Lightbox]]></category>

		<guid isPermaLink="false">http://morecowbell.net.au/?p=60</guid>
		<description><![CDATA[As mentioned in a previous post, I&#8217;m a big fan of displaying small, configuration style screens in Lightbox style windows. If you&#8217;re not familiar with Lightbox, check it out here.
The thing with configuration screens is they usually have a little more to do than simply display an image or other static content. In fact,  [...]]]></description>
			<content:encoded><![CDATA[<p>As mentioned in a <a href="http://morecowbell.net.au/2009/02/changing-layouts-with-zend-contextswitch/">previous post</a>, I&#8217;m a big fan of displaying small, configuration style screens in Lightbox style windows. If you&#8217;re not familiar with Lightbox, check it out <a href="http://www.lokeshdhakar.com/projects/lightbox2/" title="Lightbox">here</a>.</p>
<p>The thing with configuration screens is they usually have a little more to do than simply display an image or other static content. In fact,  most of the ones I&#8217;ve written require some sort of AJAX functionality. Using an <code>iframe</code> is perfect for these scenarios as they operate as a self contained window, complete with any custom JavaScript.</p>
<p>I began using Cody Lindley&#8217;s <a href="http://jquery.com/demo/thickbox/" title="ThickBox">ThickBox</a> and more recently <a href="http://swip.codylindley.com/DOMWindowDemo.html" title="DOMWindow">DOMWindow</a> to load my iframes dynamically. Whist both of these plugins are great, I found they lacked the ability to truly style the boxes and extending them to add callbacks and extra features was not possible without editing the core JavaScript. I was after a simple yet expandable solution to dynamically open an iframe in a Lightbox style window.</p>
<h3>Boxen</h3>
<p>The boxen plugin allows you to bind a click event to any element that will open a Lightbox style iframe.</p>
<h4>Example</h4>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.boxen'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">boxen</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#boxen_google'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">boxen</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'http://www.google.com/'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#boxen_search'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">boxen</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'http://www.google.com/search'</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span>
        urlParams<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
            q<span style="color: #339933;">:</span> <span style="color: #3366CC;">'More Cowbell'</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<h4>Documentation</h4>
<p><code>boxen([url or options], [options])</code></p>
<h5>Arguments</h5>
<p><code>url or options</code> (optional) &#8211; <a href="http://docs.jquery.com/Types#String">String</a>, <a href="http://docs.jquery.com/Types#Options">Options</a></p>
<blockquote><p>If the first parameter is a string, it is used as the URL for the iframe source. Otherwise, it is treated as the options map.</p></blockquote>
<p><code>options</code> (optional) &#8211; <a href="http://docs.jquery.com/Types#Options">Options</a></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">urlParams<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
showTitleBar<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
showCloseButton<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
title<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">,</span>
titleAttribute<span style="color: #339933;">:</span> <span style="color: #3366CC;">'title'</span><span style="color: #339933;">,</span>
closeButtonText<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">,</span>
width<span style="color: #339933;">:</span> <span style="color: #CC0000;">600</span><span style="color: #339933;">,</span>
height<span style="color: #339933;">:</span> <span style="color: #CC0000;">500</span><span style="color: #339933;">,</span>
url<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">,</span>
urlAttribute<span style="color: #339933;">:</span> <span style="color: #3366CC;">'href'</span><span style="color: #339933;">,</span>
overlayOpacity<span style="color: #339933;">:</span> <span style="color: #CC0000;">0.8</span><span style="color: #339933;">,</span>
overlayColor<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">,</span>
modal<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span>
postOpen<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>contentAreaElement<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
postClose<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span></pre></div></div>

<h4>Demo</h4>
<p><a href="http://morecowbell.net.au/demos/plugins/boxen/">Boxen Demo</a></p>
<h4>Download</h4>
<ul>
<li><a href='http://morecowbell.net.au/wp-content/uploads/2009/04/Boxen-1.4.tar.gz'>Boxen-1.4.tar.gz</a> (13k)</li>
<li><a href='http://morecowbell.net.au/wp-content/uploads/2009/04/Boxen-1.4.zip'>Boxen-1.4.zip</a> (14k)</li>
</ul>
<h3>UPDATE 2009-03-20</h3>
<p>Boxen now has the ability to open an empty canvas. Simply cancel out any URL by setting the <code>url</code> or <code>urlAttribute</code> options to <code>null</code>. See the demo page for a nifty Google Maps example.</p>
<h3>UPDATE 2009-04-06</h3>
<p>Boxen 1.2 is now IE6 compatible. Due to the lack of <code>position: fixed</code>, the experience may be a little jerky / flickery when the window is resized and occasionally the transparent overlay may be a few pixels too long or too short however I think this is a case of &#8220;near enough is good enough&#8221;.</p>
<p>Unfortunately, I&#8217;ve had to alter the Boxen &#8220;id&#8221; attribute naming convention and remove the leading underscore to get it to work in IE6. If you&#8217;ve used any custom CSS rules, you&#8217;ll need to edit them accordingly.</p>
<p>Also fixed in this version:</p>
<ul>
<li>BIG iFrame implementation for overlaying IE6 form controls</li>
<li>Safari iFrame ID caching bug</li>
<li>Opera opacity issue</li>
</ul>
<p>I&#8217;ve only tested this using a STRICT doctype and encourage everyone else to do so too.</p>
<h3>UPDATE 2009-10-08</h3>
<p>Boxen 1.3 contains the following updates:</p>
<ul>
<li>Fixed &#8220;frameBorder&#8221; case sensitivity (thanks Caleb)</li>
<li>Added more streamlined way to anonymously open a Boxen window

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$.<span style="color: #660066;">Boxen</span>.<span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span>
    url<span style="color: #339933;">:</span><span style="color: #3366CC;">'http://www.google.com/'</span><span style="color: #339933;">,</span>
    title<span style="color: #339933;">:</span><span style="color: #3366CC;">'Boxen window title'</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

</li>
<li>Now released under the MIT license</li>
</ul>
<h3>UPDATE 2009-11-30</h3>
<p>Boxen 1.4 contains the following updates</p>
<ul>
<li>Added &#8220;overlayColor&#8221; option</li>
<li>Stylesheet example now includes a &#8220;spinner&#8221; loading animation (courtesy of http://www.ajaxload.info/). Provided your iFrame / content specifies a background, the spinner will not be visible once the content loads</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.philipbrown.id.au/2009/04/boxen-a-jquery-iframe-plugin/feed/</wfw:commentRss>
		<slash:comments>39</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->