It looks like you're new here. If you want to get involved, click one of these buttons!
Harleycodr said:I have uploadify working nicely with my photo sharing program - uploadify.php talks to my database and all of that - but I'd like it to go back to the main photo management page when it's done, showing the pictures I've uploaded. I have this in the jquery.uploadify.v2.1.0.min.js: onAllComplete:function(){alert('Upload complete!');document.location.href="http://www.mysite.com/thedirectory/thesubdirectory/index.php"";();}
Nothing happens though.
It would be nice if it could refresh the page - tried that also but nothing seems to 'fire' in that upload function. I hope someone can help; I have a feeling the developers of this left a year ago.
'onAllComplete': function(event, data) {
window.location.href=\"http://www.mysite.com/thedirectory/thesubdirectory/index.php\";
}$(\"#fileInput2\").uploadify({
'uploader' : '/_scripts/uploadify.swf',
'script' : '/_scripts/uploadify.php',
'cancelImg' : '/_images/cancel.png',
'folder' : '/_uploads',
'multi' : true,
'onAllComplete': function(event, data) {
window.location.href=\"http://www.mysite.com/thedirectory/thesubdirectory/index.php\";
}
});