iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
I defined a WebFlyPostBackManager as shown below:
<ISWebDesktop:WebFlyPostBackManager ID="PostBackManager" runat="server"ServiceType="WebForm" AutoEventWireup="true" WebServiceResponseFormat="Json"ShowLoaderOnBusy="True"BlockPageUIOnBusy="True" EnableUIMode="False" TimeoutInterval="10"AutoLoadMetaData="False" LoaderHostControlID="LoadingTemplate"ServiceUrl="~/WebFlyPostBackManagerTest.aspx"><LoaderTemplate>Searching...</LoaderTemplate><FlyPostBackSettings PostInputControls="True" PostViewState="True"></FlyPostBackSettings><ClientSideEvents OnError="WebFlyPostBackManager_OnError" OnResponseSuccess="WebFlyPostBackManager_OnResponseSuccess" /></ISWebDesktop:WebFlyPostBackManager>
As you can see I set to true the property BlockPageUIOnBusy="True" so the page is blocked while the method execution is running. My problem is that if the remote method goes in error and the callback WebFlyPostBackManager_OnError is executed the page is not unblocked.
Can someone help me to understand how to unblock the page in case of error?
In the attached zip file there is an example of the problem.
Thanks in advance
Vince
Thank you for the sample page. My test show during on error the loaded and the busy layer is not hidden. Here is a workaround to manually hide them:
function WebFlyPostBackManager_OnError(controlId, methodName, errorDetailString, errorDetailObject) { var PostBackManager = ISGetObject(controlId); alert("OnError!\n" + errorDetailString); PostBackManager.HideLoader() var divs = document.body.getElementsByTagName("div"); for (var i = 0; i < divs.length; i++) { if (divs[i].getAttribute("type") == "BusyLayer") { divs[i].parentElement.removeChild(divs[i]); break; } }}
Hi Glenn,
thanks for the workaround, it works.
Regards,
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname