Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

105
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!