Running The ArcGIS JavaScript API in a SquareSpace Site

Just in case you are curious, SquareSpace does allow you to run ArcGIS Server JavaScript API code on their pages.  Here’s a screen shot of a I map made by copying and pasting code from the simple map sample into a SquareSpace page.


The only trick was to move the script tags out of the <head> section and into the <body>, since I don’t think that you are able to modify the <head>.  Here’s the complete code listing:

   1:  <div dojotype="dijit.layout.BorderContainer" design="headline" gutters="false" style="width: 100%; height: 100%; margin: 0;">
   2:        <div id="map" dojotype="dijit.layout.ContentPane" region="center" style="border:1px solid #000;padding:0;">
   3:       </div>
   4:      </div>
   5:      <script type="text/javascript">var djConfig = {parseOnLoad: true};</script>
   6:      <script type="text/javascript" src=""></script>
   7:      <script type="text/javascript">
   8:        dojo.require("dijit.layout.BorderContainer");
   9:        dojo.require("dijit.layout.ContentPane");
  10:        dojo.require("");
  13:        var map;
  15:        function init() {
  16:          var initExtent = new esri.geometry.Extent({"xmin":-13632648,"ymin":4542594,"xmax":-13621699,"ymax":4546875,"spatialReference":{"wkid":102100}});
  17:          map = new esri.Map("map",{extent:initExtent});
  18:          //Add the topographic layer to the map.
  19:          var basemap = new esri.layers.ArcGISTiledMapServiceLayer("");
  20:          map.addLayer(basemap);
  22:          //resize the map when the browser resizes 
  23:          dojo.connect(map, 'onLoad', function(theMap) { 
  24:            dojo.connect(dijit.byId('map'), 'resize', function() {  //resize the map if the div is resized
  25:              clearTimeout(resizeTimer);
  26:              console.log('resize');
  27:              resizeTimer = setTimeout( function() {
  28:                map.resize();
  29:                map.reposition();
  30:              }, 500);
  31:            });
  32:          });
  33:        }
  35:        dojo.addOnLoad(init);
  36:      </script>

Why I Am Reviving My WordPress Blog in the Age of Twitter, Facebook,, Google Reader, Tumblr…

I started this blog in 2005, and back then, it was pretty much either WordPress or Blogger.  WordPress seemed more customizable, especially since I had a hosting plan where I could host my own blog and dive in to the underlying PHP if I wanted to, so it seemed like the right platform for me at the time.

As the micro blogging platforms emerged, I realized that they were more appropriate for most of my posts (many were little more than a link with a short blurb on why I thought it was important).  Furthermore, I could reach different audiences via different channels: Facebook for friends and family, Twitter for quasi professional exchanges, and Google Reader for sharing important articles, etc.  I’ve tried them all, and in the process have created a very fractured online identity.

It was starting to get out of hand, so I finally decided to take advantage of all the modern APIs and syndication formats to wrangle my content into a central repository, but where?  I could immediately rule out most of the services that I was such as Facebook, Twitter,, and the Google services (Profiles, Buzz, Picasa)as they simply weren’t up to the task of incorporating all of my content.  Those services would be the source of content, but I would I need a real blogging platform to bring them all together under one branded site.  Below are all the options I considered along with some pros and cons of each.

Continue reading “Why I Am Reviving My WordPress Blog in the Age of Twitter, Facebook,, Google Reader, Tumblr…”