vi posto il seguente codice, non sto li a spiegare cosa fa, io vorrei semplicemente capire xke sotto mozilla va e sotto IE no![]()
l'errore explorer lo da quando tento di modificare il contenuto di un tag tramite la proprietà innerHTML....codice:var domande = new Array(); var attivo = -1; var tpl = new Array(); function addQuestion() { var type = ""; var obj = document.getElementById('type'); type = obj.selectedIndex; domande[domande.length] = tpl[type]; reloadTable(domande.length - 1); } function reloadTable(active) { var obj = document.getElementById('questionList'); // salva schermata corrente if(attivo != -1) domande[attivo] = document.getElementById('insertArea').innerHTML; // resetta menu obj.innerHTML = ""; for(i = 0; i < domande.length; i++) { if(i != active) obj.innerHTML += '<tr> <td width="97" height="21" align="center" background="img/scheda-normal.gif">Domanda ' + (i + 1) + '</td> </tr>'; else obj.innerHTML += '<tr> <td width="97" height="21" align="center" background="img/scheda-hover.gif">Domanda ' + (i + 1) + '</td> </tr>'; } document.getElementById('insertArea').innerHTML = domande[active]; attivo = active; }
help!!