G
Guest
please can someone tell me what i am doing wrong.
if i //comment out// the lines that start parent. the script work to
the end.
but with the parent line it does not get to the end of the script. and my
div's are not updated on the other page.
if i was to have just one of the (if else) parts shown below, the Avocado
part of the script. it works ok with the parent. lines.
but when i start to add more if else lines it does not want to know.
thank you.
function showorders()
{
alert("start of show orders script")
var form = document.forms.favororders;
if (form.Avocado.value==0) {
alert("avocado=0");
parent.orderlistcell.document.getElementById('bAvocado').innerHTML = "";
} else {
alert("avocado not 0");
parent.orderlistcell.document.getElementById('bAvocado').innerHTML = "avo
not 0";
}
if (form.ButterSquash.value==0) {
alert("ButterSquash 0");
parent.orderlistcell.document.getElementById('bButterSquash').innerHTML =
"";
} else {
alert("ButterSquash not 0");
parent.orderlistcell.document.getElementById('bButterSquash').innerHTML =
"butter not 0";
}
if (form.Cauliflower.value==0) {
alert("Cauliflower 0");
parent.orderlistcell.document.getElementById('bCauliflower').innerHTML = "";
} else {
alert("Cauliflower not 0");
parent.orderlistcell.document.getElementById('bCauliflower').innerHTML =
"caul not 0";
}
alert("end of show orders script")
}
if i //comment out// the lines that start parent. the script work to
the end.
but with the parent line it does not get to the end of the script. and my
div's are not updated on the other page.
if i was to have just one of the (if else) parts shown below, the Avocado
part of the script. it works ok with the parent. lines.
but when i start to add more if else lines it does not want to know.
thank you.
function showorders()
{
alert("start of show orders script")
var form = document.forms.favororders;
if (form.Avocado.value==0) {
alert("avocado=0");
parent.orderlistcell.document.getElementById('bAvocado').innerHTML = "";
} else {
alert("avocado not 0");
parent.orderlistcell.document.getElementById('bAvocado').innerHTML = "avo
not 0";
}
if (form.ButterSquash.value==0) {
alert("ButterSquash 0");
parent.orderlistcell.document.getElementById('bButterSquash').innerHTML =
"";
} else {
alert("ButterSquash not 0");
parent.orderlistcell.document.getElementById('bButterSquash').innerHTML =
"butter not 0";
}
if (form.Cauliflower.value==0) {
alert("Cauliflower 0");
parent.orderlistcell.document.getElementById('bCauliflower').innerHTML = "";
} else {
alert("Cauliflower not 0");
parent.orderlistcell.document.getElementById('bCauliflower').innerHTML =
"caul not 0";
}
alert("end of show orders script")
}