Hi,
I am beginner in django and dajax. In the process of learning to use dajax I am trying to simply display an alert saying "Foo".
The above code contains 2 input boxes. The first one works but second one says "Dajax is not defined".
I am not able to figure out what is the issue.
I tried making the above code using http://www.dajaxproject.com/multiply/ .In that, Dajax.process is send as parameter to function. Where is the documentation for that particular thing?
It would be great if I could get a prompt reply as my project is on hold due to this AJAX stuff. Thanks.
My ajax.py looks like:
def showalert(request):
dajax = Dajax()
dajax.alert("foo")
return dajax.json()
And relevant template code is
function alertshow(){
Dajaxice.example.showalert(Dajax.process)
}
<input type="button" name="rand" value="Show alert!" id="rand" onclick="alertshow()">
--
Regards,
Abhijeet Rastogi (shadyabhi)
http://www.google.com/profiles/abhijeet.1989
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment