Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

write to opener (window)

Status
Not open for further replies.

andreas57

Technical User
Sep 29, 2000
110
CH
i've got a smal problem with a popup which should add a option to a select of it's opener. i allways get the error &quot;exceptional server error&quot;. i've tried the following 2 exampels in my popup. Bibliothek ist the name (<title>) of the opener window. i hope it's possible to work with the title name because the popup reloads itself befor it executes one of the codes below or doen't that make a diffrence?

i would be very thankful for some help.

<script>
var optionName = new Option('blam', 'blim', true, true);
var length = Bibliothek.document.form1.inputAuthor.length;
Bibliothek.document.form1.inputAuthor.options[length] = optionName;
</script>

<script>
var optionName = new Option('blam', 'blim', true, true);
var length = opener.document.form1.inputAuthor.length;
opener.document.form1.inputAuthor.options[length] = optionName;
</script>
andreas owen
aowen@arcade.ch
 
It would seem to me that the second example should work.

Have you though of simplifying your code to use less popups?

Frames and popups are hard to manage in general and despite usually have a way of doing things it usually is a lot of effort for nothing. Gary Haran
 
but i'm allways getting this javascript error: &quot;exceptional server error&quot;

i think you're right, these stupid popups rarely do what you want them to do andreas owen
aowen@arcade.ch
 
I used something like that and works well. The only problem is that Explorer doesn't like it, so it freezes.

see the post : new option in a <select multiple> but not in the same window
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top