loader timer using jQuery dialog
We have a gift and needed a loader display I created a loader js module using jQuery dialog and it's coded to display when ajax calls start and then hide when ajax calls stop. Could make model by setting the dialog modal param to true. var loadingTimer = (function() { var $timer = $('#loadingHopup'), init = function(){ _dialog(); _listeners(); }, show = function() { $timer.dialog("open"); }, hide = function() { $timer.dialog("close"); }, _dialog = function() { $timer.dialog({ create: function (event, ui) { $(".ui-widget-header").hide(); }, open: function() { // allow safari/chrome users to use scrollbar window.setTimeout(function() { $(document).unbind('mousedown.dialog-overlay').unbind('mouseup.dialog-overlay'); }, 100); }, close: function() { }, dialogClass: 'noTitleDialog', height: 200, width: 200, position: '...