apologies if this has been asked before, search is still down so..
this is what I'm after:
user clicks on a link.
opens a popup window containing text field and button.
user enters text and submits.
This text is added to a select object on the parent window. Popup closes.
I'm trying to use the below script on the popup (I can see the select object and can see its values, its just the add bit that doesn't seem to work. of course it may not be possible/allowed...
<SCRIPT language="Javascript">
function addItem(what) {
var oSel = opener.formname.selectname;
var oEle = document.createElement('option');
oEle.value = what;
oEle.text = what;
oSel.add(oEle);
oSel.value = what;
self.close();
}
</SCRIPT>
thanks
Joe.
this is what I'm after:
user clicks on a link.
opens a popup window containing text field and button.
user enters text and submits.
This text is added to a select object on the parent window. Popup closes.
I'm trying to use the below script on the popup (I can see the select object and can see its values, its just the add bit that doesn't seem to work. of course it may not be possible/allowed...
<SCRIPT language="Javascript">
function addItem(what) {
var oSel = opener.formname.selectname;
var oEle = document.createElement('option');
oEle.value = what;
oEle.text = what;
oSel.add(oEle);
oSel.value = what;
self.close();
}
</SCRIPT>
thanks
Joe.