tags:

views:

131

answers:

3
A: 

have a look at the docs

renton
Thanks but I have looked at it earlier, didn't find what I need.
MMRUser
then have another look behind my link. this is exactly what you are looking for....
renton
A: 

You do just like you did, django views receives a request parameter. The request parameter has a POST "dictionary".

def validate(request):
    print request.POST["validateValue"]
    ...
chromano
Yes we can get request parameters, but in this case it's not a request parameter, I'm searching for a solution that can embed server side script (javascript) in to my view so then I can easily retun json value to the client side.
MMRUser
A: 

This is slightly offtopic, but from my experience it's best to do server side AJAX validation in exactly the same way as regular form validation on submit - this gives exactly the same error messages, if any, by using exactly the same validation code - and therefore provides consistent Hijax-compliant user experience.

Tomasz Zielinski