skip to Main Content

Refreshing table after performing ajax POST request – Jquery ajax

I am doing a POST request from ajax to python flask like below. function humval(val1,val2){ var dict = {"url":$('#url'+val1).val(),"status":val2}; $.ajax({ url: '/testroutez', contentType: 'application/json;charset=UTF-8', data : JSON.stringify(dict), type: 'POST', success: function(response){ alert('success'); console.log(response); }, error: function(error){ alert('error occured'); console.log(error); }…

VIEW QUESTION

Changes on template files inside volume not showing on Flask frontend – Docker

I am using a docker-compose Flask implementation with the following configuration docker-compose: version: '3' services: dashboard: build: context: dashboard/ args: APP_PORT: "8080" container_name: dashboard ports: - "8080:8080" restart: unless-stopped environment: APP_ENV: "prod" APP_DEBUG: "False" APP_PORT: "8080" volumes: - ./dashboard/:/usr/src/app dashboard/Dockerfile:…

VIEW QUESTION
Back To Top
Search