Hi guys,
I have searched every where, but nothing about CJuiDialog position, I want the dialog to be the place where I click.
'options'=>array(
'title'=>'Enter info',
'autoOpen'=>false,
'show' => 'blind',
'position' => ??,
'buttons' => array(
'Ok'=>'js:function(){}',
'Cancel'=>'js:function(){$(this).dialog("close");}',
),
any suggestions are appreciated.
elbek
(Elbek Kamoliddinov)
2
it can be done by js with css on your own.
ok,thank you for your pointer.
gusnips
(Gustavo)
4
refer to the jquery ui dialog documentation
http://jqueryui.com/demos/dialog/
almix
(Almix13)
5
blinjie2680, try to set position when call dialog in link parameter onclick:
...
'onclick'=>'$("#mydialog").dialog("option", "position", "left").dialog("open"); return false;',
...
I wrote about it here - http://loco.ru/materials/321-yii-cjuidialog-dlya-sozdaniya-modalnyh-okon