[jQuery] File upload thru Iframe: almost there

[jQuery] File upload thru Iframe: almost there

function upload() {
if (!document.getElementById("upload")) { return false; }
var form = document.getElementById("upload");
$("body").append('<iframe name="results" id="results" src="'
+form.action +'"/>');
form.target = 'results';
form.action = form.action +'/ajax/';
$("#upload").submit(function(){
$("#sbar").load(form.action,function(){
});
});
}
This does upload the file, but problem is timing the update of #sbar
after the upload has been completed. Anyone got any ideas ?
--
Matti Putkonen
matti.putkonen@fi3.fi
www.fi3.fi
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/