View: def tryit(request): """ Create a form on the fly with jquery """ if request.POST: try: #if from the new form return something to display there postdic = request.POST['p_data'] return HttpResponse(simplejson.dumps({'response': 'hi '+postdic}), mimetype="application/json") except: pass try: #if from the old form create the new form postdic = request.POST['post_data'] chunk = """

""" return HttpResponse(simplejson.dumps({'response_text':chunk}), mimetype="application/json") except: pass t = loader.get_template('web/tryit.html') c = RequestContext(request,{'request':request}) return HttpResponse(t.render(c))` Template: `{% extends "base.html" %} {% block head %} {% endblock %} {% block centercontent %}
Text:

{% endblock %}