Random Machine!
Explanation
In this example we will create a random number on the python side of the server, and we will send it to the #result element.
ajax.py
import random
from dajax.core import Dajax
from dajaxice.decorators import dajaxice_register
@dajaxice_register
def randomize(request):
dajax = Dajax()
dajax.assign('#result','value',random.randint(1, 10))
return dajax.json()

Examples
Download
Documentation
Bugs