I am trying to get this page to POST and stay on the same page, I cannot seem to get it to work though. It doesn’t error or anything, here is the javascript part of it:
[CODE]<script language=”JavaScript”>
<!–
function ImageDelete() {
if (confirm(“Are you sure you want to delete?”) == false) {
return;
}
document.forms[0].ClearImage.value = ‘1’;
document.forms[0].TransCondition.value = ‘4’;
document.forms[0].submit();
return;
}
function ClickCancel() {
self.location = “http://68.157.251.100/CgiImageTransfer?Page=0&Language=0”;
}
function ONStatus(){
document.forms[0].ConditionSave.value = ‘1’;
document.forms[0].TaskEnable.checked = true
{
var xmlHttp;
{
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
}
}
xmlHttp.onreadystatechange=function()
{
if (xmlHttp.ready&state==4)
{
document.myForm.time.value=xmlHttp.responseText;
}
}
xmlHttp.open(“POST”,”http://oneadvent.viewnetcam.com:50050/CgiImageTransfer”,true);
xmlHttp.send()
}
function OFFStatus(){
document.forms[0].ConditionSave.value = ‘1’;
document.forms[0].TaskEnable.checked = false
{
var xmlHttp;
{
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
}
}
xmlHttp.onreadystatechange=function()
{
if (xmlHttp.ready&state==4)
{
document.myForm.time.value=xmlHttp.responseText;
}
}
xmlHttp.open(‘POST’,’http://oneadvent.viewnetcam.com:50050/CgiImageTransfer’,false);
xmlHttp.send()
}
function ajaxFunction()
// –>
</script>
Does anyone see what I am doing wrong?