im using CStarRating widget in my project.here is my sample code for that,
$this->widget('CStarRating',array(
'name'=>'test',
'value'=>3,
'minRating'=>1,
'maxRating'=>5,
'starCount'=>5,
'ratingStepSize' =>1,
'readOnly'=>true,
));
but it always displaying radio buttons instead of stars.i have tested this code in all portions of my project but it is still like that only.i dont know why.Even just before it was fine but i cant found out why it is displaying radio buttons nw.Please help me.
Reagards,
sirin k
Page 1 of 1
Why CStarRating widget always displaying radio buttons?
#2 Guest_sirin_*
Posted 21 June 2011 - 08:33 AM
i got some unexpected issues like displaying radio buttons instead of stars in CStarRate widget in yii,also my other ajax codes are not working .One and only reason for this unexpcted errors is that i have re-used the jquiry libray in my main.php
thats is :<script type="text/javascript" src="/portal1/js/jquery-1.3.2.min.js"></script>
Actually we dont need to do this because jquiry is already shipped with Yii.
Regards,
sirin k
thats is :<script type="text/javascript" src="/portal1/js/jquery-1.3.2.min.js"></script>
Actually we dont need to do this because jquiry is already shipped with Yii.
Regards,
sirin k
#3
Posted 07 March 2012 - 01:07 PM
sirin, on 21 June 2011 - 08:33 AM, said:
i got some unexpected issues like displaying radio buttons instead of stars in CStarRate widget in yii,also my other ajax codes are not working .One and only reason for this unexpcted errors is that i have re-used the jquiry libray in my main.php
thats is :<script type="text/javascript" src="/portal1/js/jquery-1.3.2.min.js"></script>
Actually we dont need to do this because jquiry is already shipped with Yii.
Regards,
sirin k
thats is :<script type="text/javascript" src="/portal1/js/jquery-1.3.2.min.js"></script>
Actually we dont need to do this because jquiry is already shipped with Yii.
Regards,
sirin k
To avoid any conflict when you have a jquery call in your page, you can test if there is already another one.
Here is an example
<script type="text/javascript">
if (typeof jQuery == 'undefined') {
document.write('<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.js" type="text/javascript"><\/script>');
}
</script>Regards,
arnO
Share this topic:
Page 1 of 1

Help












