Howdy, Stranger!

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

hidde upload button
  • Hi everyone,

    First, sorry for my english :/

    my problem : I want user upload 1 jpg and when file is uploaded, the submit button was hidden ...

    my code :
    $(document).ready(function() {
    $('#upload').fileUpload({
    'uploader': 'include/uploader.swf',
    'script': 'include/upload.php',
    'folder': '/temp',
    'cancelImg': '/images/cancel.png',
    'multi' : false,
    'fileExt' : '*.jpg',
    'buttonText' : 'Envoyer la photo',
    'rollover' : false,
    'auto' : true,
    'onComplete': function(event, queueID, fileObj, response, data) {
    $(\"#upload\").css({display:\"none\",height:\"0\"});
    $(\"#upload2\").append(\"<p>Well Done !\");
    }
    });
    });


    And html :
    		<div id=\"upload\"></div>
    <div id=\"upload2\"></div>


    For onComplete, I try with :
    $("#upload").css({display:"none",height:"0"});
    $("#upload").hide();

    But no result ... the submit button of uploadify is always here ...

    Help me please ... Big Thanks
  • Create your own uploadStart() that your submit button links to. With in this new function hide the button and start the upload queue
  • Hi, and thanks for your reply,

    I found this solution, when upload is complete I hide #uploadUploader :
    'onComplete': function(event, queueID, fileObj, response, data) {
    $(\"#uploadUploader\").hide();
    }


    héhé ... in first, I think the flash button is make in the div call in $('#upload').fileUpload(), but no ...
    the flash code is make after the of #upload ...

    That's work ... Thanks for help ;)
  • Bueno, no entendi lo que dijiste, pero por lo visto encontraste la solucion, me puedes decir donde va ese codigo??? o que cambios tengo que hacer??
    Gracias