A
Anonymous
Guest
Hi does anyone know if it's forbidden to add an option in a list on another page? I think it is but maybe I am doing something wrong:
neither of the last lines work...they all give me the error:
The server threw an exception
so, could anyone confirm me that it is forbidden to add an option on another page?
Code:
function setOption(ip,status) {
var elemID = 'ip_usr';
var length = window.opener.document.forms.form1.ip_usr.length;
var optionName = new Option(ip, status);
window.opener.document.all(elemID).options[length] = optionName;
window.opener.document.forms.form1.ip_usr.options[length] = optionName;
window.opener.document.getElementById(elemID).options[length] = optionName;
window.opener.document.layers[elemID].options[length] = optionName;
}
neither of the last lines work...they all give me the error:
The server threw an exception
so, could anyone confirm me that it is forbidden to add an option on another page?