views:

150

answers:

2

In my child window I have

$('#opfile').addOption("someval",sometext");

Problem is #opfile is an a parent widow I cant get it to communicate

I tried

window.opener.$('#opfile').addOption("someval",sometext");

but no luck any ideas?

Update

Embarssing but I got the above to work might have been caching something

Thanks for the suggestions

+2  A: 

This may be helpful.

Communication between browser windows

Though this is not directly related to the select box example, but the concepts may be applied here.

I'll watch this space, if anyone has a better solution.

rajesh pillai
A: 

try this by changing array in options

window.opener.document.getElementById("opfile").options[0] = new Option("someval",sometext");