G
Guest
i have an order page mostly written in javascript. (it's been fun)
not this part though.
the IF statement and using the information from the form in one iframe in
another iframe for processing, so it shows the orders made. (the posting of
the orders is not an issue here, it is sent to a file on the sever.)
i have added alert("alert1") with the number changed every time i use it.
to see what is happening.
first i think i need to get the form issue sorted.
is there a site that is just about forms, and how to access the data within
forms while in another frame via a function call to a .js file.
the document......
and parent......
commands are really confusing, in the way it is used. i need to find how to
use these correctly.
i have a file shown below that is called showorders.js, it is called from
the frame that need the information.
function showorders() {
alert("start of show orders script");
form = document.forms.favororders;
document.write(form.Avocado.value);
alert("end of show orders script");
}
but the only line that work is the first alert, the rest is not working, or
executed.
i have checked the spellings and the case of the letters, all are correct.
omiting the document.write.... line the script run from start to finish
showing both alerts.
what is the correct syntax for this line?
thanks
Jason
not this part though.
the IF statement and using the information from the form in one iframe in
another iframe for processing, so it shows the orders made. (the posting of
the orders is not an issue here, it is sent to a file on the sever.)
i have added alert("alert1") with the number changed every time i use it.
to see what is happening.
first i think i need to get the form issue sorted.
is there a site that is just about forms, and how to access the data within
forms while in another frame via a function call to a .js file.
the document......
and parent......
commands are really confusing, in the way it is used. i need to find how to
use these correctly.
i have a file shown below that is called showorders.js, it is called from
the frame that need the information.
function showorders() {
alert("start of show orders script");
form = document.forms.favororders;
document.write(form.Avocado.value);
alert("end of show orders script");
}
but the only line that work is the first alert, the rest is not working, or
executed.
i have checked the spellings and the case of the letters, all are correct.
omiting the document.write.... line the script run from start to finish
showing both alerts.
what is the correct syntax for this line?
thanks
Jason