set NotifyWindowURL from client side

3 replies. Last post: November 7, 2012 8:43 PM by Bernard Xiang
Tags :
  • New Discussion
  • New Question
  • New Product Feedback
BJayMember

Hi,

I need to set NotifyWindowURL property of a WebNotification object that activates from client side using java script?

I have added one line myNotification.NotifyWindowURL = "http://www.intersoftpt.com/" to Button1_onclick() function posted at
http://www.intersoftpt.com/Community/WebDesktop/webnotification-event-based/

function Button1_onclick() {
     var WebNotify = ISGetObject("WebNotification1");
     var myNotification = WebNotify;
     myNotification.ContentText = "This notification is sent from button click. Check it out!";
     myNotification.CaptionText = "NotifyWindowURL does not work";
     myNotification.NotifyWindowURL = "http://www.intersoftpt.com/"
     WebNotify.Notify(myNotification);
}

WebNotify.Notify(myNotification) launches a notification, but makes myNotification.NotifyWindowURL undefined. So click on the notification opens a page like http://MyWebPage/undefined.

Thanks,
BJay

All times are GMT -5. The time now is 8:03 PM.
Previous Next