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


Release history Release notifications

History Node

0.3.2

History Node

0.3.1

History Node

0.3.0

This version
History Node

0.2.7

History Node

0.2.6

History Node

0.2.5

History Node

0.2.4

History Node

0.2.3

History Node

0.2.2

History Node

0.2.1

History Node

0.2.0

History Node

0.1.10

History Node

0.1.9

History Node

0.1.8

History Node

0.1.7

History Node

0.1.6

History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
Sijax-0.2.7.tar.gz (50.9 kB) Copy SHA256 hash SHA256 Source None Feb 9, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page