tags:

views:

21

answers:

0

Hi,

How do I print the value (count) of work done? (Now show empty when page just start and i don't wish thaht this.)

<script type="text/javascript">
$(document).ready(function() {
    var count = 0;
    $("#fileInput2").uploadify({
        'uploader'       : 'uploadify.swf',
        'script'         : 'uploadify.php',
        'onComplete'     : function(event,data, fileObj){ count++; alert(count); }      
    });

    if(count > 0)
        alert('full');
    else
        alert('empty'); 
});
</script>