- Impact
- 0
Hello everybuddy!
I'm esigning a little service for mobile accesses. There's a page that continuosly refresh a target image on a url. This image is provided by a webcam and changes periodically, one or two images every second.
The problem is that when I refresh this image, of course it appears a blank page until it finish loading.
My goal is to keep the last loaded image until the new one finishes loading.
Could somebody help me??
The code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page language="java" %>
<html>
<head>
<title>Camara</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<!-- <META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT"> -->
<script language="JavaScript">
function recarga(){
location = this.location;
}
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" class="barra">
<img width="159" height="130" src=<%=request.getParameter("camara") + "?Type=0&Img=" + request.getParameter("Img")+"&Q="+request.getParameter("Q")%>>
<br>
<script>
setTimeout("recarga()",4000)
</script>
</body>
</html>
Thanks in advance,
Ronnie.
I'm esigning a little service for mobile accesses. There's a page that continuosly refresh a target image on a url. This image is provided by a webcam and changes periodically, one or two images every second.
The problem is that when I refresh this image, of course it appears a blank page until it finish loading.
My goal is to keep the last loaded image until the new one finishes loading.
Could somebody help me??
The code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page language="java" %>
<html>
<head>
<title>Camara</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<!-- <META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT"> -->
<script language="JavaScript">
function recarga(){
location = this.location;
}
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" class="barra">
<img width="159" height="130" src=<%=request.getParameter("camara") + "?Type=0&Img=" + request.getParameter("Img")+"&Q="+request.getParameter("Q")%>>
<br>
<script>
setTimeout("recarga()",4000)
</script>
</body>
</html>
Thanks in advance,
Ronnie.