[EXTENSION] jQuery UI widgets

Don't echo the widget. That gives an error in Yii 1.0.4

Simply call $this->widget(…)

@letscode : yes, it works thanks !

-majin-

I'm having an issue with the EDatePicker where the date is always going in with all 0's once inserted into the database. Does the value need to be set in a certain format? This is what my code looks like:

<?php 

										$this-&gt;widget(&#039;application.extensions.jui.EDatePicker&#039;,

                array('model'=>$privateads,

                      'attribute'=>'endDate',

                            'language'=>'en',

                    'mode'=>'imagebutton',

                    'theme'=>'ui-lightness',

                    'value'=>date('mm/dd/yyyy'),

                    'dateFormat'=>'mm/dd/yy',

                    'fontSize'=>'10px',

                    'htmlOptions'=>array('size'=>10)

                                                          )

                                            ); ?>

Thanks,

Ben

Do you use a DATE field in your database? Then your format needs to be yyyy-mm-dd i think

New release: 2.2 "chickenpox version", including the progress bar wrapper (thanks to ironic) and a EAccordionPanel class to work the accordion panels more "naturally".

hi, I try test this based on sample, (copy and paste ) normal tabs and tab sample

but not work!

I am using the YII 1.1 dev

also I am using under aplication.modules.system.extensions.etc

anyone have this issue?

regards

Max

Quote

hi, I try test this based on sample, (copy and paste ) normal tabs and tab sample

but not work!

Can you provide more details? javascript errors, for instance?

not errors!

display html and when click on links not action, acordeon works fine

Quote

display html and when click on links not action, acordeon works fine

Can you post your code?

Hi, All!

Some problem with DatePicker: I need more than one in a page. Exception is thrown in this case.

I've solved it somewhat crudely by a "hack": commented strings 559-561, 565-567 in EDatePicker.php:



<?php


      //foreach ($this->callbacks as  $key=>$val) {


      //   $options['callback_'.$key] = $key;


      //}


          


      $encodedOptions = self::encode(array_merge($options, $this->options));


            


      //foreach ($this->callbacks as $key=>$val) {


      //   $encodedOptions = str_replace("callback_{$key}:{$key}", "{$key}: {$val}", $encodedOptions);


      //}     


It works nice for me because I don't use "callbacks" array.

But… may be a more civil way exists?

Hi,

can I use interactions from UI? I'm interested in Draggable and Droppable.

Thanx!

Quote

Some problem with DatePicker: I need more than one in a page. Exception is thrown in this case.

Can you post both the exception and the code you're using?

Quote

can I use interactions from UI? I'm interested in Draggable and Droppable.

Well, the jQuery UI javascript library is automatically included when you use any of the wrappers, so you can use it with javascript directly. If you don't use a wrapper in your page, then you must include jQuery UI manually, as if you were doing normal js coding.

Quote

Quote

Some problem with DatePicker: I need more than one in a page. Exception is thrown in this case.

Can you post both the exception and the code you're using?

Please!

Exception:

Code (fragment of "list.php"):

@kvl: sorry, I can't reproduce your problem with jui 2.2

New release: 2.3

Quote

@kvl: sorry, I can't reproduce your problem with jui 2.2

ok, I was using the old version…

Sorry - and thanks to you!

Virtual DarKness - do you have 2 DatePickers on the same view?

I found the second one overwrites the firsts fontSize with the default 0.5em if it's not set also.  So currently it seems if you have multiple DatePickers per view, last fontSize in wins for ALL

Quote

Virtual DarKness - do you have 2 DatePickers on the same view?

I found the second one overwrites the firsts fontSize with the default 0.5em if it's not set also.  So currently it seems if you have multiple DatePickers per view, last fontSize in wins for ALL

Indeed, the setting affects all dp in a view. It’s the same as with the theme… I think it’s related to the way jQuery UI works…  ::)

Hi ironic.I download jui and put it in under extentions dir.

Then I use the Etabs example what you writed in document,but can't display tabs effect .

Is it lack of some files?