Récurvisité et arguments.

Discussion dans 'Développement d'un site Web ou d'une appli mobile' créé par ortolojf, 8 Février 2020.

  1. ortolojf
    ortolojf WRInaute accro
    Inscrit:
    14 Août 2002
    Messages:
    2 993
    J'aime reçus:
    12
    Bonjour

    Je vais mettre le building des tables de ma PẄA ( quasiment pas esquissée ), dans une fonction éventuellement récursive.

    Le problème, est la longueur de l'argument JSON.stringify(array_arg).

    La profondeur des indices est limitée ( pour une table ), est environ 4 : Table, THead+ TBody, TRow, TCell + contenu d'une cell.

    Mais la longueur de l'argument peut être prohibitive : Tout le contenu d'une Table.

    Celà est-il possible ?

    Merci beaucoup de votre aide.

    Respectueusement.
     
  2. ortolojf
    ortolojf WRInaute accro
    Inscrit:
    14 Août 2002
    Messages:
    2 993
    J'aime reçus:
    12
    Bonjour

    Esquisse array de table :

    Code:
    
       STRUCTURE TABLE
       ***************
      1       => TABLE        => elem_pattern('table')
      2       => THEAD        => NONE
      2       => TBODY        => NONE
      3       => ROW          => NONE
      4       => ARRAY CELL   => NONE
      5       => CELL         => ?
      6       => CELL CONTENT => (ELEMENT | TEXT_NODE)
                            
    ['table',
         ['thead',                                    
                ['tr', elem_pattern('th')], ['tr', elem_pattern('th')], ...]                
                ],
         ['tbody',                                      
                ['tr', elem_pattern('td')],['tr', elem_pattern('td')], ...]                    
                ],
          ]
    ]
    
    ELEMENT + ATTRIBUTS
    *******************
                            
          elem_pattern(elem) = [elem, [attr1, attr2, ...], [value1, value2, ...]]
                            
         elem : 'table' | 'th' | 'td'
    
    
     
  3. ortolojf
    ortolojf WRInaute accro
    Inscrit:
    14 Août 2002
    Messages:
    2 993
    J'aime reçus:
    12
    Voilà voilà

    Table en array :

    Structure :

    ['table',
    ['thead',
    ['tr',
    [[elem1, ['atttrs,... ], [values, ...], elem2, [attrs,...], [values, ...], ...]
    ],
    ['tbody',
    ['tr',
    [[elem1, [attrs, ...], [values, ...], elem2, [attrs, ...], [values, ...], ...]
    ],
    ['tr',
    ....
    ],
    ...
    ]
    ]

    Je dois encore enlever les apostrophes de la date.

    Amicalement.


    Code:
    
    ['table', ['thead', ['tr', [['th', ['colSpan', 'class'], ['4', 'lowcentercellext'], 'TEXT_NODE', ['TEXT'], ['Paris Gagnés du "Jeudi 6 Février 2020"']]]], ['tr', [['th', ['class'], ['lowcentercellext'], 'TEXT_NODE', ['TEXT'], ['Paris Gagnés']],['th', ['class'], ['lowcentercellext'], 'TEXT_NODE', ['TEXT'], ['Courses']],['th', ['class'], ['lowcentercellext'], 'TEXT_NODE', ['TEXT'], ['Mises']],['th', ['class'], ['lowcentercellext'], 'TEXT_NODE', ['TEXT'], ['Gains']]]]], ['tbody', ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Simple Gagnant en 1 Cheval']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R6C5', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060605.html'], 'TEXT_NODE', ['TEXT'], ['R6C5']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['9,30 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Simple Placé en 1 Cheval']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R6C5', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060605.html'], 'TEXT_NODE', ['TEXT'], ['R6C5']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['3,20 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Multi en 7 Chevaux']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R4C8', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060408.html'], 'TEXT_NODE', ['TEXT'], ['R4C8']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['3,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,80 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Simple Gagnant en 1 Cheval']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R4C7', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060407.html'], 'TEXT_NODE', ['TEXT'], ['R4C7']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['37,70 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Simple Placé en 1 Cheval']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R4C7', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060407.html'], 'TEXT_NODE', ['TEXT'], ['R4C7']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['5,80 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Couplé Placé Mode Réduit 1 Base + 4 Suppl.']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R4C6', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060406.html'], 'TEXT_NODE', ['TEXT'], ['R4C6']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['4,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['23,30 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Simple Placé en 1 Cheval']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R4C6', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060406.html'], 'TEXT_NODE', ['TEXT'], ['R4C6']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['2,40 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Simple Gagnant en 1 Cheval']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R4C4', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060404.html'], 'TEXT_NODE', ['TEXT'], ['R4C4']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['2,90 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Simple Placé en 1 Cheval']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R4C4', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060404.html'], 'TEXT_NODE', ['TEXT'], ['R4C4']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,70 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Multi en 6 Chevaux']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R4C3', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060403.html'], 'TEXT_NODE', ['TEXT'], ['R4C3']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['3,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['73,50 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Multi en 7 Chevaux']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R4C3', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060403.html'], 'TEXT_NODE', ['TEXT'], ['R4C3']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['3,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['31,50 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Couplé Gagnant Mode Réduit 1 Base + 4 Suppl.']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R4C3', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060403.html'], 'TEXT_NODE', ['TEXT'], ['R4C3']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['4,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['84,10 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Couplé Placé Mode Réduit 1 Base + 4 Suppl.']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R4C3', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060403.html'], 'TEXT_NODE', ['TEXT'], ['R4C3']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['4,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['35,60 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Simple Gagnant en 1 Cheval']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R4C3', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060403.html'], 'TEXT_NODE', ['TEXT'], ['R4C3']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['6,00 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Simple Placé en 1 Cheval']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R4C3', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060403.html'], 'TEXT_NODE', ['TEXT'], ['R4C3']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['2,40 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Deux sur Quatre en 2 Chevaux']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R4C1', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060401.html'], 'TEXT_NODE', ['TEXT'], ['R4C1']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['3,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['3,50 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Couplé Placé Mode Réduit 1 Base + 4 Suppl.']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R4C1', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060401.html'], 'TEXT_NODE', ['TEXT'], ['R4C1']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['4,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['10,40 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Simple Gagnant en 1 Cheval']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R4C1', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060401.html'], 'TEXT_NODE', ['TEXT'], ['R4C1']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['2,70 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Simple Placé en 1 Cheval']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R4C1', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060401.html'], 'TEXT_NODE', ['TEXT'], ['R4C1']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,60 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Deux sur Quatre en 2 Chevaux']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R3C8', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060308.html'], 'TEXT_NODE', ['TEXT'], ['R3C8']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['3,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['2,10 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Multi en 6 Chevaux']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R3C8', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060308.html'], 'TEXT_NODE', ['TEXT'], ['R3C8']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['3,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['4,20 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Multi en 7 Chevaux']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R3C8', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060308.html'], 'TEXT_NODE', ['TEXT'], ['R3C8']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['3,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,80 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Couplé Gagnant Mode Réduit 1 Base + 4 Suppl.']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R3C8', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060308.html'], 'TEXT_NODE', ['TEXT'], ['R3C8']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['4,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['12,60 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Couplé Placé Mode Réduit 1 Base + 4 Suppl.']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R3C8', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060308.html'], 'TEXT_NODE', ['TEXT'], ['R3C8']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['4,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['9,50 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Simple Placé en 1 Cheval']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R3C8', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060308.html'], 'TEXT_NODE', ['TEXT'], ['R3C8']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['2,00 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Deux sur Quatre en 2 Chevaux']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R3C7', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060307.html'], 'TEXT_NODE', ['TEXT'], ['R3C7']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['3,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['2,30 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Couplé Gagnant Mode Réduit 1 Base + 4 Suppl.']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R3C7', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060307.html'], 'TEXT_NODE', ['TEXT'], ['R3C7']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['4,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['6,40 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Couplé Placé Mode Réduit 1 Base + 4 Suppl.']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R3C7', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060307.html'], 'TEXT_NODE', ['TEXT'], ['R3C7']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['4,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['3,80 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Simple Gagnant en 1 Cheval']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R3C7', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060307.html'], 'TEXT_NODE', ['TEXT'], ['R3C7']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['3,40 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Simple Placé en 1 Cheval']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R3C7', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060307.html'], 'TEXT_NODE', ['TEXT'], ['R3C7']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,60 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Couplé Gagnant Mode Réduit 1 Base + 4 Suppl.']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R3C5', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060305.html'], 'TEXT_NODE', ['TEXT'], ['R3C5']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['4,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['31,10 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Couplé Placé Mode Réduit 1 Base + 4 Suppl.']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R3C5', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060305.html'], 'TEXT_NODE', ['TEXT'], ['R3C5']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['4,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['11,00 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Simple Placé en 1 Cheval']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R3C5', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060305.html'], 'TEXT_NODE', ['TEXT'], ['R3C5']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['3,50 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Simple Gagnant en 1 Cheval']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R3C1', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060301.html'], 'TEXT_NODE', ['TEXT'], ['R3C1']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['9,10 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Simple Placé en 1 Cheval']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R3C1', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060301.html'], 'TEXT_NODE', ['TEXT'], ['R3C1']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['2,40 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Couplé Gagnant Mode Réduit 1 Base + 4 Suppl.']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R2C4', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060204.html'], 'TEXT_NODE', ['TEXT'], ['R2C4']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['4,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['49,70 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Couplé Placé Mode Réduit 1 Base + 4 Suppl.']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R2C4', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060204.html'], 'TEXT_NODE', ['TEXT'], ['R2C4']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['4,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['14,00 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Simple Placé en 1 Cheval']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R2C4', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060204.html'], 'TEXT_NODE', ['TEXT'], ['R2C4']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['4,60 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Couplé Placé Mode Réduit 1 Base + 4 Suppl.']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R2C3', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060203.html'], 'TEXT_NODE', ['TEXT'], ['R2C3']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['4,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['7,40 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Simple Placé en 1 Cheval']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R2C3', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060203.html'], 'TEXT_NODE', ['TEXT'], ['R2C3']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,90 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Mini Multi en 6 Chevaux']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R2C3', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060203.html'], 'TEXT_NODE', ['TEXT'], ['R2C3']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['3,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['5,10 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Simple Gagnant en 1 Cheval']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R2C1', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060201.html'], 'TEXT_NODE', ['TEXT'], ['R2C1']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['2,50 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Simple Placé en 1 Cheval']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R2C1', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060201.html'], 'TEXT_NODE', ['TEXT'], ['R2C1']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,40 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Deux sur Quatre en 2 Chevaux']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R1C7', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060107.html'], 'TEXT_NODE', ['TEXT'], ['R1C7']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['3,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['2,50 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Couplé Placé Mode Réduit 1 Base + 4 Suppl.']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R1C7', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060107.html'], 'TEXT_NODE', ['TEXT'], ['R1C7']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['4,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['2,20 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Simple Placé en 1 Cheval']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R1C7', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060107.html'], 'TEXT_NODE', ['TEXT'], ['R1C7']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,20 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Deux sur Quatre en 2 Chevaux']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R1C6', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060106.html'], 'TEXT_NODE', ['TEXT'], ['R1C6']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['3,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['2,50 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Couplé Placé Mode Réduit 1 Base + 4 Suppl.']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R1C6', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060106.html'], 'TEXT_NODE', ['TEXT'], ['R1C6']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['4,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['7,30 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Simple Placé en 1 Cheval']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R1C6', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060106.html'], 'TEXT_NODE', ['TEXT'], ['R1C6']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['3,00 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Couplé Gagnant Mode Réduit 1 Base + 4 Suppl.']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R1C2', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060102.html'], 'TEXT_NODE', ['TEXT'], ['R1C2']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['4,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['7,30 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Couplé Placé Mode Réduit 1 Base + 4 Suppl.']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R1C2', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060102.html'], 'TEXT_NODE', ['TEXT'], ['R1C2']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['4,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['5,50 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Simple Gagnant en 1 Cheval']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R1C2', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060102.html'], 'TEXT_NODE', ['TEXT'], ['R1C2']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['3,90 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Simple Placé en 1 Cheval']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R1C2', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060102.html'], 'TEXT_NODE', ['TEXT'], ['R1C2']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,50 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Quinté Bonus4sur5 : (4 x Bonus4sur5)
     (3 x Bonus3) en 8 Chevaux']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R1C1', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060101.html'], 'TEXT_NODE', ['TEXT'], ['R1C1']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['112,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,10 €']]]], ['tr', [['td', [''], [''], 'TEXT_NODE', ['TEXT'], [' Quinté Bonus4sur5 : (5 x Bonus4sur5)
     (5 x Bonus3) en 9 Chevaux']],['td', ['class'], ['lowcentercellext'], 'a', ['class', 'title', 'href'], ['col_gains', 'R1C1', 'http://localhost/php/courses_anciennes/pronostics_new_old_courses,2002060101.html'], 'TEXT_NODE', ['TEXT'], ['R1C1']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['252,00 €']],['td', [''], [''], 'TEXT_NODE', ['TEXT'], ['1,10 €']]]]]]
    
    
     
    #3 ortolojf, 8 Février 2020
    Dernière édition: 8 Février 2020
  4. ortolojf
    ortolojf WRInaute accro
    Inscrit:
    14 Août 2002
    Messages:
    2 993
    J'aime reçus:
    12
    Rebonjour

    J'ai une simple question :

    Comment remplacer une variable par sa valeur ?

    Par exemple :

    Code:
    
      var table = document.createElement('table');
    
      var attr = 'borderSpacing';
      var attr_value = '1px';
    
      // Comment ?
       table.attr = attr_value;
    
    
    
    Merci beaucoup de votre aide.

    Amicalement.
     
  5. ortolojf
    ortolojf WRInaute accro
    Inscrit:
    14 Août 2002
    Messages:
    2 993
    J'aime reçus:
    12
    Bonjour

    Je vous demande pardon pour ma question en Javascript :

    Comment alimenter le texte d'une balise "<a href='url'>texte</a>" ?

    Merci beaucoup.

    J'ai déjà la table HTML faite en javascript avec une chaîne JSON.

    Respectueusement.
     
Chargement...
Similar Threads - Récurvisité arguments Forum Date
Redirect 301 avec arguments URL Rewriting et .htaccess 20 Février 2018
Arguments pour convertir une personne aux DIV et SPAN au lieu de TABLE Développement d'un site Web ou d'une appli mobile 11 Mai 2011
  1. Ce site utilise des cookies. En continuant à utiliser ce site, vous acceptez l'utilisation des cookies.
    Rejeter la notice