Hai everybody,

I am uisng * valums/file-uploader

i need help in mouseover or mouseup a uploadbutton. after upload a image.

anybody plz help me.

this code no working.

remove this two lines working fine.

$("#btnUploadPlanPicture").hover(function()
                {
             $("#btnUploadPlanPicture").mouseup(function()
                {

anybody plz help me.

$(document).ready(function()
    {
        $("#btnUploadPlanPicture").hover(function()
            {
         $("#btnUploadPlanPicture").mouseup(function()
            {

        var uploader = new qq.FileUploader(
        {

            element: document.getElementById('btnUploadPlanPicture'),

            action: upload_url,
            params: 
            {
                album: album,
                type: 'plan',
                desc: 'plan',
            },

            allowedExtensions: ['jpg','png','gif'],

            onSubmit: function(id,filename)
            {
                imgCount = 0;
                imgList = new Array();
                fnOpenDialog();

            },

            onComplete: function(id, fileName,responseJSON)
            {       

                imgList[imgCount++] = 
                {
                    id              :   responseJSON.id,
                    imagetakendate  :   responseJSON.imagetakendate
                };
                createPlanspaceImage(responseJSON);
                return true;
            },

            onAllComplete: function(status)
            {       
                //sortByTimeTaken();
                //imgGroup();
                //imgGroup();   
                   //alert(fileSizeOption);              
                 if(fileSizeOption =="Random")
                                     {


                                     ArrRandomly();
                                     imgGroup();


                                     }

                          if(fileSizeOption =="TimeTaken")
                                 {

                                sortByTimeTaken();
                                imgGroup();
                                 }
                        if(fileSizeOption =="notarrange")
                                {
                                notArrange();
                                //alert("not arrange");
                                }

            }
            });

        });
        });





    });

Did you test if the mouseUp Listener is being triggered?

Just to make sure, mouseUp is triggered when then user click and let go. Is that what you want?

Another thing, Hover expects two functions. Because Hover is a bind for mouseOver and mouseLeave.

And, if you want mouseUp, you don't need mouseOver.

So, either remove the Hover or change it to MouseOver. I suggest you remove it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.