Ciao.
Ho uno strano problema con un codice ASP misto a javascript.
In sostanza devo far blinkare un'immagine quando per un determinato codice estratto da una query il numero delle righe negli ultimi 3 mesi è superiore a tre.
Non ho errori, ma nel browser blinka soltanto la prima riga della tabella dove pubblico i codici, pur avendo altre righe di numero superiori a tre queste rimangono fisse.
Perchè?
Cosa sbaglio?
Grazie
codice:... oRs.movefirst() do while not oRs.eof SQL = " SELECT COUNT(*) AS quanti_Last_three_months FROM tbl_2 " SQL = SQL & "WHERE " SQL = SQL & "CODICE = '" & oRs("CODICE") & "' " SQL = SQL & "AND `DATA` BETWEEN DATE_SUB(CURDATE(), INTERVAL 90 DAY) " SQL = SQL & "AND CURDATE() " SQL = SQL & "ORDER BY " SQL = SQL & "quanti_Last_three_months DESC; " Set oRsX = Server.CreateObject("ADODB.Recordset") oRsX.Open SQL, cn if not oRsX.eof then Response.Write "<td align=center>" If cInt(oRsX("quanti_Last_three_months")) > 3 then %> [img]/images/alert.png[/img] <% Else Response.Write "[img]/images/n_alert.png[/img]" End If oRsX.Close() Set oRsX = Nothing oRs.movenext() Loop ... <script type="text/javascript"> function TextBlinker() { pymtDue = document.getElementById('tblRow1'); pymtDue.style.visibility=(pymtDue.style.visibility =='visible') ?'hidden':'visible'; } </script>

Rispondi quotando
