I have a htm code that also contains php within the same file. I want to refresh only a single div element of the page and not the full page. The reason being is that it contains images from a webcam and if I refresh the whole page the images will flicker. How can I refresh only the embedded php part of the html code (<?php echo $Door12; ?>
)? I’m looking to refresh based on a set time inrterval.
<body>
<div id="parent">
<div id="subparent">
<div class="image"><img src="http://##.##.##.##:##//CGIProxy.fcgi?cmd=snapPicture2&usr=myusername&pwd=mypassword&t=" width='640' alt='' /></div>
<div class="divTable">
<div class="divTableBody">
<div class="divTableRow">
<div class="divTableCell">12 --> <?php echo $Door12; ?></div>
<div class="divTableCell">11 --> <?php echo $Door11; ?></div>
</div>
</div>
</div>
</div>
</div>
</body>