简体   繁体   中英

CakePHP 2/Javascript - Ajax Multi Upload - how can I force page load when the upload has finished?

I'm using cakephp 2 alongside the wonderful Ajax Multi Upload plugin (I got it here )

Basically the plugin creates a button which activates a file browser. When you choose a file the file uploads automatically. When that happens a little graphic appears on the page and the name of the file is there, so I know there must be somewhere I can hook into to add more javascript, but I'm new to JS and I haven't a clue where to look.

This is the actual JS file where all the stuff happens..

I don't suppose anyone is familiar enough with this plugin/cake/javascript (and kind enough) to have a look and give me some clues.

I am not sure which actual javascript class you are using, but it looks like the various uploader classes all have _onComplete methods. I would guess this is where you would need to add some custom code to update the form.

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