I am aware of that fact. however this is a php page. you can run php code just about anywhere. and yes the images do load from the database on the first loop through. It just doesn't call a second time.
<script language="JavaScript">
function refreshIt()
{
<?php echo getUserImage(); ?>;
}
</script>
<?php
function getUserImage()
{
//mycode here for php
}
?>
.. body on load refreshes ever 5 sec ....
everything works fine the first time around but it doesn't execute the php part of it more...
I am trying to find out how to call a function more than once. for example
function myfunction()
{
// Some Code here
}
... rest of php page
myfunction();
the myfunction() gets called numerous times
Thank you that really is a good idea :). I have since spent the last 12 hours on this and have also found another way around as well. I may still use your idea though lol. I shall show the source here in case it helps someone else as well.
<script language="JavaScript">
var dat1;
var...
I have the javascript image refresh only down, but i'm trying to refresh a webcam image ever 5 sec but I need to be able to change the source for the other cams. For example I view my webcams for 3 hours during those 3 hours The webcams switch every hour on the hour. If the hour two comes along...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.