Entry
How do i dynamically update a select statement in one window with input from another window?
Mar 30th, 2001 12:18
Doug Poland, Martin Honnen, jason buck,
You use the code in
http://www.faqts.com/knowledge-base/view.phtml/aid/1181/fid/178/lang/
and use
var select =
parent.frameName.document.formName.selectName
or
var select =
windowVar.document.formName.selectName
Note: This works in Netscape 4.x and 6.x but NOT IE 5.x
IE 5.x reports:
'The server threw an exception'
Script debugger points to the line that the option., i.e.,
sel.option[sel.options.length] = opt;
Further details:
'An exception of type "Microsoft JScript runtime error: Object
doesn't support this property or method" was not handled.'