<?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>&#964;&#949;&#967;&#957;&#959;&#963;&#959;&#966;&#953;&#945; &#187; JavaScript</title>
	<atom:link href="http://lackoftalent.org/michael/blog/category/development/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://lackoftalent.org/michael/blog</link>
	<description>The occasional rambling of a digital library artisan</description>
	<lastBuildDate>Sun, 13 May 2012 19:17:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>JSONovich: Now with code-folding!</title>
		<link>http://lackoftalent.org/michael/blog/2010/05/19/jsonovich-now-with-code-folding/</link>
		<comments>http://lackoftalent.org/michael/blog/2010/05/19/jsonovich-now-with-code-folding/#comments</comments>
		<pubDate>Thu, 20 May 2010 00:21:51 +0000</pubDate>
		<dc:creator>Michael Giarlo</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[JSONovich]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://lackoftalent.org/michael/blog/?p=574</guid>
		<description><![CDATA[Thanks to a clean patch from Sean Coates, I&#039;m releasing v1.5 of JSONovich. It now supports code-folding. Great hack, Sean!]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="oai:lackoftalent.org:technosophia:574"><!-- &nbsp; --></abbr>
<p>Thanks to a clean patch from <a href="http://twitter.com/coates/status/14322361424">Sean Coates</a>, I&#039;m releasing v1.5 of JSONovich.  It now supports code-folding.  Great hack, Sean!</p>
]]></content:encoded>
			<wfw:commentRss>http://lackoftalent.org/michael/blog/2010/05/19/jsonovich-now-with-code-folding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JSONovich emerges</title>
		<link>http://lackoftalent.org/michael/blog/2009/08/24/jsonovich-emerges/</link>
		<comments>http://lackoftalent.org/michael/blog/2009/08/24/jsonovich-emerges/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 18:18:50 +0000</pubDate>
		<dc:creator>Michael Giarlo</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[JSONovich]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://lackoftalent.org/michael/blog/?p=492</guid>
		<description><![CDATA[JSONovich has now emerged from the Mozilla Add-ons sandbox and is available to the masses: http://addons.mozilla.org/en-US/firefox/addon/10122.]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="oai:lackoftalent.org:technosophia:492"><!-- &nbsp; --></abbr>
<p><a href="http://lackoftalent.org/michael/blog/json-in-firefox/">JSONovich</a> has now emerged from the Mozilla Add-ons <a href="http://lackoftalent.org/michael/blog/2008/12/23/jsonovich-in-the-sandbox/">sandbox</a> and is available to the masses: <a href="http://addons.mozilla.org/en-US/firefox/addon/10122">http://addons.mozilla.org/en-US/firefox/addon/10122</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://lackoftalent.org/michael/blog/2009/08/24/jsonovich-emerges/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>JSONovich update</title>
		<link>http://lackoftalent.org/michael/blog/2008/12/29/jsonovich-update/</link>
		<comments>http://lackoftalent.org/michael/blog/2008/12/29/jsonovich-update/#comments</comments>
		<pubDate>Tue, 30 Dec 2008 01:00:32 +0000</pubDate>
		<dc:creator>Michael Giarlo</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[JSONovich]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://lackoftalent.org/michael/blog/?p=251</guid>
		<description><![CDATA[JSONovich is now up to version 0.6. Recent revisions have added the following functionality: Reads in JSON and converts to UTF-8 for some naive Unicode handling Wraps long lines at the right edge of the window Adds a check to see if a native JSON parsing library is already loaded (as will be the case [...]]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="oai:lackoftalent.org:technosophia:251"><!-- &nbsp; --></abbr>
<p><a href="/michael/blog/json-in-firefox">JSONovich</a> is now up to version 0.6.  Recent revisions have added the following functionality:</p>
<ul>
<li>Reads in JSON and converts to UTF-8 for some naive Unicode handling</li>
<li>Wraps long lines at the right edge of the window</li>
<li>Adds a check to see if a native JSON parsing library is already loaded (as will be the case in Firefox 3.1). Uses that library if so, otherwise loads the module included in JSONovich.</li>
<li>Handles JSON syntax errors more gracefully. Used to eat bad data and display nothing, but syntax errors (from the JSON parser) are now surfaced.</li>
</ul>
<p>I&#039;ve also tossed the source up on <a href="http://code.google.com/p/jsonovich/" target="_blank">code.google.com</a> for version control.</p>
<p>In the meantime, those of you who are using JSONovich can help increase its exposure by heading over to its entry at <a href="https://addons.mozilla.org/en-US/firefox/addon/10122" target="_blank">addons.mozilla.org</a>, logging in, downloading, rating, and reviewing the extension.  Reviews and ratings help get extensions &#034;promoted&#034; from the sandbox to the public site, which provides the ability for automatic updates when new versions of the extension are released.</p>
]]></content:encoded>
			<wfw:commentRss>http://lackoftalent.org/michael/blog/2008/12/29/jsonovich-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JSONovich in the sandbox</title>
		<link>http://lackoftalent.org/michael/blog/2008/12/23/jsonovich-in-the-sandbox/</link>
		<comments>http://lackoftalent.org/michael/blog/2008/12/23/jsonovich-in-the-sandbox/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 15:22:58 +0000</pubDate>
		<dc:creator>Michael Giarlo</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[JSONovich]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://lackoftalent.org/michael/blog/?p=234</guid>
		<description><![CDATA[JSONovich is now in the &#034;sandbox&#034; over at addons.mozilla.org, where it will remain until it&#039;s been tested a bit more, and rated and reviewed by users. Until that point, it will be marked as &#034;experimental&#034; and will require users to login before they can download it. If any of you would like to give JSONovich [...]]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="oai:lackoftalent.org:technosophia:234"><!-- &nbsp; --></abbr>
<p><a href="/michael/blog/json-in-firefox">JSONovich</a> is now in the &#034;sandbox&#034; over at addons.mozilla.org, where it will remain until it&#039;s been tested a bit more, and rated and reviewed by users.  Until that point, it will be marked as &#034;experimental&#034; and will require users to login before they can download it.  If any of you would like to give JSONovich a quick spin and rate/review it over at the Mozilla add-ons site, that would be solid.  Once it&#039;s gotten a few reviews and I&#039;m more comfortable about it working cross-platform and cross-version, I&#039;ll nominate it to be promoted.</p>
<p>Here&#039;s where it lives: <a href="http://addons.mozilla.org/en-US/firefox/addon/10122" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/10122</a></p>
<p>Much obliged, folks.  And thanks to those of you who have already downloaded it, installed it, tested it, left comments, or some combination thereof.</p>
]]></content:encoded>
			<wfw:commentRss>http://lackoftalent.org/michael/blog/2008/12/23/jsonovich-in-the-sandbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introducing JSONovich</title>
		<link>http://lackoftalent.org/michael/blog/2008/12/12/introducing-jsonovich/</link>
		<comments>http://lackoftalent.org/michael/blog/2008/12/12/introducing-jsonovich/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 20:33:21 +0000</pubDate>
		<dc:creator>Michael Giarlo</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[JSONovich]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://lackoftalent.org/michael/blog/?p=208</guid>
		<description><![CDATA[JSONovich is a Firefox extension that pretty-prints and colorizes JSON. Feedback is welcome.]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="oai:lackoftalent.org:technosophia:208"><!-- &nbsp; --></abbr>
<p><a href="http://lackoftalent.org/michael/blog/json-in-firefox/">JSONovich</a> is a Firefox extension that pretty-prints and colorizes JSON.</p>
<p>Feedback is welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://lackoftalent.org/michael/blog/2008/12/12/introducing-jsonovich/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JSON and the Blarghonauts, or, Firefox and Pretty-Printing FAIL</title>
		<link>http://lackoftalent.org/michael/blog/2008/12/02/json-and-the-blarghonauts-or-firefox-and-pretty-printing-fail/</link>
		<comments>http://lackoftalent.org/michael/blog/2008/12/02/json-and-the-blarghonauts-or-firefox-and-pretty-printing-fail/#comments</comments>
		<pubDate>Tue, 02 Dec 2008 21:25:41 +0000</pubDate>
		<dc:creator>Michael Giarlo</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[JSONovich]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://lackoftalent.org/michael/blog/?p=196</guid>
		<description><![CDATA[There must be a better way of viewing pretty-printed JSON from Firefox than this. (EDIT: Hail, JSONovich!) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 #!/usr/bin/env python # ~/bin/jsonhandler.py # [...]]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="oai:lackoftalent.org:technosophia:196"><!-- &nbsp; --></abbr>
<p>There must be a better way of viewing pretty-printed JSON from Firefox than this.  (EDIT: Hail, <a href="http://lackoftalent.org/michael/blog/json-in-firefox/">JSONovich</a>!)</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
</pre></td><td class="code"><pre class="python" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">#!/usr/bin/env python</span>
<span style="color: #808080; font-style: italic;"># ~/bin/jsonhandler.py </span>
<span style="color: #808080; font-style: italic;"># Take some JSON from a file or stdin, format it, output to a tempfile, </span>
<span style="color: #808080; font-style: italic;"># open in EDITOR</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">from</span> <span style="color: #dc143c;">__future__</span> <span style="color: #ff7700;font-weight:bold;">import</span> with_statement
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">os</span>
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">sys</span>
<span style="color: #ff7700;font-weight:bold;">import</span> simplejson
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">tempfile</span>
&nbsp;
EDITOR = <span style="color: #483d8b;">&quot;/usr/bin/gedit&quot;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">if</span> __name__ == <span style="color: #483d8b;">&quot;__main__&quot;</span>:
    <span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: #008000;">len</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">sys</span>.<span style="color: black;">argv</span><span style="color: black;">&#41;</span> == <span style="color: #ff4500;">2</span>:
        <span style="color: #808080; font-style: italic;"># if invoked as jsonhandler.py {FILE}</span>
        json = <span style="color: #008000;">open</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">sys</span>.<span style="color: black;">argv</span><span style="color: black;">&#91;</span><span style="color: #ff4500;">1</span><span style="color: black;">&#93;</span><span style="color: black;">&#41;</span>
    <span style="color: #ff7700;font-weight:bold;">else</span>:
        <span style="color: #808080; font-style: italic;"># if JSON is piped in (e.g., from Firefox, </span>
        <span style="color: #808080; font-style: italic;"># or cat {FILE} | jsonhandler.py)</span>
        json = <span style="color: #dc143c;">sys</span>.<span style="color: black;">stdin</span>
    json = simplejson.<span style="color: black;">load</span><span style="color: black;">&#40;</span>json<span style="color: black;">&#41;</span>
    <span style="color: #808080; font-style: italic;"># the with_statement is kind of gratuitous but I like it</span>
    <span style="color: #ff7700;font-weight:bold;">with</span> <span style="color: #008000;">open</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">tempfile</span>.<span style="color: black;">mktemp</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'.json'</span><span style="color: black;">&#41;</span>, <span style="color: #483d8b;">'w'</span><span style="color: black;">&#41;</span> <span style="color: #ff7700;font-weight:bold;">as</span> jsonfile:
        simplejson.<span style="color: black;">dump</span><span style="color: black;">&#40;</span>json, jsonfile, indent=<span style="color: #ff4500;">4</span><span style="color: black;">&#41;</span>
    <span style="color: #808080; font-style: italic;"># all of that and gedit doesn't even highlight JSON</span>
    <span style="color: #808080; font-style: italic;"># I have emacs highlighting JSON but this generates a &quot;stdin is not </span>
    <span style="color: #808080; font-style: italic;"># a tty&quot; error, so EDITOR is not set to emacs</span>
    <span style="color: #808080; font-style: italic;"># xemacs works a little better, but I need to click:</span>
    <span style="color: #808080; font-style: italic;"># &quot;Options &gt; Syntax Highlighting &gt; In this buffer&quot; every time, despite </span>
    <span style="color: #808080; font-style: italic;"># saving to custom.el, so EDITOR is not set to xemacs</span>
    <span style="color: #808080; font-style: italic;"># Very annoying!</span>
    <span style="color: #dc143c;">os</span>.<span style="color: black;">system</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;%s %s&quot;</span> <span style="color: #66cc66;">%</span> <span style="color: black;">&#40;</span>EDITOR, jsonfile.<span style="color: black;">name</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span></pre></td></tr></table></div>

<p>And then I set ~/bin/jsonhandler.py as the action for application/json in Edit | Preferences | Applications.</p>
<p>Yuck.  Help?</p>
]]></content:encoded>
			<wfw:commentRss>http://lackoftalent.org/michael/blog/2008/12/02/json-and-the-blarghonauts-or-firefox-and-pretty-printing-fail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Persistent URL Tools</title>
		<link>http://lackoftalent.org/michael/blog/2007/01/17/persistent-url-tools/</link>
		<comments>http://lackoftalent.org/michael/blog/2007/01/17/persistent-url-tools/#comments</comments>
		<pubDate>Thu, 18 Jan 2007 01:25:36 +0000</pubDate>
		<dc:creator>Michael Giarlo</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Persistent Identifiers]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Preservation]]></category>

		<guid isPermaLink="false">http://lackoftalent.org/michael/blog/2007/01/17/persistent-url-tools/</guid>
		<description><![CDATA[I&#039;ve posted a couple new tools during the past couple days. One is an update of Devon Smith&#039;s LinkPURL extension for Firefox 2.0. The other is an ultra-lightweight WordPress plugin that embeds a linkpurl link tag for auto-discovery (so bookmarking agents can detect and grab the persistent URL rather than the impersistent URL up in [...]]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="oai:lackoftalent.org:technosophia:72"><!-- &nbsp; --></abbr>
<p>I&#039;ve posted a couple <a href="http://www.lackoftalent.org/michael/blog/persistent-url-bookmarker/" target="_blank">new tools</a> during the past couple days.  One is an update of <a href="http://www.oclc.org/research/staff/smith.htm" target="_blank">Devon Smith</a>&#039;s <a href="http://purl.org/net/linkpurl" target="_blank">LinkPURL</a> extension for Firefox 2.0.  </p>
<p>The other is an ultra-lightweight WordPress plugin that embeds a linkpurl link tag for auto-discovery (so bookmarking agents can detect and grab the persistent URL rather than the impersistent URL up in the addressbar).  </p>
<p>Based on a discussion in <a href="irc://irc.freenode.net/code4lib" target="_blank">#code4lib</a> earlier today, I realize that there are a lot of important questions, not to mention serious doubts, about persistent identifiers.  I flip-flop on their utility myself, so I found the discussion very useful.  (Thanks, <a href="http://www.inkdroid.org/journal/" target="_blank">edsu</a>!)  Maybe I&#039;ll write a post or two about persistent identifiers to flesh my thoughts out.</p>
]]></content:encoded>
			<wfw:commentRss>http://lackoftalent.org/michael/blog/2007/01/17/persistent-url-tools/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>WSF &#8211; good for metascripting?</title>
		<link>http://lackoftalent.org/michael/blog/2005/12/05/wsf-good-for-metascripting/</link>
		<comments>http://lackoftalent.org/michael/blog/2005/12/05/wsf-good-for-metascripting/#comments</comments>
		<pubDate>Tue, 06 Dec 2005 03:40:00 +0000</pubDate>
		<dc:creator>Michael Giarlo</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://lackoftalent.org/michael/blog/2005/12/05/wsf-good-for-metascripting/</guid>
		<description><![CDATA[The Windows Script File, .wsf, allows one to mark-up in XML different blocks of scripting. One can, in effect, write a script hooking VBScript, JavaScript, and PerlScript together. This looks to be quite powerful for scripters, especially within the domain of systems administration. Often one knows one scripting language better than another, and even more [...]]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="oai:lackoftalent.org:technosophia:15"><!-- &nbsp; --></abbr>
<p>The Windows Script File, .wsf, allows one to mark-up in XML different blocks of scripting. One can, in effect, write a script hooking VBScript, JavaScript, and PerlScript together. This looks to be quite powerful for scripters, especially within the domain of systems administration. Often one knows one scripting language better than another, and even more commonly one may exploit the strengths of multiple languages. Imagine combining the ease of Windows operability in VB with the regular expression power of PerlScript with&#8230; whatever it is that JavaScript does well. Could be quite a nifty tool.</p>
<p>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsAdvantagesOfWs.asp</p>
]]></content:encoded>
			<wfw:commentRss>http://lackoftalent.org/michael/blog/2005/12/05/wsf-good-for-metascripting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Maps JavaScript problem in IE</title>
		<link>http://lackoftalent.org/michael/blog/2005/12/02/google-maps-javascript-problem-in-ie/</link>
		<comments>http://lackoftalent.org/michael/blog/2005/12/02/google-maps-javascript-problem-in-ie/#comments</comments>
		<pubDate>Sat, 03 Dec 2005 06:51:00 +0000</pubDate>
		<dc:creator>Michael Giarlo</dc:creator>
				<category><![CDATA[APIs]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://lackoftalent.org/michael/blog/2005/12/02/google-maps-javascript-problem-in-ie/</guid>
		<description><![CDATA[Internet Explorer likes to throw the &#034;Operation Aborted&#034; error when trying to hook into the Google Maps API via JavaScript, at least when the JavaScript is placed where it is supposed to, i.e., a reference to the Google Maps JavaScript in the page HEAD and the actual rendering of the map within the DIV tag. [...]]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="oai:lackoftalent.org:technosophia:13"><!-- &nbsp; --></abbr>
<p>Internet Explorer likes to throw the &#034;Operation Aborted&#034; error when trying to hook into the Google Maps API via JavaScript, at least when the JavaScript is placed where it is supposed to, i.e., a reference to the Google Maps JavaScript in the page HEAD and the actual rendering of the map within the DIV tag.</p>
<p>To fix this in IE, move the DIV block JavaScript code near the bottom of your HTML. Place it right between the terminating BODY tag and the terminating HTML tag. The problem seems to be that IE gets all confused when JavaScript attempts to make modifications to the page &#8212; e.g., sucking down a map from Google &#8212; while still rendering the body HTML. There are a couple other fix options here:</p>
<p>http://www.mapki.com/index.php?title=FAQs#Browser_Problems</p>
<p>It is worth noting that this &#034;fix&#034; does not break functionality in Firefox. And, really, who cares about the other browsers? Communists and robots, my friend.</p>
<p>In the HEAD of your page, you may include the initial JavaScript</p>
<blockquote><p><code>&lt;script src="http://maps.google.com/maps?file=api&#038;v=1&#038;key=BLAHBLAHBLAHBLAHBLAHBLAHBLAHBLAHBLAH" mce_src="http://maps.google.com/maps?file=api&#038;v=1&#038;key=BLAHBLAHBLAHBLAHBLAHBLAHBLAHBLAHBLAH" type="text/javascript"&gt;&lt;/script&gt;</code>Â </p></blockquote>
<p>Though it surprised me that I couldn&#039;t remove the terminating SCRIPT tag and instead make the first SCRIPT tag self-terminating, i.e., instead of <code>&lt;script foo="bar"&gt;&lt;/script&gt;</code>, I tried <code>&lt;script foo="bar"/&gt;</code> and it didn&#039;t work.</p>
<p>The JavaScript that actually renders the map within the DIV tag, <em>cleverly</em> named &#034;map&#034;, should look similar to the following:</p>
<blockquote><p><code><br />
&lt;/BODY&gt;<br />
&lt;script type="text/javascript"&gt;<br />
//&lt;![CDATA[Â </p>
<p>var map = new GMap(document.getElementById("map"));<br />
map.setMapType(G_HYBRID_TYPE);<br />
map.addControl(new GSmallMapControl());<br />
map.addControl(new GMapTypeControl());<br />
map.centerAndZoom(new GPoint(-666.666,66.6666), 2);<br />
map.openInfoWindowHtml(map.getCenterLatLng(), "100 Main St.&lt;BR&gt;Nowheresville, ZZ 99999<br />
ZZZ");</p>
<p>//]]&gt;<br />
&lt;/script&gt;<br />
&lt;/HTML&gt;<br />
</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://lackoftalent.org/michael/blog/2005/12/02/google-maps-javascript-problem-in-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

