Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- JavasScript:
- jQuery(document).ready(function(){
- jQuery('#ajax_form').submit(function(){
- var dados = jQuery( this ).serialize();
- $( "#infowind" ).load("writestation/", { csrfmiddlewaretoken: ck,
- data: data,
- });
- return false;
- });
- });
- Django side (views.py):
- def writestation(request):
- if request.method == 'POST':
- form = request.POST.get('dados')
- >> print(form)
- >> id=&name=someName&email=someEmail
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement