javascript - concat string IE8 SCRIPT438: Object doesn't support property or method -


i have simple javascript string concatenation:

function stampalista(store) {  lista = "<table ><tr>" +          "<td class='titololista' style='width:80px'>data ins.</td>" +          "<td class='titololista' style='width:130px'>data/ora attività</td>" +          "<td class='titololista' style='width:100px'>tipologia</td>" +          "<td class='titololista' style='width:30px'>stato</td>" +          "<td class='titololista' style='width:150px'>utente ins.</td>" +          "<td class='titololista' style='width:150px'>utente designato</td>" +          "<td class='titololista' style='width:250px'>anagrafica</td>" +          "<td class='titololista' style='width:30px'>vai</td>" +          "</tr>";   (i=0; i<store.length; i++) {       lista += "<tr >" +         "<td class='rigalista'>" + store[i].datains + "</td>" +         "<td class='rigalista'>" + store[i].dataatt + " " + store[i].oraatt + "</td>" +         "<td class='rigalista'>" + store[i].idtipoattivita + "</td>" +         "<td class='rigalista'>" + store[i].stato + "</td>" +         "<td class='rigalista'>" + store[i].utenteins + "</td>" +         "<td class='rigalista'>" + store[i].utenteatt + "</td>" +         "<td class='rigalista'>" + store[i].anagrafica + "</td>" +         "<td class='rigalista'>" + "<div class='go' ><a id='" + store[i].id + "' href='#' class='go' return;><img alt='" + store[i].id + "' src='images/go.gif'  /></a>" + "</div></td>" +         "</tr>";              };  lista += "</table>";                 lista += "<div class='clearfloat'>&nbsp;</div>";  return lista;  } 

but ie8 had error, on both population of "lista":

script438: object doesn't support property or method

the problem solved ie9 need work ie8 due customer requirements.

any ideas ?

thanks lot

fabrizio

because there html mixed javascript make sure there no html element id same id variable in javascript function.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -