PDA

View Full Version : SOLVED: Select Options by Popup



Jas
05-17-2008, 02:04 AM
So I have this code:


window.opener.document.forms['editor'].image_select.options.length = 0;
window.opener.document.forms['editor'].image_select.options[0] = new Option("hi","hi");
It works fine in Firefox, but in IE7, only the first line works. :confused:

The error message is something to the effect of:

The object does not support this property or method

Jas
05-17-2008, 04:46 PM
PROBLEM SOLVED. . . kind of.
I managed to do this in another way. If anyone knows what the problem was, I am still interested in finding out.