hi,
i use draggable and droppable widget and the dragging works fine.
but if i drag my draggable div into the droppable div, nothing happens.
anyone idea, i used the same scopes, but the draggable div always returns to its start position and the message, drop success never appears.
<?
$this->beginwidget('zii.widgets.jui.CJuiDraggable', array(
'id' => 'draggable_test',
'options' => array(
'revert' => 'invalid',
'cursor' => 'move',
'scope' => 'test'
)
)
);
?>
<div style="float: left;">
DRAGME
</div>
<? $this->endWidget(); ?>
<?
$this->beginWidget('zii.widgets.jui.CJuiDroppable', array(
'id' => 'drop_test',
'options' => array(
'scope' => 'test',
'drop' => 'js:function(event, ui){
$("#dropmsg").html("drop success");
}'
),
));
?>
<div style="float: left; height: 100px; width: 100px; background: #ccc">
drag me here
</div>
<? $this->endWidget(); ?>
<br>
<span id="dropmsg">text replaced after drop success</span>