ceballos79
10-30-2003, 08:31 AM
I spawn a page labeled A that has a form A.
within that popup I spawn a page B with form B
in window B, submitting it puts the data back into window A, form A.
the code that does that is
<script>
function SendData() {
window.opener.document.formA.value1.value = document.FORMB.value2.value;
}
</script>
This works fine and dandy. But if I navigate to a different page in window B, THEN submit back to window A. it won't work. that's a problem.
i tried to remedy this by telling the JS to direct back to window A directly by:
<script>
function SendData() {
A.document.formA.value1.value = document.FORMB.value2.value;
}
</script>
Edited By Moderator
<comments>
Please refrain from resorting to in appropriate language.
<comments>
BUT THE ***** WON'T LISTEN! /cry.
what am I doing wrong?
/rc
within that popup I spawn a page B with form B
in window B, submitting it puts the data back into window A, form A.
the code that does that is
<script>
function SendData() {
window.opener.document.formA.value1.value = document.FORMB.value2.value;
}
</script>
This works fine and dandy. But if I navigate to a different page in window B, THEN submit back to window A. it won't work. that's a problem.
i tried to remedy this by telling the JS to direct back to window A directly by:
<script>
function SendData() {
A.document.formA.value1.value = document.FORMB.value2.value;
}
</script>
Edited By Moderator
<comments>
Please refrain from resorting to in appropriate language.
<comments>
BUT THE ***** WON'T LISTEN! /cry.
what am I doing wrong?
/rc