peaforabrain
Feb 7th 2007, 2:08 am
I have a php/mysql form, where the data is changed using drop down selection.
I would like to be able to transfer a selection into an iframe. I am trying this, but it doesn't work;
Parent
function change(name)
{
if(frames['editregion'].document.r1.r2.value){frames['editregion'].document.r1.r2.value = name; }
frames['editregion'].document.getElementById('r1').submit();
}
the iframe is editregion.php and the form is r1, with the input box name r2.
I think the value is being tranfered, but the page needs to be refreshed in order for the new data to populate the iframe dropdown.
Can anyone help?
thanks
I would like to be able to transfer a selection into an iframe. I am trying this, but it doesn't work;
Parent
function change(name)
{
if(frames['editregion'].document.r1.r2.value){frames['editregion'].document.r1.r2.value = name; }
frames['editregion'].document.getElementById('r1').submit();
}
the iframe is editregion.php and the form is r1, with the input box name r2.
I think the value is being tranfered, but the page needs to be refreshed in order for the new data to populate the iframe dropdown.
Can anyone help?
thanks