salve a tutti qualche settimana fa criric mi ha scritto questo script:
Come faccio a farlo eseguire su browsers differenti da ie?
Codice:
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<script type="text/javascript">
$.get('bancadati.txt', function(file) {
var riga = file.split("\n");
$.each(riga, function(elem) {
var color = parseInt(riga[elem]) > 50 ? "red": "blue";
var tr = "<tr>";
tr += "<td style='color:" + color + "'>";
tr += riga[elem];
tr += "</td>";
tr += "</tr>";
$('#table').append(tr);
});
});
</script>
</head>
<body>
<table id="table"></table>
</body>
</html>
Come faccio a farlo eseguire su browsers differenti da ie?