Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

help with jquery function onComplete
  • hi there,

    Need some help with a function i use with the uploadify script.
    $(\"#galleryrefresh\").load('/CMS/scripts/updategallery.php', { 'galnaam': '<?php echo \"$_POST[gallerijnaam]\" ?>' })

    this code loads another page where i put the div in the current page.

    The above line should be run after a onComplete again. but after a onComplete it has to refresh only the DIV. hooowwww?! :?

    		'onComplete': {}


    :|
  • I don't understand how your using the jQuery function in the uploadify script. Wouldn't you just put in the onComplete function?

    But taking a stab at what your trying to do, Here's how I would do it:
    If the galleryname is created in the upload script then echo the gallery name at the end of the upload scipt. Then in onComplete do something like
    onComplete: function (event, queueID, fileObj, response, data) {
    (\"#galleryrefresh\").load('/CMS/scripts/updategallery.php', { 'galnaam': response });
    }


    or
    onComplete: function (event, queueID, fileObj, response) {
    $.post('/CMS/scripts/updategallery.php', { 'galnaam': response }, function (data) {
    (\"#galleryrefresh\").empty().append(data);
    });
    }