jQWidgets Forums

jQuery UI Widgets Forums General Discussions ajaxSend and ajaxComplete Reply To: ajaxSend and ajaxComplete

ajaxSend and ajaxComplete #89160

RedantJ
Participant

I think I found my answer. It’s not pretty but seems to work:


		$("#absLoading").jqxLoader({ isModal: true, width: 100, height: 60, theme: 'berkeley', textPosition: 'center' });

		$("#Confirm1").on({
			mousedown: function (event) {
				$("#setupReport").jqxWindow('close');
				$('#absLoading').jqxLoader('open');
			},
			click: function (event) {
			// Did the user put anything in any of the diplay fields?
			var listBox = $("#dispDetails").jqxListBox('getItems');
			var beanCounter = 0;
			var valProgress;
			if (listBox) {
                               .
                               .
                               .

                               .
                               .
                               .
				$('#absLoading').jqxLoader('close');
			}
		});

I had to change the Z-index of <div id=absLoading> to some high number. The spinning Loader does not animate, but that’s minor.

Basically, I snuck in the jqxLoader using the Mousedown event.