Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

109
Visualizações
Javascript received JSON

I have this primitive HTML table -

table

I need to send JSON from python, such as {"string":"1B"} or {"string":"3A"} etc... which will trigger JS which will change background colour of the corresponding table cell. What's the best approach? I'm sure I would be able to do it if pointed right direction.

First I need to create a JS webserver? I have experience with Flask & Python, but not sure how to do it here. Node.js or something?

Thanks

HTML:

<html>
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<table sty>
  <tr>
    <th>1</th>
    <th>2</th>
    <th>3</th>
  </tr>
  <tr>
    <td>A</td>
    <td>A</td>
    <td>A</td>
  </tr>
  <tr>
    <td bgcolor="orange">B</td>
    <td>B</td>
    <td>B</td>
  </tr>
</table>
</body>
</html>

CSS:

table, th, td {
  border: 1px solid black;
  border-collapse: collapse;
  width: 150px;
  text-align: center;
}
about 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda