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

162
Visualizações
Django - Update database value on drag and drop

I am creating TODO app, and I am trying to implemnt drag and drop using JavaScript. I managed to create drag and drop feature but I don't know how to change and save tasks "category" (for example backlog to done) on drop.

Do I need to use JavaScript or is there some Django library that can help me? If JS is necessary, what should I do?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Since your action happens on the client side (in your browser), it means you have to use JavaScript to trigger the database change action.

But JavaScript does not have access to your backend database directly, that's why when you drop your card/task in another category, you want to handle that event and recognize in which category you have landed. (all this with JS)

Then you call your server API, via AJAX and you pass the task id and the new category to your backend side, where you have to update the database with new information.

I hope this was clear.

about 4 years ago · Juan Pablo Isaza Relatório
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