Home > Software engineering >  refresh global counter value with jquery ajax and flask
refresh global counter value with jquery ajax and flask

Time:02-10

Total counter value changes dynamically as it counts object crossing the line. How can I refresh its value using jquery ajax. PLease help me to

this part is in html template

`<div >
  <h4 id="total_count" >{{total}}</h4>
</div>

@app.route('/')
def index():
"""Video streaming page."""
global counter
return render_template('camera.html', total=counter)

CodePudding user response:

  •  Tags:  
  • Related