> I've managed to get BlockUI working in conjunction with a page on my > site that uploads files. However, the way I've done it works off the > window.onbeforeunload event, so it is displayed on every single click > or navigation on the page. > > How can I force it to display only with the upload button click? > > (Site address ishttp://www.ka72.comand I am a total jquery newbie, > so speak slowly and be gentle with me!) > Dylan.
Have you tried just binding the click event on your upload button? $('#myUploadButton').click(function() { $.blockUI(); ... });