HENNINOT FRÉDÉRIC wrote:
<snip>
A popup windows must be update an opener select form!!
Must implies the absence of alternatives, there probably are
alternatives.
In my popup i execute this :
addOption = new Option();
<snip> newIndex = top.opener.document.test.dept.options.length;
opener.document.test.dept.options[newIndex] = addOption;
<snip>
When you use - new Option() - in the pop-up it is the Option constructor
local to the pop-up that is used, and the resulting object is located in
memory belonging to the pop-up. Inserting that object into a document in
another window either will not be allowed, will tie-up the memory used
by the pop-up after it is closed, or will require that the browser
recognise what is going on an clone the original Option into a new one
local to the original window. IE takes the first choice.
You could try using the Option constructor form the original window as -
new opener.Option() - or you could make a function in the opener that
creates and adds the new Options locally, and call that from the pop-up
passing the string values needed for - text - and - value - as arguments
to that function. (the function in the opener option is the one I would
go with)
In the end, though, you are going to find that pop-ups are not the easy
answer for UI design that they first appear to be.
Richard.