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,
in my web application , i am calling webnotification using the below javascript code
var WebNotify = ISGetObject("WebNotification1"); var myNotification = WebNotify; myNotification.ContentText = "New report has been completed and added to your account !"; myNotification.CaptionText = "Report Completion Alert"; WebNotify.Notify(myNotification);
here , is it possible to use webnotification control without service type and interval. when i use without serviceurl it gives the popup "Serviceurl has not been specified. the control is running in disabled mode " .
if i use the interval , my web page calling page_load after each that intervel.
i am doing several thing in page load. so this intervel making my application slow.
Here is my webnotification control
<ISWebDesktop:WebNotification ID="WebNotification1" runat="server" Height="75px" Width="330px" EnableManagedTheming="False" EnableSound="True" SoundFile="images/alarm_2.wav" CaptionText="Alert" ContentImage="isdialog_information.gif" ImagesDirectory="" ServiceUrl="Request_Report.aspx"> <FrameStyle BackColor="#D6E7FC" BackColor2="169, 198, 239" BorderColor="Navy" BorderStyle="Solid" BorderWidth="1px" Cursor="Default" GradientType="Vertical"> </FrameStyle> <ContentStyle Font-Names="Tahoma" Font-Size="8.25pt" HorizontalAlign="Center"> </ContentStyle> <CaptionStyle BackgroundImage="url(/CommonLibrary/Images/WebDesktop/Notification_OutlookBg.gif)" CustomRules="background-repeat:repeat-x" Font-Names="Tahoma" Font-Size="9pt" ForeColor="#404040"> <Padding Bottom="0px" Left="4px" Right="0px" Top="8px" /> </CaptionStyle> <CommandStyle> <Active BackColor="#FE803E" BaseStyle="Over"> </Active> <Over BackColor="#FDC689" BaseStyle="Normal" BorderColor="Navy" BorderStyle="Solid" BorderWidth="1px"> </Over> <Normal Cursor="Hand" ForeColor="Black" Height="16px" HorizontalAlign="Center" Overflow="Hidden" OverflowX="Hidden" OverflowY="Hidden" VerticalAlign="Middle" Width="16px"> </Normal> </CommandStyle> <MenuStyleSettings BackgroundStripColor="222, 236, 254" BackgroundStripColor2="135, 173, 228"> <ItemStyle> <Over BackColor="#FFEEC2" BaseStyle="Normal" BorderColor="#002D96" BorderStyle="Solid" BorderWidth="1px" Font-Names="Tahoma" Font-Size="8pt"> </Over> </ItemStyle> <SeparatorStyle> <BorderSettings> <Top Color="106, 140, 203" Style="solid" Width="1px" /> </BorderSettings> </SeparatorStyle> <CheckedItemStyle> <Over BackColor="#FE803E" BaseStyle="Normal"> </Over> <Normal BackColor="#FFC06F" BorderColor="#002D96" BorderStyle="Solid" BorderWidth="1px"> </Normal> </CheckedItemStyle> <FrameStyle BorderColor="#002D96" BorderStyle="Solid" BorderWidth="1px"> </FrameStyle> </MenuStyleSettings> </ISWebDesktop:WebNotification>
thanks and regards
ca
Hello Ca,
As I mentioned before, it needs to be set. If you think that WebNotification will slow down because it loads continuesly, why don't you set interval properties. You can adjust the time to load for next time in that properties. Also, would you mind to let us know what kind of javascript that can slow down when it is used along with WebNotification?
Regards,Handy
Hi Ca,
Service URL needs to be specified. If you feel it's heavy at page load, you can try to load it after you load all your code. e.g in attachment, I am showing you how to load WebNotification via button click. Maybe you can customize it in your scenario. Hope this helps.
please go through the code i have mentioned above. This is exactly how mentioned in your sample. In my case also i am calling it from javascript (clear from my first code snippet).
My problem is if i specify serviceurl page, it continuesly loading that page. And this is a overhead for me. If i did't mention the serviceurl , i am getting the popup box with warning "Serviceurl has not been specified. the control is running in disabled mode " . But my scenario is working even if i am not mention the serviceurl.
is there any way to avoid this warning message?
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