travisb
09-15-2003, 12:45 PM
I am having trouble trying to get multiple values in an array from an iframe to a function in the parent:
in the iframe:
<div onClick="parent.passpro('prod_array[]:[Big Arm 1 seater][35401]');">
and putting them in the form on the parent with:
function passpro(array[]) {
document.order_form.pro.value = array[0];
document.order_form.mod.value = array[1];
}
I have been looking for a couple hours and cannot find any examples of how to do this.
in the iframe:
<div onClick="parent.passpro('prod_array[]:[Big Arm 1 seater][35401]');">
and putting them in the form on the parent with:
function passpro(array[]) {
document.order_form.pro.value = array[0];
document.order_form.mod.value = array[1];
}
I have been looking for a couple hours and cannot find any examples of how to do this.