Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/05/2004, 09:24
Avatar de epplestun
epplestun
 
Fecha de Ingreso: octubre-2001
Mensajes: 1.621
Antigüedad: 22 años, 6 meses
Puntos: 5
Porque no funciona bajo IE?

Buenas, es algo extraño, tengo un codigo que funciona correctamente bajo Mozilla pero no funciona sobre Internet Explorer, el codigo es el siguiente:

Código:
win.document.write("<scr"+"ipt>");
	win.document.write("function show() {");
	win.document.write("    string = document.getElementById('p').contentWindow.document.body.innerHTML;");
	win.document.write("    var elements = string.split('\\n');");
	win.document.write("    for(var i = 0; i < elements.length - 1; i++) {");
	win.document.write("    	var info = elements[i].split('|');");
	win.document.write("    	var opt  = new Option(info[1], info[0]);");
	win.document.write("    	eval(document.admin.pictures.options[i] = opt);");
	win.document.write("    }");
	
	win.document.write("    return false;");
	win.document.write("}");
	win.document.write("</scr"+"ipt>");
Lo que deberia de hacer es rellenar un select con las opciones que se le pasan por el bucle, peor no lo hace, que puede haber mal?

gracisa
__________________
Usuario registrado de Linux #288725