In article <411d0688$0$4890$>,
enlightened us with...
> Someone can tell me why this code does everything but work under IE (6)???
>
> var newEditor = new Option(document.add_editor.nome.value,
> document.add_editor.nome.value);
> opener.document.newsform.editor.options.add(newEdi tor, null);
> opener.document.newsform.editor.selectedIndex =
> opener.document.newsform.editor.length - 1;
>
>
>
Not really, since I don't have testable code here, just a fragment with your
assertion that it doesn't "work". I have no idea what you mean by that. If
you took your car to the mechanic, would you tell him that it doesn't work?
Or would you tell him that when you do something, something else happens, and
so on?
How can I know if you properly defined your form elements, if this page even
HAS an opener, and so on?
Anyway, making new options and adding them somewhere...
See my example here:
http://www.ipwebdesign.net/kaelisSpa...icSelects.html
If you want us to help you, you need to post something we can test or a URL
to the complete code. Do NOT post a huge amount of code. Just a small example
that demonstrates the problem in a way we can copy and test. And DO tell us
what you expected to happen, what did happen, and any errors, if any show up.
Half the time, trimming code to a small test version shows you what the error
was, anyway.
--
--
~kaeli~
Jesus saves, Allah protects, and Cthulhu thinks you'd make
a nice sandwich.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace