PHP - Ayuda e php

 
Vista:

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
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
-3
Responder
Imágen de perfil de Alejandro
Val: 1.634
Plata
Ha mantenido su posición en PHP (en relación al último mes)
Gráfica de PHP

Ayuda e php

Publicado por Alejandro (840 intervenciones) el 08/02/2017 22:46:28
  • Alejandro se encuentra ahora conectado en el
  • chat de PHP
Eso es javascript y este es el foro de php
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar