Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Cjuisliderinput Too Slow And Slide Event Is Not Triggering

$
0
0
Hi,

I have the next problem, I want to create a slider with CJuiSliderInput but when I try out to move my slider it works very slow. I have tried to use 'animate' property with different values (fast, milliseconds, true or false) but it doesn't work. If I use JQuery UI directly it also works slow.

My second problem it is with the 'slide' event option, the trigger is not working and I don't know why.

This is the code that I am using:

<label>Project value</label>
			    <?php echo CHtml::label('0','startVal', array("id" => "startValLabel")); ?>
				 <?php echo CHtml::label('400','endVal', array("id" => "endValLabel")); ?>
				 
				 <?php echo $form->hiddenField($filterForm, 'startVal', array("id" => "startVal")); ?>
				<?php echo $form->hiddenField($filterForm, 'endVal', array("id" => "endVal")); ?>
							 
			
			
		<div class="slider" id="sliderFilterForm">
            <?php $this->widget('zii.widgets.jui.CJuiSliderInput',array(
    'name'=>'rate',
   
    // additional javascript options for the slider plugin
    'options'=>array(
		'range'=>true,
        'min'=>0,
        'max'=>500,
		'event'=>'change',
		'animate'=>true,
		//'step'=>5,
		'values'=>array(0, 400),
		'slide'=>' js:function( event, ui ) {
						alert("codigo_encontrar");
						$("#startValLabel").val(ui.values[0]);
						$("#endValLabel").val(ui.values[1] );
      }',
    ),
    'htmlOptions'=>array(
        'style'=>'height:5px;',
    ),
)); ?>


Thanks and sorry for my English and perhaps this question is very stupid but I am new developing with Yii Framework.

Viewing all articles
Browse latest Browse all 18717

Trending Articles