beside the fact that there are two closing braces } missing in your posted controller code, it works well and alters the div "result" with the ajax response…
thanks for trying to help , for my same code , if i move those code
//here is Qiang's sample code that I moved!
echo CHtml::form();
echo CHtml::textField('name');
echo CHtml::ajaxLink('submit', array('echo'), array(
'type'=>'POST',
'update'=>'#result',
));
//and changed a bit by echo ...
echo '</form>';
echo '<div id="result">';
echo 'Something have to be replace by actionEcho controller ...';
echo '</div>';
check your code that there is no other element (div, span, etc.) with the id "result" in your page.
Otherwise post the javascript part of your generated website or you can send me the hole source code of the generated webpage and i'll have a look at it…
You are using nested forms which isn't allowed in html!
Just cut out the complete dialog code
<?php
// the script which opens the dialog, when the link is clicked
$script = "$('#openDialog').click(function(){$('#myDialog').dialog('open');});";
// here we add the script to the document ready function
$cs = Yii::app()->getClientScript();
$cs->registerScript('openDialog', $script, CClientScript::POS_READY);
// and now we create the EDialog widget with option:"autoOpen" set to false
// and a effect which is triggered when the dialog shows up...
$this->beginWidget('application.extensions.jui.EDialog',
....
$this->endWidget('application.extensions.jui.EDialog');
?>