S
Superfox il Volpone
Hi guys,
I'm trying to insert a new <option> in a select, but from a new opened
window. The code I've written is :
function chiudi(ref_id, opt_id, opt_name){
select = window.opener.document.getElementById('lnk_categ_' +
ref_id);
select.options[select.length] = new Option(opt_id, opt_name, true);
//self.close();
}
the args opt_id and opt_name are the value and the name of the option,
ref_id is a string to retrieve the <SELECT> object from the opener
document.
I'm sure that the <SELECT> object is retrieved (I've printed on screen
some its property).
So what's the error ? The IE Debugger give me an "Unknown error" on
the row select.options....
Bye
- Dean
I'm trying to insert a new <option> in a select, but from a new opened
window. The code I've written is :
function chiudi(ref_id, opt_id, opt_name){
select = window.opener.document.getElementById('lnk_categ_' +
ref_id);
select.options[select.length] = new Option(opt_id, opt_name, true);
//self.close();
}
the args opt_id and opt_name are the value and the name of the option,
ref_id is a string to retrieve the <SELECT> object from the opener
document.
I'm sure that the <SELECT> object is retrieved (I've printed on screen
some its property).
So what's the error ? The IE Debugger give me an "Unknown error" on
the row select.options....
Bye
- Dean