Skip to main content

An easy to use AJAX library based on jQuery.ajax

Project description

Sijax stands for “Simple ajax” and provides just that. It’s a simple Python/jQuery library providing easy ajax integration for python web apps.

The main idea is to use javascript code that calls server-side callbacks, which generate a response (manipulating the DOM, etc) and pass it back to the client. This way, you don’t need to manually dispatch ajax requests to certain URIs and go over each XML/JSON response manually.

Here’s a tiny snippet of code to show what it’s capable of doing:

# Function definition in Python
def say_hello_handler(obj_response, hello_from, hello_to):
    obj_response.alert("Hello from %s to %s" % (hello_from, hello_to))
    obj_response.alert("Redirecting you..")
    obj_response.redirect("https://github.com/spantaleev/sijax-python")

# Expose the above function publicly by the name of "say_hello"
sijax_instance.register_callback("say_hello", say_hello_handler)

//The above function can be called from javascript using
Sijax.request('say_hello', ['John', 'Greg']);

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Sijax-0.1.7.tar.gz (46.5 kB view details)

Uploaded Source

File details

Details for the file Sijax-0.1.7.tar.gz.

File metadata

  • Download URL: Sijax-0.1.7.tar.gz
  • Upload date:
  • Size: 46.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Sijax-0.1.7.tar.gz
Algorithm Hash digest
SHA256 ad1493461d86851df18f1e8e7c0483e72ce9d2d001ea3ed95d4c13e8b0ef4016
MD5 4a8573bb1d2fbc9897dbf03d1c0ccbe7
BLAKE2b-256 103247f91d00161f05f4b123469c56c74852d0e9b901a93a6fac2a60d8d48b1e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page