I\'m going to get parameter form AJAX request in Django, Here\'s what I\'m doing:
base.html:
Prevent the form from submitting with "e.preventDefault()". Also, it's probably better to bind to the form just in-case the user hits Enter instead of clicking:
base.html
main.js
$(document).ready(function(){
$("#register").live("submit", function(e){
$.post("/", {
name: "MY TEXT",
});
e.preventDefault();
});
});