Hi,
The JS from the loaded page in tab is possible wiped out.
Add the JS for that page in the main page.
Good luck,
Paul
Hi,
The JS from the loaded page in tab is possible wiped out.
Add the JS for that page in the main page.
Good luck,
Paul
Hi,
I use DatePicker from this extension and I have problem with translation datepicker when I try load form by ajax request. Appears only english version. If I write address to the action directly into the browser everything is working well (Appears polish version)
Fragment my view file:
<div class="simple"> <?php echo CHtml::activeLabelEx($model,'description'); ?> <?php echo CHtml::activeTextField($model,'description'); ?> </div> <div class="simple"> <?php echo CHtml::activeLabelEx($model,'before'); ?> <?php $this->widget('application.extensions.jui.EDatePicker', array( 'model'=>$model, 'attribute'=>'before', 'language'=>'pl', 'mode'=>'focus', 'theme'=>'humanity', 'fontSize'=>'10px', ) ); ?> </div>
And how I render view:
<?php $this->renderPartial('_form', array('model'=>$model),false,true); ?>
Thanx for help!
Anybody?
You should place a <script> tag in your head to load the language you want, since the translation file is loaded by the page’s first load and not by an ajax request which modifies only a part of the page.
Thanks for help! I have tried registerClientScript method and it works too
I got a bug when trying to configure the ‘dayNamesMin’ option when using the datepicker widget.
It looks like all options that are expected to be array type are not working.
Here is the solution I found:
In EDatePicker.php replace the foreach statement starting at line 486 by this one:
foreach($value as $k=>$v) {
if (is_array($v)) {
$es[] = $k . ':' . self::encode($v);
}
elseif ($k === 'yearRange') {
$es[] = $k.':'."'".$v."'";
}
else {
$es[] = $k.':'.$v;
}
}
The first if will generate the correct js output for the arrays.
I had some problems with the calendar div showing to small.
Adding the following styles solved the problem:
.ui-datepicker-div, .ui-datepicker-inline, #ui-datepicker-div {
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
font-family: Verdana, Arial, sans-serif;
background: #ffffff url(images/ffffff_40x100_textures_01_flat_0.png) 0 0 repeat-x;
font-size: 1.1em;
border: 4px solid #dddddd;
width: 175px;
padding: 2.5em .5em .5em .5em;
position: relative;
}
.ui-datepicker-div, #ui-datepicker-div {
z-index: 9999; /*must have*/
display: none;
}
.ui-datepicker-inline {
float: left;
display: block;
}
its seems that when i add a table into the EAccordionPanel, i am not able to view this panel in ie6. any idea how to get pass this?
<?php
$this->beginWidget('application.extensions.jui.EAccordionPanel', array('name'=>'p1', 'title'=>'Wrapper Details')); ?>
<table cellspacing=1 cellpadding=1>
<tr>
<th><?php echo CHtml::encode('entry_id'); ?></th>
<th><?php echo CHtml::encode('run_id'); ?></th>
<th><?php echo CHtml::encode('entry_timestamp'); ?></th>
<th><?php echo CHtml::encode('entry_type'); ?></th>
<th><?php echo CHtml::encode('entry'); ?></th>
</tr>
<?php
foreach($wrapper_log_entries_runList as $n=>$model): ?>
<tr class="<?php echo $n%2?'even':'odd';?>">
<td><?php echo CHtml::encode($model->entry_id); ?></td>
<td><?php echo CHtml::encode($model->run_id); ?></td>
<td><?php echo CHtml::encode($model->entry_timestamp); ?></td>
<td><?php echo CHtml::encode($model->entry_type); ?></td>
<td><?php echo CHtml::encode($model->entry); ?></td>
</tr>
<?php endforeach; ?>
</table>
<?php $this->endWidget('application.extensions.jui.EAccordionPanel'); ?>
IE6… lol
well, corporate machines are old… that why using ie6… and also all thanks to the lousy desktop admins that i have at the work place…
2.4.2 Fixed issues reported by jjmf and romanoza.
Hello,
I have a problem with EDialog and Google Map. As you can see from the picture the map doesnt render as large as it should. You are able to drag the map on they grey area, but it doesnt render over it when it opens 1st time. Anyone knows this issue? Thank you…272
I just realized if I resize browser window the map will appear as it should. Im not sure how fix the problem tho…
I tried to add dialog without buttons, but some exception occured. I understand what in most cases dialog will have buttons, but dialog without buttons possible too, at least in original demos it is: http://jqueryui.com/demos/dialog/
Looks like AjaxTabs is not working
I tried this and no success (alsot tried without dialog widget). No content was loaded
<?php
$this->beginWidget('application.extensions.jui.EDialog',
array( 'name'=>'userslist',
'theme'=>'redmond',
'htmlOptions'=>array('title'=>'Tabs'),
'options' => array(
'autoOpen'=>true,
'position'=>array('center','top'),
'width'=>650
)
));
?>
<?php
$this->widget('application.extensions.jui.ETabs',
array(
'name'=>'tabs-index',
'ajaxTabs'=>array(
array('title'=>'Projects', 'url'=>'http://localhost/yii-svn/demos/hangman'),
array('title'=>'Keywords', 'url'=>'http://localhost/yii-svn/demos/helloworld'),
array('title'=>'Search Engines', 'url'=>'http://localhost/yii-svn/demos/blog'),
)
)
);
?>
<?php $this->endWidget('application.extensions.jui.EDialog'); ?>
Plz fix error "alwaysOpen is not a valid option" for accordion extension.
I have the problem with dialog eithout buttons too. Anybody knows how to resolve it?
Is there a way to get ajax content into edialog window? I would appreciate simple example. Thank you!
Very nice extensions! But I’ve found a “bug”. I’m currently using jQuery and Prototype in parallel and in your widget you are using the shortcut “$(…” but that makes a conflict with Prototype, can you change it in “jQuery(…”?
Thanks a lot!
JQuery has a function called noConflict() which will fix your problem. Call it in your doc ready.
Please correct me if I’m wrong. Jui’s EDatePicker doesn’t work with the CLocale of the Yii framework.
So you have to deal with jQuery’s own date format, which is different from the data format used in Yii’s CDateFormatter.
This is fine as long as you work with only one or a few languages.
Ideally, you would just use the same format string as you use in the framework itself. EDatePicker would use the date format of the current locale as in the example below.
$value = Yii::app()->dateFormatter->formatDateTime($item->created, 'medium', null);
$dateFormat = Yii::app()->locale->getDateFormat('medium');
$this->widget('application.extensions.jui.EDatePicker',
array(
'model'=>$model,
'attribute'=>'created',
'dateFormat'=>$dateFormat,
'htmlOptions'=>array('value'=>$value)
)
);
You also would like to use the same date format as you use for CDateFormater.
Is it intended to implement such behavior into EDatePicker in the next version?