You can achieved that by using javascript or jquery. But personally I
prefer jquery so I'll illustrate with a jquery example.

# in your template

<script type="text/javascript">
funcion submitForm(){
$.ajax({
url: "some url",
type: "POST",
data: $("#myform").serialize(),
success: function(){//do magic}
});
</script>

<form id="myform" action="#" method="whatever">
<input name="whatever" value="iwhlihvkhvj">
<!--more fields, could input/select/radio etc etc-->
<label onClick="">Submit</label>
</form>

Note however that the form is submitted asynchronously ($.ajax())

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to