"Quickening the Pace of JSP Development" Friday, March 19, 2010
Home Products Pricing Company Contact Us Samples Download Forums Javadoc Customers
    « Form Tags »
    « I/O Tags »
    « Format Tags »
    « Utility Tags »
Desktop Alert Tag Example

Desktop alerts can be displayed to the user "Outlook style" by using the <dotj:desktopalert> component.

You can use a desktop alert to notify users of important events that occur in the background. The component uses Ajax based requests to check a server URL on a specified interval. When the check returns a valid message, it is displayed to the user using DHTML.

Although a desktop alert will fade out and disappear in a predetermined number of seconds, it can be fully controlled by the user. For example, they can move it, close it, or keep their mouse hovered over it to keep it displayed.

Countdown
0
  Sample Desktop Alert - Blue   Sample Desktop Alert - Olive


In this working example, an initial check is done three (3) seconds after the page is loaded. From there on, checks are repeated every twenty (20) seconds. This example always returns a message by randomly picking a message from a file containing a list of ten.

Click here to view an example of the XML returned from the server side check.


          Back to Samples page


home : products : pricing : company : contact us : samples : download : forums : customers

Copyright © 2000-2004 dotJ Software Inc. All rights reserved.