Posted on: 7/15/2013 10:35:11 PM | Views : 230

How can I delay my modal popup extender and loading panel from showing up for 2 seconds? Basically if the post back takes more than 2 seconds, I want to show the modalpopup and loading panel. If it's less than that, show nothing. Is this possible? Below is my Javascript code:
function pageLoad(sender, args) { var sm = Sys.WebForms.PageRequestManager.getInstance(); if (!sm.get_isInAsyncPostBack()) { sm.add_beginRequest(onBeginRequest); sm.add_endRequest(onRequestDone); } if (sm.get_isInAsyncPostBack()) { document.getElementById("form1").reset() } } function onBeginRequest(sender, args) { var send = args.get_postBackElement().value; if (displayWait(send) == "yes") { $find('PleaseWaitPopup').show(); } } function onReques ...

Go to the complete details ...