Affects: IE6, IE7, IE8
If you downloaded the latest IE Cumulative Security Update for October 2009 security patch, which "fixed" Microsoft Knowledge Base Article 974455 then you may have noticed that the showModalDialog documentation indicates that the window.returnValue accepts an Array.
However after updating KB974455, there was an undocumented change that now Array return values are no longer allowed.
So what can you do if you depend on this non-standard dialog? Well, the workaround is ugly but there hasn't been confirmation from Microsoft that this bug was introduced - nor that a fix is on the way.
Known Workarounds: One. Use something other than an Array and handle the return value accordingly.
Example Workaround Code:
On the Popup window:
window.returnValue = arrayValue;
arrString = Join(arrayValue, ";");
window.returnValue = arrString;
On the Calling window (e.g. Opener):
retArray = window.showModalDialog( ... );
tempRetArray = window.showModalDialog( ... );
retArray = Split(tempRetArray, ";");
Related Issues: None.
Submit a bug