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