I have 3 progress bars on a webpage from database data. When the user clicks on the download, 3 more progress indicators are added from the database.
<div id="progressBar<?php echo $rec['cid'];?>" class="tiny-green"><div></div></div>
...
....
.....
<?php
$prj= mysql_query("select * from campaign where uid=$uid");
$record = array();
while($row = mysql_fetch_assoc($prj)){
$record[] = $row;
}
?>
<script type="text/javascript">
<?php foreach($record as $rec){?>
progressBar(<?php $perc= $rec['value']*100/$rec['value1']; echo $perc;?>, $('#progressBar<?php echo $rec['cid'];?>'));
<?php } ?>
</script>
Below is the javascript plugin
<script type="text/javascript" src="js/jquery.countdown.min.js"></script>
Now the problem is that I add a progress bar from the load_more button (which receive data from the load_more.php file and paste it into the index.php file). I see the value, but the progress bar is not created because the above code does not load after clicking load_more. So, I want to know if there is a way that I can only reload this code. Thus, wherever there is a progress bar control, it displays a panel.
source
share