I have a JQuery UI modal:
$('#avatar-manager').click(function () {
$('#dialog').dialog('open');
return false;
});
$('#dialog').dialog({
autoOpen: false,
resizeable: false,
modal: true,
position: 'center',
width: 600,
open: function () {
$(this).load('/a/path/to/my/page.aspx');
}
});
And it works wonderfully. page.aspx (example name) contains my upload functionality for images. What I'd like to do is on completion of the upload, to redirect the user to another modal:
uploader.bind('FileUploaded', function (up, file, obj) {
alert("I've done uploading stuff...");
//redirect to another modal here...
});
I know I can't use windows.location and the like, because that will change the main parent window, so I'm not sure how - or even if I can - do this...