Simply put the inline tag is never replaced by the cloud
I have my JS loading in from a folder (links confirmed)
<script type="text/javascript" src="/jquery/jqquery-1.7.2.js"></script>
<script type="text/javascript" src="/jquery/jqcloud-1.0.1.js"></script>
<link rel="stylesheet" href="/jquery/jqcloud.css" type="text/css" media="screen">
and then i use some PHP to generate the tag array
<script type="text/jscript">
var word_list = [
<?
foreach ($array as $key => $value) {
if ($value == $average) { $weight = 2;}
else if ($value > $average) { $weight = 3;}
else if ($value < $average) { $weight = 1;}
if (strlen($key) > 1 ){
echo "{text: \"".$key."\", weight:".$weight.", url: \"http://myurl.com/tags/".$key."\", title: \"".$value."\"}";
$total -= 1;
if ($total == 0) echo ",";
}
}
?>
];
$(document).ready(function() {
$("#wordcloud").jQCloud(word_list);
});
Yet all i have is an empty div in my tag section
http://jsfiddle.net/K28Mc/ Functioning example
The problem appears to be that you never close your array: