danielm / uploader

A lightweight and very configurable jQuery plugin for file uploading using ajax(a sync); includes support for queues, progress tracking and drag and drop.
https://danielmg.org/demo/java-script/uploader
MIT License
1.17k stars 384 forks source link

How to update parent div after 'onComplete'? #64

Closed nobutsta closed 6 years ago

nobutsta commented 6 years ago

I have dataTable with ajax content in the parent page. And I upload file with uploader. Then I need to update the table once the upload is complete. So I call with :

    onComplete: function(){
      $(body).find('#pflTable').ajax.reload();//update ajax table
    },

But the script error because 'body is not defined'. Please be advised!

danielm commented 6 years ago

Thats more like a JS syntax error heh. Using JQuery you should use something like $('body')