Re: 0 i am trying to upload a file to django server backend.i added a progress bar by using javascript,xhr and ajax method also i added a cancel button to cancel the upload the progress bar is working

2023-11-08 Thread 2JR19CS041_Danish
cancel.addEventListener('click',(xhr.abort)); it should be callback function try this: cancel.addEventListener('click', function(e){ xhr.abort() }) On Monday, 30 October 2023 at 21:10:03 UTC+5:30 Gokul G.M wrote: > > > > > > Document > https://stackpath.bootstrapcd

0 i am trying to upload a file to django server backend.i added a progress bar by using javascript,xhr and ajax method also i added a cancel button to cancel the upload the progress bar is working pr

2023-10-30 Thread Gokul G.M
Document https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"; integrity= "sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous"> https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"