Forum Moderators: open
function updateDiv(){
var ord = getCookie('ordinals'); //string containing all checked images
if( ord.indexOf("<?=$ordinal?>")==-1 ){
document.getElementById("chk<?=$ordinal?>").checked=false //not checked
}
else {
document.getElementById("chk<?=$ordinal?>").checked=true//checked
}
$('chk<?=$ordinal?>').html(newContent);
}
setInterval('updateDiv()', 1000); // that's 1 second
......
......
<body onload="updateDiv(); ....
It appears to work OK-ish for me in IE8 (the underlying checkbox in the main window is also checked),
function updateDiv(){ // usa jQuery
var ord = getCookie("ordinales");
if (ord != null && ord != ""){ // si existe la cookie
if( ord.indexOf("<?=$ordinal?>")==-1 ){ // si el ordinal está en la cookie
document.getElementById("chk<?=$ordinal?>").checked=false//no checked
}
else {
document.getElementById("chk<?=$ordinal?>").checked=true//checked
}
}
}
This is (was) not the issue. Check the underlying checkbox and see that popup checkbox does not change (did not). Reverse procedure works fine.
Error: Permission denied for <http://googleads.g.doubleclick.net> to call method Location.toString