I am using page mask java script function suggested by wicket wiki site. http://www.nabble.com/generalized-way-to-ignore-mouse-input-during-screen-refresh--td21379945.html#a21381260
here is the java script <script type="text/javascript"> window.onload = setupFunc; var busySymbol; function setupFunc() { document.getElementsByTagName('body')[0].onclick = clickFunc; hideBusysign(); Wicket.Ajax.registerPreCallHandler(showBusysign); Wicket.Ajax.registerPostCallHandler(hideBusysign); Wicket.Ajax.registerFailureHandler(hideBusysign); } function hideBusysign() { if (busySymbol != null) { busySymbol.parentNode.removeChild(busySymbol); busySymbol = null; } } function showBusysign() { if (!document.getElementById('busy-symbol')) { busySymbol = document.createElement('div'); busySymbol.id = 'busy-symbol'; var pageHeight; if ((window.innerHeight != null) && (window.scrollMaxY != null)) { // Firefox pageHeight = window.innerHeight + window.scrollMaxY; } else if (document.body.scrollHeight > document.body.offsetHeight) { // all but Explorer Mac pageHeight = document.body.scrollHeight; } else if (document.height != undefined) { pageHeight = document.height; } else { // works in Explorer 6 Strict, Mozilla (not FF) and Safari pageHeight = document.body.offsetHeight + document.body.offsetTop; } { var busyLabel = document.createElement('div'); busyLabel.innerHTML = 'Loading ...'; busySymbol.appendChild(busyLabel); } document.body.appendChild(busySymbol); busySymbol.style.height = pageHeight + 'px'; } } function clickFunc(eventData) { var clickedElement = (window.event) ? event.srcElement : eventData.target; if ((clickedElement.tagName.toUpperCase() == 'A' && (clickedElement.href.lastIndexOf('#') != (clickedElement.href.length-1)) && (clickedElement.href.indexOf('WicketAjaxDebug') < 0) && (clickedElement.href.lastIndexOf('.doc') != (clickedElement.href.length-4)) && (clickedElement.href.lastIndexOf('.csv') != (clickedElement.href.length-4)) && (clickedElement.href.lastIndexOf('.xls') != (clickedElement.href.length-4)) && ((clickedElement.onclick == null) || (clickedElement.onclick.toString().indexOf('window.open') <= 0)) ) || (clickedElement.parentNode.tagName.toUpperCase() == 'A' && (clickedElement.parentNode.href.lastIndexOf('#') != (clickedElement.parentNode.href.length-1)) && (clickedElement.parentNode.href.lastIndexOf('.doc') != (clickedElement.parentNode.href.length-4)) && (clickedElement.parentNode.href.lastIndexOf('.csv') != (clickedElement.parentNode.href.length-4)) && (clickedElement.parentNode.href.lastIndexOf('.xls') != (clickedElement.parentNode.href.length-4)) && ((clickedElement.parentNode.onclick == null) || (clickedElement.parentNode.onclick.toString().indexOf('window.open') <= 0)) ) || ( ((clickedElement.onclick == null) || ((clickedElement.onclick.toString().indexOf('window') <= 0) && (clickedElement.onclick.toString().indexOf('confirm') <= 0))) && ((clickedElement.tagName.toUpperCase() == 'INPUT' || clickedElement.tagName.toUpperCase() == 'BUTTON') && (clickedElement.type.toUpperCase() == 'BUTTON' || clickedElement.type.toUpperCase() == 'IMAGE' || clickedElement.type.toUpperCase() == 'SUBMIT')) ) ) { showBusysign(); } } </script> this works fine. Today I implemented the wicket file download , download works fine but the script as usual loads the loading text, but never turns off in ajax links it works fine but the file download it never stops please help me resolve this. -- View this message in context: http://www.nabble.com/page-mask-and-file-download-tp22686849p22686849.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org