Yii Framework Forum: CJuiDialog position - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

CJuiDialog position Rate Topic: -----

#1 User is offline   bingjie2680 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 56
  • Joined: 08-June 11

Posted 07 July 2011 - 04:10 PM

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.
0

#2 User is offline   elbek 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 134
  • Joined: 22-July 10
  • Location:MA, USA

Posted 07 July 2011 - 04:21 PM

it can be done by js with css on your own.
Elbek
0

#3 User is offline   bingjie2680 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 56
  • Joined: 08-June 11

Posted 07 July 2011 - 11:28 PM

ok,thank you for your pointer.
0

#4 User is offline   Gustavo 

  • Master Member
  • Yii
  • Group: Moderators
  • Posts: 916
  • Joined: 27-July 10
  • Location:Curitiba - Brasil

Posted 07 July 2011 - 11:56 PM

refer to the jquery ui dialog documentation
http://jqueryui.com/demos/dialog/
--
Extensions:
translate modue - module to handle translations
multiActiveRecord - db selection in models
redisCache - redis cache component
mpCpanel - interact with cpanel api
mUploadify - use uploadify uploader in your application

Gustavo Salomé Silva
0

#5 User is offline   almix 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 28
  • Joined: 23-September 11

Posted 19 December 2012 - 05:25 AM

View Postbingjie2680, on 07 July 2011 - 04:10 PM, said:

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.


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/mater...a-modalnyh-okon
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users