September 7th, 2007
-
Hijaxing Form Submission: Writing The View posted by Andrew
Read more...After writing about how to use Mootools to hijax form submission I thought I should follow it up with how to integrate this with the backend code. In this case it's Django, so all of the code is contained in a view which will simply return HTML in response to a regular POST and JSON to a XMLHttpRequest. Below is some sample code which demonstrates the idea:
def contact(request): """Sample view to demonstrate using newforms with both hijaxed ...
