How correctly define syntax for the event in templates? I want that all text in the text area would be send to the python function "search2" after i paste text or click mouse. After making changes the text has to be pasted back to the same form.
Is it possible with python or i need java script? Bellow is view.py and diction.html which do not work, i.e. line: " print "search2", search2, query " do not print in terminal words which i pasted to the text area. ##diction.html <form action="/search2" method="GET"> <textarea rows="10" cols="30" name = "t" value ="t" onchange='/search2'> </textarea> </form> ##views.py def search2(request): query = request.GET.get('Lpasted', '') print "search2", search2, query t=get_template(Tdiction.html) html=t.render( Context({'Lpasted':sentenc}) ) return HttpResponse(html) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.