When is the AJAX image upload done?

I’m using the typical AJAX image upload setup. I target my form at a hidden iFrame. That iFrame runs runs the PHP, putting the image in the right place. Since this is fake AJAX, I don’t get any onComplete callback. So what’s the best way to check if the iFrame is done with the image processing?