Search code examples
jquerypythonajaxasynchronouscherrypy

How does one do async ajax calls using cherrypy?


I'm using cherrypy's standalone server (cherrypy.quickstart()) and sqlite3 for a database.

I was wondering how one would do ajax/jquery asynchronous calls to the database while using cherrypy?


Solution

  • The same way you would do them using any other webserver - by getting your javascript to call a URL which is handled by the server-side application.