I just spent the better part of an hour trying to figure out how to get the SWFUploader to fire another javascript function after it successfully uploads the files.
I read through the documentation, went through the forums —not very helpful may I add, some of the replies directed people to read the documentation… even though the solution is not very clear there. Eventually I found it, in the code of a poster who was asking for help with a problem unrelated to mine.
You have to create a function:function uploadComplete { //your code }
And assign that function name to the settings of the SWFuploader, like so: upload_complete_handler : uploadComplete,
The problem is that its not quite clear from the documentation that I can a) do that, and b) I won’t fuck up something else. There’s some documentation on uploadComplete, but I assumed it was already a reserved function of the uploader, used internally. And there’s nothing on “upload_complete_handler”.
Of course, maybe I’m just retarded and I don’t quite get javascript as I thought I did.