Tag archive for jquery

Detect if mouse click is from user or if triggered by code

I was coding a carousel solution for a client and wanted the automatic playback to stop if the user interacted with the image slider. First I thought that I would need some kind of custom solution but seems it was easier than i thought. The…

Continue reading →

Detecting file download and blocking UI

I was working with a nifty “File being processed” dialog on a recent project where we generated a zip-file with chosen files and needed some kind of confirmation that zip had been served to the user. Googled around and found this neat article Detecting file…

Continue reading →