Hi,
I try send parameter do zii.widgets.jui.CJuiDialog e.g:
$("#dialog-animation").dialog( { my_name: 'Update' } ).dialog( 'open' );
and my dialog example:
$this->beginWidget('zii.widgets.jui.CJuiDialog', array(
'id' => 'dialog-animation',
'options' => array(
'title' => 'Dialog box - Animation',
'modal' => true,
'autoOpen' => false,
'height' => 'auto',
'width' => 'auto',
'show' => array(
'effect' => 'blind',
'duration' => 1000,
),
'hide' => array(
'effect' => 'explode',
'duration' => 500,
),
//przyciski
'buttons' => array(
'OK' => 'js:function(){alert("OK");}',
'Anuluj' => 'js:function(){ $(this).dialog("close");}',
),
),
ok and when i try catch object my_name to variable e.g:
$my_variable = $my_name;
i see error: Undefined variable: my_name
How send correct parameter do zii.widgets.jui.CJuiDialog and print to the inside dialog?
Jarek
P.S I’m sorry, my English isn’t good.