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
Hello,
Im using Webnotification in WebForm mode.
When the webserver is down i keep getting the alerts shown in "error alert.png" attachement.
I captured the onerror of the webnotification and the parameter "notifyObject" is ""
How can i process the onerror without showing the alerts?
Tanks
Hi Ricardo,
You can trap the error at OnError side event. You can set it in WebNotification's Properties > ClientSideEvents > OnError.
I hope this help. Please let me know if you need another help.
Regards,
Julia
Hello Julia,
Maybe i didn't explain myself correctly.
I defined the WebNotification ClientSideEvent OnError to call this function:
function onErrorWebnotification(id, notifyObject){ /* Some code */ }
When the server stops responding and the onError function is called the notifyObject is set to string.empty.
Because this happens, the javascript code of intersoft generates an alert with a blank error (attachment sent on my previous post).
I was wondering if i can do something in the OnError function to stop the alert from happening, or is there a bug in the javascript code of intersoft webnotification?
Hope this explains my situation.
Best regards,
Ricardo
Hello Ricardo,
Unfortunately, it is our default behaviour. When it fails to start from WebServer or WebFrom, the error alert will show up. To ignore those alert, you can set return false onError event. Please remember that you could not change our Alert message format because we don't support this for now. But if you want to show your own alert, here is the snippet code for you to try.
function WebNotification1_OnError(controlId, errorMessage) { var WebNotification1 = ISGetObject(controlId); alert("Error"); return false; }
Regards,Handy
Hello Handy,
That did the trick, thanks.
Great to hear that is what you are looking for.
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