Hi all…
I am trying to get progressbar
following is my code in view:
$this->widget(‘zii.widgets.jui.CJuiProgressBar’, array(
'value'=>10,
// additional javascript options for the progress bar plugin
'options'=>array(
'change'=>'js:check_version()',
),
'htmlOptions'=>array(
'style'=>'height:20px;'
),
));
following is my check_version() function:
<script type="text/javascript">
function check_version()
{
i=0;
for(i=0;i<100;i++)
i++;
if(i==100)
alert("UPDATE......!!!!!!");
}
</script>
I want a progressbar that progress untill the funtion is evaluated and alert message to be displayed. please help…