Its funny you cant add options into select boxes across windows like that
the way I have gotton around it is create a function in the opener to add the option and call opener.function rather than trying to add the option from within the opener its self Steve -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Gareth Edwards Sent: Wednesday, February 04, 2004 1:12 PM To: CFAussie Mailing List Subject: [cfaussie] Javascript anybody? The Code below causes an error in the explorer browser. quote: "The server throws an exception" Then when I close the popup window that contains the code. IE crashes. This is my code here: myOption=new Option(); myOption.text="this is new"; myOption.value="this is new"; insertIndex=window.opener.entry.btype_code.options.length; window.opener.entry.btype_code.options[insertIndex] = myOption; the other method I have been trying to use is, instead of the last line above. window.opener.entry.btype_code.options[insertIndex] = new Option("this is the value test test","id2",false,false); can anyone that knows a bit about Javascript tell me what I am doing wrong? Thanks in advance. Gareth. --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004 --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
