ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
var j = 0;
var frame=document.getElementById('<frame name here');
for(j = 0;j < 4;j++)f.src=f.src;
call that evrey 5 minits
ah you seem to know a bit more JS than me. Just learning it. Got a progy background, just not enough, or maybe the right books.
my html is below: what I'd like to do is grab the erro when I turn off webcam, so it can display a testcard. I'm looking at loadurl? or would it be prodent for an error event handler?
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#6699ff">
<div align="center">
<p><font face="Courier New, Courier, mono"><b><font color="#00ffff"
size="+7">Webcam</font></b></font></p>
<div style="text-align: center;"><span style="color: black;"> <br>
Last Updated:
<br>
<script type="text/javascript" language="JavaScript1.1">
<!--
lastmod = document.lastModified // get string of last modified date
lastmoddate = Date.parse(lastmod) // convert modified string to date
if(lastmoddate == 0){ // unknown date (or January 1, 1970 GMT)
document.writeln("Unknown")
} else {
d = new Date(lastmod);
document.write(d);
}// -->
</script>
</span><br>
<br>
<table style="text-align: left; width: 100%;" border="1" cellpadding="2"
cellspacing="2">
<tbody>
<tr>
<td
style="vertical-align: top; text-align: center; background-color: rgb(255, 204, 0);">Live
Webcam<br>
</td>
<td
style="vertical-align: top; text-align: center; background-color: rgb(255, 204, 0);">Last
Snap reload every 5mins<br>
</td>
</tr>
<tr>
<td style="text-align: center; vertical-align: top;"> <iframe
src="http://192.168.1.3:8800/" height="256" width="338"> If you can
see this, your
browser doesn't understand IFRAME. However, we'll still
</iframe> <br>
</td>
<td style="text-align: center; vertical-align: top;"> <iframe
src="http://192.168.1.3/webcam/lastpic.jpeg" height="256" width="338">
If you can see this, your
browser doesn't understand IFRAME. However, we'll still
</iframe> <br>
</td>
</tr>
</tbody>
</table>
<br>
<br>
</div>
<div id="top"></div>
<div style="text-align: center;"><a
href="http://www.freesitemapgenerator.com/"><img
alt="Free Sitemap Generator"
style="border: 0pt none ; margin: 3px; padding: 0pt;"
src="http://live.freesitemapgenerator.com/img/fsgbig41.gif" border="0"></a></div>
<script language="javascript">
/* FSG 0.96 script */
var fsg_Live_date_package_version='0.96';
var fsg_image = 'big4';
var fsg_serial = 'b816a328c80a0b3c1fe4c083ac851ed6';
</script>
<script language="javascript"
src="http://live.freesitemapgenerator.com/scripts/fsg096.js"></script></div>
</body>
</html>
???? that does not make sense
anyway
i really think that would be the uploading softwares job
ok ok, It works, I haven't put the direct link in. ...thinks saying that,
it has to be referanced from something on my network. I'll work a way around that problem later.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.