Seeking help with a Javascript POST request that is not an API request (axios or fetch), but an old classical request.
I require a payload such as
...&_selected_action=5&_selected_action=10
.
Using a form submitting technique seems to be impractical in this case.
I can handle a single occurrence like ...&_selected_action=5
successfully (referencing Aquajet @ pass post data with window.location.href), everything functions properly.
However, I am struggling with sending the string for repeated values either manually or using URLSearchParams().toString()
.
Any suggestions on how to proceed?
Additional context: This request needs to be created in a Django+Vue application that replaces certain components of the traditional Django Admin system. The ListView is now being handled by Vue and I aim to reuse actions that require a Post request formatted as described above. While I can accomplish this with a single selected row, handling 2+ selected rows has proven challenging.