G
Guest
function showorders() {
alert("start of show orders script");
var form = document.forms.favororders;
alert("123456789");
if (document.form.Avocado.value) {
document.write("avo>0");
}
alert("after the first if in show orders script");
if (form.ButterSquash.value) {
document.write("but>0");
}
}
the first line up to and including alert("123456789") work ok.
the rest does not to execute.
again i can not seem to understand how the 'if' and 'form' commands work, i
have gone to the library to look at a few javascript books, still none the
wiser.
i have also used this line inplace of the one similar above.
if (eval(parent.orderpageiframe.form.Avocado.value)) {
with the same results, there is something wrong with the 'if' lines.
each 'if' command work independatly from each other.
there are not if, else, else, else.
there are
if this then do that;
new query...
if something then do something else;
...
....
thanks
Jason
alert("start of show orders script");
var form = document.forms.favororders;
alert("123456789");
if (document.form.Avocado.value) {
document.write("avo>0");
}
alert("after the first if in show orders script");
if (form.ButterSquash.value) {
document.write("but>0");
}
}
the first line up to and including alert("123456789") work ok.
the rest does not to execute.
again i can not seem to understand how the 'if' and 'form' commands work, i
have gone to the library to look at a few javascript books, still none the
wiser.
i have also used this line inplace of the one similar above.
if (eval(parent.orderpageiframe.form.Avocado.value)) {
with the same results, there is something wrong with the 'if' lines.
each 'if' command work independatly from each other.
there are not if, else, else, else.
there are
if this then do that;
new query...
if something then do something else;
...
....
thanks
Jason