Howdy, Stranger!

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

return true for onAllComplete?
  • I'm trying to chain some behaviors, depending on the uploads success. But even declaring return true onAllComplete i just cannot evaluate the answer. See:

    if ( validar() )
    if ( $('#fotos').uploadifyUpload() )
    if ( $('#video').uploadifyUpload() )
    alert(\"works!\");


    and if i try this, i get undefined:
    alert( $('#fotos').uploadifyUpload() )


    However i'm sure i have success because i print some contents on screen:


    'onAllComplete':function(a,b){

    if (b.filesUploaded == 3 && b.errors == 0) {

    $(\".mensaje\").addClass(\"enviando\").append(\"Fotos subidas exitosamente. Subiendo video.\");
    return true;
    }


    So, how could i return true, and chain my conditionals?
  • Unluckily, the forum has some spam, ands maybe the administrators are not reading the messages?

    I take a look in the .js file, and i read the uploadifyUpload function. It calls startFileUpload method, and i assume that this method is a flash method. I can't deal with flash, so i still wonder if would be possible to return true like i explained above. Hope that can be done. Any clue?

    uploadifyUpload:function(ID) {
    jQuery(this).each(function() {
    document.getElementById(jQuery(this).attr('id') + 'Uploader').startFileUpload(ID, false);
    });
    },