i am learning python with GAE and for interface use jquery so i want to know calling python function using jquery.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
jQuery runs in the browser, operates on the DOM tree and gets data from servers mostly through asynchronous HTTP requests. Python runs on the backend – in case of GAE on Google’s infrastructure. So the way to call functions on the server from the client is by making requests.
All you need for this to work is something on the server responding to a GET request to
ajax/test.html– be it a static file or a Python function (e.g. a RequestHandler), which handles the request and returns some data.