Monday, November 10, 2008

Dynamic tag cloud v1.2

A small update to the tag cloud to fix an issue with cross domain requests. The issue is caused by some RSS servers not having a crossdomain.xml file which is used by Flash and Silverlight to check if cross domain requests are allowed.

As a short term fix this version now proxies the request via - in a later version we may need to be able to disable this (in the case where you want to host the silverlight app on your server)

So this now allows me to create tag cloud from other sites, such as the Guardian's Comment is free:

To insert into your blog use (under dashboard, layout, edit html, ensure that expand widget templates is checked).

Find the following:

<div id='sidebar-wrapper'>
<b:section class='sidebar' id='sidebar' preferred='yes'>

insert widget here

<b:widget id='Label2' locked='false' title='Dynamic Tag Cloud' type='Label'>
<b:includable id='main'>
<b:if cond='data:title'>
<div class='widget-content' id='feCloud' style='text-align: center;'/>
<script src='' type='text/javascript'/>
<script type='text/javascript'>
var feCloudElementId = 'feCloud';
var feCloudFeedAddress = '';
var feCloudNavigateFormat = '{0}';
var feCloudSize = 400;
feTagCloudLoad(feCloudElementId, feCloudFeedAddress, feCloudNavigateFormat, feCloudSize, feCloudSize);

In order to start using this version, you need to change your javascript to reference v1.2 of the js file

1 comment:

Unknown said...

Where is the download?