It’s one of those mornings and I can’t seem to get the syntax correct.
The child window executes a query, loops through the result set which clears
and populates a select box in my parent window.
I thought I could clear all options and populate the select using the following syntax
in my child window but it doesn’t seem to work…
// clear the selection box of previous items.
window.opener.imForm.itemNbrSelect.options.length = 0;
// add default option message
window.opener.imForm.itemNbrSelect.options[0] = new Option("Choose an Item Nbr:","",false,false);
Thanks,
Dave
The child window executes a query, loops through the result set which clears
and populates a select box in my parent window.
I thought I could clear all options and populate the select using the following syntax
in my child window but it doesn’t seem to work…
// clear the selection box of previous items.
window.opener.imForm.itemNbrSelect.options.length = 0;
// add default option message
window.opener.imForm.itemNbrSelect.options[0] = new Option("Choose an Item Nbr:","",false,false);
Thanks,
Dave