Skip to content

Flask Javascript AJAX Example Using XMLHttpRequest, Fetch & JQuery.ajax

License

Notifications You must be signed in to change notification settings

phpjsnerd/flask-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript Ajax Example

Codacy Badge

Demonstrates how to post form data and process a JSON response using JavaScript. This allows making requests without navigating away from the page. Demonstrates using XMLHttpRequest, fetch, and jQuery.ajax. See the Flask docs about jQuery and Ajax.

Install

python3 -m venv venv
. venv/bin/activate
pip install -e .

Run

export FLASK_APP=js_example
flask run

Open http://127.0.0.1:5000 in a browser.

Test

pip install -e '.[test]'
coverage run -m pytest
coverage report

About

Flask Javascript AJAX Example Using XMLHttpRequest, Fetch & JQuery.ajax

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published