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
hi,
i want to activate webnotification on the completion of some event. example
suppose i have one webgrid which refreshes every minutes automatically. and here i want to activate webnotification if the grid have any new rows . If i can find the difference in the row count , how can i notify user using webnotification.
In your live example all the webnotification is under time intervel, not event based.
thanks and regards
ca
Hi Ca,
Yes, that is not the right way in order to notify a WebNotification from client side using java script. First, we will need to create the notification object that contains required properties. If we are notifying the WebNotification from client side, the object is not available if it does not come from server side.
Here is the snippet on how to create a simple object and show the Notification:
function Button1_onclick() { var WebNotify = ISGetObject("WebNotification1"); var myNotification = WebNotify; myNotification.ContentText = "This notification is sent from button click. Check it out!"; myNotification.CaptionText = "Vista Style Notification"; WebNotify.Notify(myNotification); }
I hope it can help. Thank you and have a nice day.
Best Regards,
Andi Santoso
Our WebNotification is interval based not event based. However, based WebFormType.aspx and WebServiceType.aspx reference sample, we could provide a workaround for your scenario.
In the sample, the notification will only be displayed if this line is executed:
collection.Notifications = new WebNotificationEvent[] { evnt };
An event object is added to the collection, in your case you will need to add a conditional block so the event will only be added if there is a difference in Grid row count.
thanks for the reply,
in the server side i can able to activate webnotification using the line of code
WebNotification1.Notify("This notification is sent from Page_Load. Check it out!", "", "Vista Style Notification");
but want to do this from client side using javascript. the below code not working for me
var webnoti= ISGetObject("WebNotification1"); webnoti.Notify("This notification is sent from button click. Check it out!","", "Vista Style Notification");
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