Multiply Machine!
x =Explanation
In this example we will multiply the numbers on the inputs and we will display the result on the #result element, just by clicking on the button.
ajax.py
from dajax.core import Dajax
from dajaxice.decorators import dajaxice_register
@dajaxice_register
def multiply(request, a, b):
dajax = Dajax()
result = int(a) * int(b)
dajax.assign('#result','value',str(result))
return dajax.json()
html
x =
JS
function calculate(){
Dajaxice.examples.multiply(Dajax.process,{'a':$('a').value,'b':$('b').value})
}

Examples
Download
Documentation
Bugs