In my website, I have a button for join a team.
I try to have this processus :
- Click on this button.
- Ajax send a signal to current template view.
- This view recepts the signal and creates a instance of model Join.
I don't want ajax send arguments via $.POST but just a signal !
I think the solution is :
$.POST("theurl/",{"signal-join":"signal"});
if request.POST["signal-join"] :
create instance of join
But it's not proper, what is the best away ?