[EXTENSION] jQuery UI widgets
#41
Posted 14 March 2009 - 05:26 PM
#42
Posted 14 March 2009 - 05:27 PM
Quote
#43
Posted 16 March 2009 - 11:30 AM
I have problem with jui 2.0.
When I try dialog without buttons:
<?php $this->beginWidget('application.extensions.jui.EDialog',
array('name'=>'dialogo',
'theme'=>'cupertino',
'compression'=>'packed',
'htmlOptions'=>array('title'=>'Hello dialog'))); ?>
<p>Hello world</p>
<?php $this->endWidget('application.extensions.jui.EDialog'); ?>
I have error:
Quote
Description
Array to string conversion
Source File
E:\www\projects\mysite.pl\protected\extensions\jui\EDialog.php(229)
00217:
00218: foreach ($this->callbacks as $key=>$val) {
00219: $encodedOptions = str_replace("'callback_{$key}':'{$key}'", "{$key}: {$val}", $encodedOptions);
00220: }
00221:
00222: if (!empty($this->buttons)) {
00223: $b = array();
00224: foreach ($this->buttons as $key=>$val) {
00225: $b[] = "'{$key}'".':'.str_replace(array("\n", "\r", "\t"), '', $val);
00226: }
00227: $buttons = "'buttons':{" . implode(',', $
00228: }
00229: $encodedOptions = str_replace("'buttons':'buttons'", $buttons, $encodedOptions);
00230:
00231: return $encodedOptions;
00232: }
00233:
00234: /**
00235: * Generates the javascript code for the widget
00236: *
00237: * @return string
00238: */
00239: protected function jsCode($id)
00240: {
00241: $options = $this->makeOptions();
What is wrong?
#44
Posted 16 March 2009 - 11:59 AM
Can someone else try to reproduce this?
#45
Posted 17 March 2009 - 12:11 AM
Quote
No "success". For me, the posted code worked fine.
greets
#46
Posted 17 March 2009 - 01:59 AM
#47
Posted 17 March 2009 - 04:31 AM
R
#48
Posted 19 March 2009 - 12:36 PM
Another thing: the date picker is shown correctly using the following code:
$this->widget('application.extensions.jui.EDatePicker',
array(
'name'=>'cp',
'language'=>'it',
'mode'=>'imagebutton',
'theme'=>'ui-lightness',
'value'=>date('Y-m-d'),
'htmlOptions'=>array('size'=>10)
)
);but the datepicker shown is very small.. you can't even read the numbers on it.. does this happens to you too? I also tried it with an empty webapp (generated with yiic) but nothing changed..
thanks.
bye,
Giovanni.
p.s.
thanks for this great extension.. it would be great to have the tabs widget too but for me the most important are the datepicker and the dialog.
#49
Posted 19 March 2009 - 01:53 PM
Hello.. maybe this is more a question related to the jQuery UI .. but .. is it normal that on localhost if I set 'compression'=>'packed' in the dialog options it takes a lot of time and cpu to load the page?
[/qoute]
Can you check which process is eating your CPU? maybe your browser of your HTTPd... also, try the minified, it's said to work better than the packed.
Quote
Will check later, I'm not at home.
Quote
Sure, I'll include the tabs too.
#50
Posted 20 March 2009 - 03:39 AM
Quote
the process is firefox.. maybe also due to the firebug extension.. but also using chrome it takes a lot more time to load the page..
anyway.. with the minified version ("min") it runs fine
Quote
bye,
Giovanni.
#51
Posted 23 March 2009 - 11:44 PM
#52
Posted 24 March 2009 - 10:47 AM
Thanks a lot!
Happy that you implemented it so that it works in ajax mode too!!
bye,
Giovanni.
#53
Posted 25 March 2009 - 04:27 AM
on the documentation could you please add also the "theme" option? It took me some time to figure it
something like:
<?php $this->beginWidget('application.extensions.jui.ETabs', array('name'=>'tabpanel1', 'theme'=>'ui-lightness')); ?>thanks.
also.. about the dialog box.. would be useful / time saving to have a small example that shows how to open a dialog by clicking on a link .. like a small simulation of a "delete" icon clicked or something like this..
bye,
Giovanni.
p.s.
I still have the problem with the calendar widget that makes the calendar looks too small.. did you checked this? thanks.
#55
Posted 25 March 2009 - 11:50 AM
Quote
hi, seems to work.. but don't understand why, if I change it inside EDatePicker.php (just for a test) it works, but if I change it in my code like this:
$this->widget('application.extensions.jui.EDatePicker',
array(
'name'=>'cp',
'fontSize'=>'2em',
'effect'=>'fadeIn',
...it doesn't do anything..
thanks.
bye,
Giovanni.
#57
Posted 26 March 2009 - 04:21 AM
tried to clear the assets folder but didn't helped..
as you can see from my piece of code I've also tried to change the effect property and that one works fine, just the fontSize seems to be ignored. But I guess I'm missing something
anyway, thanks for your help
bye,
Giovanni.
#58
Posted 28 March 2009 - 11:15 PM
How to do that?
Thanks
#59
Posted 05 April 2009 - 11:40 PM
Quote
Description
Object of class EDatePicker could not be converted to string
Source File
/public_html/pay/protected/views/peg/_form.php(63)
00051: <div class="simple">
00052: <?php
00053: echo CHtml::activeLabelEx($peg,'tlahir_a');
00054: echo ($showform ? CHtml::encode($peg->tlahir_a) :
00055: $this->widget('application.extensions.jui.EDatePicker',array(
00056: 'model'=>$peg,
00057: 'attribute'=>'tlahir_a',
00058: 'language'=>'',
00059: 'theme'=>'redmond',
00060: 'compression'=>'none',
00061: 'mode'=>'imagebutton'
00062: ))
00063: );
Any idea how to workaround?
-majin-

Help















