HEre is my code
function passVal(p,q,r){
with (window.opener. form1) {
bldr_cmpny.valu e=p
bldr_cotel.valu e=q;
bldr_lcse.value =r;
}
window.close();
}
Works great, however, due to bad database design we have 3 differenct
sections of a record and the only difference is instead of "bldr" it is
prefixed with "ownr".
So based on another passed value, lets say "w" I want to indicate a dynamic
value.
I tried eval("window.op ener.form1."+w+ "_company.value ") and I get the right
info when testing in an alert popup, but it doesnt evaluate correctly like
above.
TIA,
Dave
function passVal(p,q,r){
with (window.opener. form1) {
bldr_cmpny.valu e=p
bldr_cotel.valu e=q;
bldr_lcse.value =r;
}
window.close();
}
Works great, however, due to bad database design we have 3 differenct
sections of a record and the only difference is instead of "bldr" it is
prefixed with "ownr".
So based on another passed value, lets say "w" I want to indicate a dynamic
value.
I tried eval("window.op ener.form1."+w+ "_company.value ") and I get the right
info when testing in an alert popup, but it doesnt evaluate correctly like
above.
TIA,
Dave
Comment