web notification without service type

3 replies. Last post: July 20, 2010 10:30 AM by Handy Surya
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
caMember

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

All times are GMT -5. The time now is 2:26 AM.
Previous Next