All Questions
1,251
questions
-1
votes
0
answers
26
views
Want to auto-reload http request data and update the data on the html without reloading the whole web page
I'm writing a Flask application that takes user input (supposed 'name') using the html form. On the other hand, I have a function that makes http requests to a webpage and return the results (supposed ...
0
votes
0
answers
33
views
I wish to first submit a post request and move to different page in flask
Requirement:
There is form in my html page where we can upload files and post them. After posting the files I wish to save it in the backend and then proceed to the next page of my application in a ...
0
votes
0
answers
56
views
405 Method Not Allowed Error on POST Request to Flask Endpoint
I'm encountering a 405 Method Not Allowed error when making a POST request to the /generate endpoint in my Flask application. I've ensured that the endpoint is configured to handle POST requests, but ...
0
votes
0
answers
39
views
Bootstrap 5 Collapse not Closing After Loading Content with AJAX
I am trying to create a collapsible form using Bootstrap 5's collapse feature. Initially, the collapse functionality worked correctly, but after dynamically loading HTML content into the collapse ...
1
vote
0
answers
32
views
Flask route with send_file function called via ajax-request
My problem is almost exactly like in this unsolved quastion.
Downloading starts properly, if route function was called directly:
HTML
<button type="button" onclick="window.location....
0
votes
0
answers
29
views
Ajax requests interfering with video stream function in Flask despite multithreading
I'm designing a web application. One of the main functions annotates frames from a webcam stream with the landmarks of different parts of the body (using Mediapipe). It then calculates the angle ...
0
votes
0
answers
22
views
How can i send a post request before the flask directory is executed
I have a webpage where i want to send a variable 'Email' to my flask script with ajax at an onload function, but the flask script executes before the javascript does, so the flask essentialy receives ...
0
votes
0
answers
21
views
Flask + JS, Flash function doesn't work in real time after the POST action but need a refresh to be showed
Why when i use Flask + JS - Ajax the Flask return Flash doesn't work? I have to update the page to show the Flash message after the POST operation
I have this html
{% for p in cliente.pratiche %}
...
0
votes
0
answers
18
views
Issue with automatically update images using Flask, AJAX in html
I need to automatically update the images in every 10 seconds on web interface. But my current codes only update the images one time after initiate the program, otherwise I have to refresh or press ...
0
votes
0
answers
22
views
How to access variable to pass through url_for() as src in Flask App
I am currently working on a web app, in which users upload files, a ML algorithm is applied, and I want to add the functionality to view the images they originally uploaded in a Bootstrap Modal. I'm ...
0
votes
1
answer
37
views
How to resolve CORS issue when making AJAX requests to a Flask server from a frontend?
I'm developing a web application using Flask for the backend and JavaScript for the frontend. However, I am facing issues with CORS policy when trying to make AJAX requests from my frontend to the ...
0
votes
0
answers
16
views
how session data is transferred via ajax request in Flask(Python)
Flask and Ajax request question
Please tell me, otherwise I don't understand, when I send an ajax request to my Flask server, when I try to output data from the session, it shows me my session?
An ...
0
votes
1
answer
37
views
upload image using flask and ajx (alwys empty form data)
i am new in Flask and try to upload images using ajax and form data and I always get form data sent as empty filed and my function always gets stuck in a validation error as filed is required even i ...
0
votes
0
answers
35
views
how to upload images using flask and AJAX
I am new to Flask and I have an easy question
how to upload images using ajax in Flask, I tried the below code and it seems that the form data is empty and always stuck on response with the message &...
0
votes
0
answers
32
views
Is it possible to pass data to AJAX without a call?
I am using a combination of Flask and AJAX to make a sortable table (like the example here). However, instead of making an API call, I am already returning a list of dicts, and I would like to use ...