sadly i think websockets will be going away. i have been waiting for them but firefox has dropped support, i dont think ie intends to support it, only chrome supports it that i know of (maybe all of...
i dont know much about hooking CCTV to the computer, if you have already fixed that problem and have a way to take an image from it you can use a php script like this (FF/chrome only)
<?php...
kor, im not sure that will work. this issue here is that ajax is asynchronous, so an ajax call evaluates AFTER the function it was called from ends. so any function which depends on ajax will return...
if(!$row)
{
header("HTTP/1.1 302 Found");
header("Location: http://your.server.loc/notfound.html");
die();
}
this will work only if you have not done an echo before this statement
otherwise...
some information will be needed first:
1: what OS do you use
2: what camera do you use
3: what server do you use
4: do you want it to be cross platform or for a specific browser
you dont need to use document.write, taking a div and setting its innerHTML lets you change the text in that div, including adding html elements. also element.appendChild() lets you append an html...
pretty much what wolf said, i had this problem before, certain elements will not support innerHTML, tables for instance (the <table>,<tbody>, and <tr> tag, but <td> will)some elements do not have an...
<script type="text/javascript">
function yourFunction()
{
var thediv=document.getElementById("resultDiv");
var firstName=document.getElementById("firstName");
var...
var texts=["happy monday","i hate mondays","wee another monday"]//etc..
var now = new Date;
if(now.getDay()==1)
{
alert(text[parseInt(Math.random()*text.length)]);//doesnt have to be an alert
}...
alternatively you can make an ajax request onUnload to save the information to the server, or just use local session store from the new html5 standard (window.localStorage)
if you have a lot to...