Exibe uma coleção de tags com diferentes intensidades.
$render=explode(" ",$_POST["partial_render"]);
$id=$_POST["palavras_itemIndex"]+1;
$result = "SELECT * FROM tags WHERE id_tag="".$id.""";
$result = $pdo->query($result);
$linha = $result->fetch(PDO::FETCH_ASSOC);
$resposta="
<span id="alerta" class="ui-growl-pl" data-widget="widget_alerta" data-summary="data-summary" data-detail="data-detail" data-severity="all,error" data-redisplay="true"></span>
<script id="alerta_s" type="text/javascript">
DinarteCoelho.cw("Growl", "widget_alerta", {
id: "alerta",
sticky: false,
life: 6000,
escape: true,
keepAlive: false,
msgs: [{
summary: "Item Selecionado",
detail: "".$linha["tag"]."",
severity: "info",
severityText: "Information"
}]
});
</script>
";
dc.cw("Growl", "widget_alerta", {
id: "alerta"
, sticky: false
, life: 6000
, escape: true
, keepAlive: false
, msgs: []
});
dc.cw("TagCloud", "widget_palavras", {
id: "palavras"
, behaviors: {
select: function (ext, event) {
dc.ab({
s: "palavras"
, e: "select"
, f: "formulario"
, p: "palavras"
, u: "alerta"
}, ext);
}
}
});