<?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>David Janes&#039; Code Weblog &#187; genx</title>
	<atom:link href="http://code.davidjanes.com/blog/category/genx/feed/" rel="self" type="application/rss+xml" />
	<link>http://code.davidjanes.com/blog</link>
	<description></description>
	<lastBuildDate>Fri, 03 Feb 2012 00:49:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Adding MapField to inputEx</title>
		<link>http://code.davidjanes.com/blog/2008/11/09/adding-mapfield-to-inputex/</link>
		<comments>http://code.davidjanes.com/blog/2008/11/09/adding-mapfield-to-inputex/#comments</comments>
		<pubDate>Sun, 09 Nov 2008 11:20:40 +0000</pubDate>
		<dc:creator>David Janes</dc:creator>
				<category><![CDATA[demo]]></category>
		<category><![CDATA[genx]]></category>
		<category><![CDATA[html / javascript]]></category>
		<category><![CDATA[ideas]]></category>
		<category><![CDATA[inputex]]></category>
		<category><![CDATA[maps]]></category>

		<guid isPermaLink="false">http://code.davidjanes.com/blog/?p=161</guid>
		<description><![CDATA[InputEx is a neat Javascript library by Eric Abouaf and other contributors to dynamically create forms. It&#8217;s best shown by example, so: detailed examples of how to create all individual fields a form builder in Javascript (click on the pencil to close popups or try my version &#8211; see the notes below) I&#8217;m working on [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://javascript.neyric.com/inputex/">InputEx</a> is a neat Javascript library by <a href="http://javascript.neyric.com/blog/">Eric Abouaf</a> and other contributors to dynamically create forms. It&#8217;s best shown by example, so:</p>
<ul>
<li><a href="http://javascript.neyric.com/inputex/doc/js_docs_out/examples.html">detailed examples of how to create all individual fields</a></li>
<li><a href="http://javascript.neyric.com/inputex/inputExBuilder/inputExBuilder.html">a form builder in Javascript</a> (click on the pencil to close popups <a href="http://localhost/~davidjanes/genx/inputex/inputExBuilder/inputExBuilder.html">or try my version</a> &#8211; see the notes below)</li>
</ul>
<p>I&#8217;m working on a project called <a href="http://code.davidjanes.com/genx/demo/">GenX</a> that allows people to dynamically lookup, edit and create data in editors (such as in WordPress). One of the features I want is the ability to add maps so after a week of research, I&#8217;ve created a MapField for inputEx:</p>
<ul>
<li><a href="http://code.davidjanes.com/inputex/demo/examples/map_field.html">see the MapField example</a></li>
</ul>
<h4>Notes</h4>
<ul>
<li>this is just a preliminary version; there&#8217;s probably some code style and idiom issues that need to be worked out</li>
<li>I&#8217;m going to ask the InputEx group to pick this up; I reserve no rights</li>
<li>it&#8217;s not fully integrated into the Builder example yet</li>
<li>it works with Google Maps, Yahoo Maps and Microsoft&#8217;s Virtual Earth. You will need a key for your domain for Google Maps, see the example above about how to insert your key</li>
<li>it introduces a concept of a Globals for MapField, as there are certain settings (i.e. your mapping keys) that really belong at &#8220;class&#8221; level rather than instantiated object level</li>
<li>Mapping APIs are <a href="http://code.davidjanes.com/blog/2008/11/08/how-to-dynamically-load-map-apis/">dynamically loaded</a></li>
<li>Zoom levels are returned in native format and &#8220;<a href="http://code.davidjanes.com/blog/2008/11/08/switching-between-mapping-apis-and-universal-map-levels/">universal format</a>&#8220;</li>
<li>I&#8217;ve done all my testing of FF3, so there may be browser issues I need to look at</li>
</ul>
<h4>Code changes</h4>
<ul>
<li>the only files needed are
<ul>
<li><code>examples/map_field.html</code></li>
<li><code>js/fields/MapField.js</code></li>
</ul>
</li>
</ul>
<h4>Where this is going</h4>
<ul>
<li>I&#8217;ve spent the last week working on maps; I need to get back to <em>using</em> this code rather than improving and documenting it</li>
<li>I want to add a geocoder</li>
<li>I want the geocoder to be able to be sensitive to other form fields, so for example if you&#8217;re entering an address it can actually use those as an input</li>
</ul>
<h4>One final mod to inputEx</h4>
<p>I&#8217;ve modified the builder to make the pencil icon more obviously become the close button when you&#8217;ve opened a subpanel. <a href="http://code.davidjanes.com/inputex/demo/inputExBuilder/inputExBuilder.html">You can see the demo here</a>. Here&#8217;s the change set:</p>
<p>In <code>images</code>:</p>
<pre>curl --location http://www.famfamfam.com/lab/icons/silk/icons/pencil_delete.png \
 &gt; pencil_delete.png</pre>
<p>In <code>inputex/inputExBuilder/css/inputExBuilder.css</code> add:</p>
<pre>div.inputEx-TypeField-EditButton.opened {
   background-image: url(../../images/pencil_delete.png);
}</pre>
<p>In <code>inputex/js/fields/TypeField.js</code> replace <code>onTogglePropertiesPanel</code> with:</p>
<pre>   onTogglePropertiesPanel: function() {
      if (this.propertyPanel.style.display == 'none') {
         this.propertyPanel.style.display = '';
         YAHOO.util.Dom.addClass(this.button, "opened");
      } else {
         this.propertyPanel.style.display = 'none';
         YAHOO.util.Dom.removeClass(this.button, "opened");
      }
   },</pre>
]]></content:encoded>
			<wfw:commentRss>http://code.davidjanes.com/blog/2008/11/09/adding-mapfield-to-inputex/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>GenX &#8211; first public demonstration</title>
		<link>http://code.davidjanes.com/blog/2008/10/30/genx-first-public-demonstration/</link>
		<comments>http://code.davidjanes.com/blog/2008/10/30/genx-first-public-demonstration/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 18:37:11 +0000</pubDate>
		<dc:creator>David Janes</dc:creator>
				<category><![CDATA[genx]]></category>
		<category><![CDATA[ideas]]></category>
		<category><![CDATA[pyecs]]></category>

		<guid isPermaLink="false">http://code.davidjanes.com/blog/?p=78</guid>
		<description><![CDATA[This is a post using my next project, called GenX which I&#8217;ll be describing in the next few weeks. Here&#8217;s a some information about a band called U2. I just bought a reissued CD/DVD combo of Under a Blood Red Sky, so it seems appropriate. (Note: post updated) U2 U2 are a rock band from Dublin, Ireland. [...]]]></description>
			<content:encoded><![CDATA[<p>This is a post using my next project, called GenX which I&#8217;ll be describing in the next few weeks. Here&#8217;s a some information about a band called <a class="gencard-cite" href="#iid_34ff61e2d706d73774c6fb7db95bdfaa">U2</a>. I just bought a reissued CD/DVD combo of <a class="gencard-cite" href="#iid_01363ec9fbebc874f3ebc6968c06efe0">Under a Blood Red Sky</a>, so it seems appropriate. (Note: post updated)</p>
<div id="iid_34ff61e2d706d73774c6fb7db95bdfaa" class="gencard hitem band" style="border: 1px solid #50a152; margin: 5px 0px; padding: 5px; width: 100%;"><img class="photo" style="float: right;" src="http://code.davidjanes.com/genx/demo/images/a43688ec384690bc32fd5a157e21a503/34ff61e2d706d73774c6fb7db95bdfaa.jpg" alt="poster" /></p>
<h4><span class="fn">U2</span></h4>
<p class="summary">U2 are a rock band from Dublin, Ireland. The band consists of <a class="gencard-cite" href="#iid_2772ecdbf3aa366a374830f925c6db27">Paul David Hewson</a> (vocals and guitar), <a class="gencard-cite" href="#iid_fddc776a42c37a5c9c2f1fe0be0dd043">The Edge</a> (guitar, keyboards, and vocals), <a class="gencard-cite" href="#iid_0cb1f664ad84220fc430cf8d39898b4e">Adam Clayton</a> (bass guitar) and <a class="gencard-cite" href="#iid_8e523298df49c195d83d18cb3b27b1dd">Larry Mullen, Jr.</a> (drums and percussion)&#8230;.</p>
<ul>
<li> <a class="url" href="http://en.wikipedia.org/wiki/U2">Wikipedia</a></li>
<li> <a class="url" href="http://www.freebase.com/view/en/u2">Freebase</a></li>
<li> <a class="url" href="http://www.amazon.com/s/ref=nb_ss_gw?url=search-alias%3Dpopular&amp;field-keywords=U2">Amazon</a></li>
</ul>
</div>
<div id="iid_2772ecdbf3aa366a374830f925c6db27" class="gencard hcard" style="border: 1px solid #50a152; margin: 5px 0px; padding: 5px; width: 100%;"><img class="photo" style="float: right;" src="http://code.davidjanes.com/genx/demo/images/3101a65747579ffc4811b2f7fffb86f5/2772ecdbf3aa366a374830f925c6db27.jpg" alt="poster" /></p>
<h4><span class="fn">Paul David Hewson</span></h4>
<p class="summary">Paul David Hewson (born 10 May 1960 in Glasnevin, Dublin, Ireland), also known by his stage name Bono, is the main vocalist of the Irish rock band U2. Bono was born and raised in Dublin, Ireland, and attended&#8230;</p>
<ul>
<li> <a class="url" href="http://en.wikipedia.org/wiki/Paul_David_Hewson">Wikipedia</a></li>
<li> <a class="url" href="http://www.freebase.com/view/guid/9202a8c04000641f8000000003ac6f7c">Freebase</a></li>
</ul>
</div>
<div id="iid_fddc776a42c37a5c9c2f1fe0be0dd043" class="gencard hcard" style="border: 1px solid #50a152; margin: 5px 0px; padding: 5px; width: 100%;"><img class="photo" style="float: right;" src="http://code.davidjanes.com/genx/demo/images/5806c39904352883a329381cb29b98bf/fddc776a42c37a5c9c2f1fe0be0dd043.jpg" alt="poster" /></p>
<h4><span class="fn">The Edge</span></h4>
<p class="summary">David Howell Evans (born 8 August 1961 in Barking, East London, UK), more widely known by his moniker The Edge, is a musician known best as the guitarist, keyboardist, and main backing vocalist for the&#8230;</p>
<ul>
<li> <a class="url" href="http://en.wikipedia.org/wiki/Teh_Edge">Wikipedia</a></li>
<li> <a class="url" href="http://www.freebase.com/view/en/the_edge">Freebase</a></li>
</ul>
</div>
<div id="iid_0cb1f664ad84220fc430cf8d39898b4e" class="gencard hcard" style="border: 1px solid #50a152; margin: 5px 0px; padding: 5px; width: 100%;"><img class="photo" style="float: right;" src="http://code.davidjanes.com/genx/demo/images/36a5920a3ed8a06586ae42697645042d/0cb1f664ad84220fc430cf8d39898b4e.jpg" alt="poster" /></p>
<h4><span class="fn">Adam Clayton</span></h4>
<p class="summary">Adam Charles Clayton (born 13 March 1960 in Chinnor, Oxfordshire, UK), is the bassist of the rock band U2. A British citizen, Clayton has resided in County Dublin since the time his family moved to Malahide&#8230;</p>
<ul>
<li> <a class="url" href="http://en.wikipedia.org/wiki/Adam_Clayton">Wikipedia</a></li>
<li> <a class="url" href="http://www.freebase.com/view/en/adam_clayton">Freebase</a></li>
</ul>
</div>
<div id="iid_8e523298df49c195d83d18cb3b27b1dd" class="gencard hcard" style="border: 1px solid #50a152; margin: 5px 0px; padding: 5px; width: 100%;"><img class="photo" style="float: right;" src="http://code.davidjanes.com/genx/demo/images/ddf582be92065f7a6e9f09327affd0ae/8e523298df49c195d83d18cb3b27b1dd.jpg" alt="poster" /></p>
<h4><span class="fn">Larry Mullen, Jr.</span></h4>
<p class="summary">Lawrence Joseph &#8220;Larry&#8221; Mullen, Jr. (born 31 October 1961 in Artane, Dublin, Ireland) is the drummer for the Irish rock band U2. He is the founder of U2, which was originally known as &#8220;The Larry Mullen&#8230;</p>
<ul>
<li> <a class="url" href="http://en.wikipedia.org/wiki/Larry_Mullen">Wikipedia</a></li>
<li> <a class="url" href="http://www.freebase.com/view/en/larry_mullen_jr">Freebase</a></li>
</ul>
</div>
<div id="iid_01363ec9fbebc874f3ebc6968c06efe0" class="gencard haudio" style="border: 1px solid #50a152; margin: 5px 0px; padding: 5px; width: 100%;"><img class="photo" style="float: right;" src="http://ecx.images-amazon.com/images/I/418oEG6fx2L._SL110_.jpg" alt="poster" /></p>
<h4><span class="album">Under a Blood Red Sky &#8211; Deluxe Edition CD/DVD</span> &#8211; <span class="artist vcard"><span class="fn">U2</span></span> [<abbr class="released">2008-07-10] </abbr></h4>
<p class="summary">A Deluxe Edition version featuring the Under a Blood Red Sky CD (Disc 1) and the Live at Red Rocks DVD (Disc 2). The remastered Under a Blood Red Sky album was originally released in November 1983, and consists of live recordings from three shows on the band&#8217;s War Tour through Europe and America. Recorded at the Red Rocks Amphitheatre in Colorado on 5th June 1983, Live at Red Rocks will be available for the first time on DVD, and will include 5 previously unreleased songs, a director&#8217;s commentary, digitally re-graded pictures and a 5.1 mix. This is the fourth CD as part of the Amazon.com-exclusive U2 deluxe edition box set and fits into the open slot within the packaging.</p>
<ul>
<li> <a class="url" href="http://www.amazon.com/Under-Blood-Red-Sky-Deluxe/dp/B0015FML06%3FSubscriptionId%3D0Y4ZBGFR2QG8PFNN9ZR2%26tag%3Donaswarm-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB0015FML06">Amazon.com</a></li>
<li> <a class="upc" href="http://www.google.com/search?hl=en&amp;q=UPC+602517641969&amp;btnG=Search">UPC 602517641969</a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://code.davidjanes.com/blog/2008/10/30/genx-first-public-demonstration/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

