É anexado a um evento específico de um alvo.
$render=explode(" ", $_POST['partial_render']);
$resposta='
<script id="piscar_s" type="text/javascript">
DinarteCoelho.cw("Effect", "widget_piscar", {
id: "piscar",
source: "mensagem",
event: "load",
delay: 500,
fn: function() {$(DinarteCoelho.escapeClientId("mensagem")).effect("pulsate",{},1000);}
});
</script>
<div id="mensagem" class="ui-messages ui-widget" aria-live="polite" data-global="false" data-summary="data-summary" data-severity="all,error" data-redisplay="true">
<div class="ui-messages-info ui-corner-all"><a href="#" class="ui-messages-close" onclick="$(this).parent().slideUp();return false;" aria-label="Close"><span class="ui-icon ui-icon-close"></span></a><span class="ui-messages-info-icon"></span>
<ul>
<li role="alert" aria-atomic="true"><span class="ui-messages-info-summary">Você disse:\''.$_POST['texto'].'\'</span></li>
</ul>
</div>
</div>
<script id="mensagem_s" type="text/javascript">
DinarteCoelho.cw("Messages", "widget_mensagem", {
id: "mensagem"
});
</script>
';
dc.cw("Effect", "widget_sumir", {
id: "sumir"
, source: "blind"
, event: "click"
, delay: 0
, fn: function () {
$(DinarteCoelho.escapeClientId('blind'))
.effect('blind', {
direction: 'horizontal'
}, 1000);
}
});
dc.cw("Panel", "widget_blind", {
id: "blind"
});
dc.cw("Effect", "widget_persiana", {
id: "persiana"
, source: "clip"
, event: "click"
, delay: 0
, fn: function () {
$(DinarteCoelho.escapeClientId('clip'))
.effect('clip', {}, 1000);
}
});
dc.cw("Panel", "widget_clip", {
id: "clip"
});
dc.cw("Effect", "widget_derrubar", {
id: "derrubar"
, source: "drop"
, event: "click"
, delay: 0
, fn: function () {
$(DinarteCoelho.escapeClientId('drop'))
.effect('drop', {}, 1000);
}
});
dc.cw("Panel", "widget_drop", {
id: "drop"
});
dc.cw("Effect", "widget_explodir", {
id: "explodir"
, source: "explode"
, event: "click"
, delay: 0
, fn: function () {
$(DinarteCoelho.escapeClientId('explode'))
.effect('explode', {}, 1000);
}
});
dc.cw("Panel", "widget_explode", {
id: "explode"
});
dc.cw("Effect", "widget_dobrar", {
id: "dobrar"
, source: "fold"
, event: "dblclick"
, delay: 0
, fn: function () {
$(DinarteCoelho.escapeClientId('fold'))
.effect('fold', {}, 1000);
}
});
dc.cw("Panel", "widget_fold", {
id: "fold"
});
dc.cw("Effect", "widget_soprar", {
id: "soprar"
, source: "puff"
, event: "dblclick"
, delay: 0
, fn: function () {
$(DinarteCoelho.escapeClientId('puff'))
.effect('puff', {}, 1000);
}
});
dc.cw("Panel", "widget_puff", {
id: "puff"
});
dc.cw("Effect", "widget_deslizar", {
id: "deslizar"
, source: "slide"
, event: "dblclick"
, delay: 0
, fn: function () {
$(DinarteCoelho.escapeClientId('slide'))
.effect('slide', {}, 1000);
}
});
dc.cw("Panel", "widget_slide", {
id: "slide"
});
dc.cw("Effect", "widget_escalar", {
id: "escalar"
, source: "scale"
, event: "dblclick"
, delay: 0
, fn: function () {
$(DinarteCoelho.escapeClientId('scale'))
.effect('scale', {
percent: 90
}, 1000);
}
});
dc.cw("Panel", "widget_scale", {
id: "scale"
});
dc.cw("Effect", "widget_quicar", {
id: "quicar"
, source: "bounce"
, event: "click"
, delay: 0
, fn: function () {
$(DinarteCoelho.escapeClientId('bounce'))
.effect('bounce', {}, 1000);
}
});
dc.cw("Panel", "widget_bounce", {
id: "bounce"
});
dc.cw("Effect", "widget_pulsar", {
id: "pulsar"
, source: "pulsate"
, event: "click"
, delay: 0
, fn: function () {
$(DinarteCoelho.escapeClientId('pulsate'))
.effect('pulsate', {}, 1000);
}
});
dc.cw("Panel", "widget_pulsate", {
id: "pulsate"
});
dc.cw("Effect", "widget_sacudir", {
id: "sacudir"
, source: "shake"
, event: "click"
, delay: 0
, fn: function () {
$(DinarteCoelho.escapeClientId('shake'))
.effect('shake', {}, 1000);
}
});
dc.cw("Panel", "widget_shake", {
id: "shake"
});
dc.cw("Effect", "widget_zoom", {
id: "zoom"
, source: "size"
, event: "click"
, delay: 0
, fn: function () {
$(DinarteCoelho.escapeClientId('size'))
.effect('size', {
to: {
width: 200
, height: 60
}
}, 1000);
}
});
dc.cw("Panel", "widget_size", {
id: "size"
});
dc.cw("Effect", "widget_mostrar", {
id: "mostrar"
, source: "BtnMostrar"
, event: "click"
, delay: 0
, fn: function () {
$(DinarteCoelho.escapeClientId('imagem'))
.effect('puff', {
mode: 'show'
}, 1000);
}
});
dc.cw("CommandButton", "widget_BtnMostrar", {
id: "BtnMostrar"
});
dc.cw("Effect", "widget_piscar", {
id: "piscar"
, source: "mensagem"
, event: "load"
, delay: 500
, fn: function () {
$(DinarteCoelho.escapeClientId('mensagem'))
.effect('pulsate', {}, 1000);
}
});
dc.cw("Messages", "widget_mensagem", {
id: "mensagem"
});
dc.cw("InputText", "widget_texto", {
id: "texto"
});
dc.cw("CommandButton", "widget_BtnEco", {
id: "BtnEco"
});