javascript - Storing form action URLs in a checkbox's value and making an AJAX request using that URL results in an inexplicable failure -


so, have flask app. right now, i'm trying make column of checkboxes on html table. when click "delete selected" button, it'll delete entries doing this:

iterate through table , checked checkboxes.

the value of checkbox url make request delete row.

i make ajax request url taken value of checkbox. url in format /item_type/id id number. type of ajax request delete. each checked check box, make delete request url.

though, fails when make these requests. don't know how status code http request. app's logs aren't showing 3xx, 4xx, or 5xx errors related url.

however, if have alert before first request, succeed. though, if have single row checked, single request fail.

after looking @ network tab, none of requests complete because reload page after making request. making page reload after request completed succeeds.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -