-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
auto submit once queue has finished processing #7
Comments
Have you tried listening for the "preview" event? Or perhaps the progress? Here's the default function handle for that: https://github.com/tmaiaroto/agile_uploader/blob/master/bin/agile-uploader-3.0.js#L174 All events are handled by this function: Set here in the configuration: https://github.com/tmaiaroto/agile_uploader/blob/master/bin/agile-uploader-3.0.js#L372 So if you set your own, and use the existing methods for everything else and for progress or preview, simply make your own. You can then at >= 100 for encoding progress or on preview, submit the form automatically. Here's where the ActionScript is calling that event handler with the event names and any related data for progress and preview: https://github.com/tmaiaroto/agile_uploader/blob/master/src/Main.as#L429 You are also free to build your own JavaScript code or jQuery plugin (or modify the one I have in the repo) to work with the swf. |
Thanks for the reply, however.. I am using a heavily changed version of the original v3 script hosted at shift8. //
//EXTERNAL SCRIPT// function fsub(){ document.getElementById('agileUploaderSWF').submit(); } /////////////////////////////////// How can I get this ti execute ONLY when the list has been processed ready to upload? Your thoughts appreciated Keith From: Tom Maiaroto [mailto:notifications@github.com] Have you tried listening for the "preview" event? Or perhaps the progress? Here's the default function handle for that: https://github.com/tmaiaroto/agile_uploader/blob/master/bin/agile-uploader-3.0.js#L174 All events are handled by this function: Set here in the configuration: https://github.com/tmaiaroto/agile_uploader/blob/master/bin/agile-uploader-3.0.js#L372 So if you set your own, and use the existing methods for everything else and for progress or preview, simply make your own. You can then at >= 100 for encoding progress or on preview, submit the form automatically. Here's where the ActionScript is calling that event handler with the event names and any related data for progress and preview: https://github.com/tmaiaroto/agile_uploader/blob/master/src/Main.as#L429 You are also free to build your own JavaScript code or jQuery plugin (or modify the one I have in the repo) to work with the swf. — |
Oh, you want to submit multiple files? Each time one is encoded? That's likely going to require some changes to the ActionScript. The uploader was built around a single submit process (after everything was all done - for a single or multiple files) triggered by a human. While we can look at the events and automatically try to submit...When we're dealing with multiple files I don't think there's anything telling it that there's other files still processing or being attached. I assumed you were just trying to auto submit a singe file. You'll likely need to continue with more heavy changes here, sorry. |
Basically I am looking to auto submit the queue once finished image resizing.
I have tried many methods but always get the "The form can not be submitted yet because there are still files being resized. " message...
Any thoughts?
The text was updated successfully, but these errors were encountered: