简体   繁体   中英

ajax post for django template

HI all,

I have a problem when i want to submit value then full page again reload. I want to update my table with asynchronous call, that specific information will be loaded but full page not... plz help me aboput this...thanks

Check out the jquery From plugin. Will help you submit a form via ajax and then you can use the data that is sent back and update your table.

http://malsup.com/jquery/form/

something like:

$('#myForm1').ajaxForm({
    target: '#someid'
}); 

That will handle submitting the form via ajax and then what ever gets sent back will replace whatever is in

Should get you started in the right direction.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM