Ayuda e php
Publicado por Vane (1 intervención) el 07/02/2017 16:18:44
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
if(IsJsonString(response))
{
var resultado=JSON.parse(response);
resourceTable.rows().every( function () {
var d = resourceTable.row( this ).data();
var resultado2= 0;
var index=resourceTable.row( this ).index();
for(var i=0; i<resultado.data.length; i++)
{
if(d[0]==resultado.data[i].Name)
{
resourceTable
.cell( this, 1 ) // note that you could actually pass in 'this' as the row selector!
.data(ConvertToTime(resultado.data[i].ProductionTime));
SetStyle("HS"+index,resultado.data[i].HorizonShort+"%");
SetStyle("HL"+index,resultado.data[i].HorizonLarge+"%");
}
else if(resultado.data.length == resultado2) {
var index=resourceTable.row( this ).index();
resourceTable==resultado
.cell( this, 1 ) // note that you could actually pass in 'this' as the row selector!
.data(ConvertToTime(resultado.data[i].ProductionTime));
SetStyle("HS"+index,resultado.data[i].HorizonShort+"%");
SetStyle("HL"+index,resultado.data[i].HorizonLarge+"%");
}
}
tengo esto necesito que se valide para cuando la carga me sale 0%
Valora esta pregunta


-3