| re: Problem with params between parent and popup windows using IE (everything's fine with Firefox)
Audrius wrote:[color=blue]
> Hello everybody,
>
> I have one page with <select> list in it, which opens a popup with
> another <select> list. Those two list are linked... When I select
> something in the list that is in popup window and confirm the selection
> (by pressing button), I call a function that fills the "parent" window
> and forces popup to close. All this is accomplished by directly
> accessing another list:
>
> for(var i = 0; i <= selLength; i++){
> name = parent.window.opener.listValues.options[i].text;[/color]
where and what is this 'listValues'
if it is a select (in a form) named 'listValues' ->
try (as you do in your popup) :
var name = parent.opener.document.forms['myForm'].listValues.options[i].text;
var value = parent.opener.document.forms['myForm'].listValues.options[i].value;
[color=blue]
> value = parent.window.opener.listValues.options[i].value;
>
> self.document.form1.itemList.options[i] = new Option(name, value);
> }
>
> And this doesn't seem to work with IE. With Firefox is OK.
>
> Any ideas how to make it work with IE?
>[/color]
--
Stephane Moriaux et son [moins] vieux Mac |