Solved

alert 4 all users

Posted on 2007-11-15
5
229 Views
Last Modified: 2007-11-16
in my systems admins every few hours need to generte alert to all users...
i use ajaxed for this reason...user side checking every 30 sec some checkup and depends on the result alert being shown.
i wonder what kind of checking on the user side i need to check for this reason?

i should use sessions? or to open for every user column with what alerts was already shown to the user?
0
Comment
Question by:sasha85
  • 3
  • 2
5 Comments
 
LVL 25

Expert Comment

by:Rouchie
ID: 20289919
If I understand you correctly, you could write a page for admins to generate alerts that uses the ASP Application object.  Then each page would check the value of the Application object when loaded.  If the value contains an alert, then this could be displayed using a javascript popup etc.

http://www.w3schools.com/asp/asp_applications.asp
0
 

Author Comment

by:sasha85
ID: 20290650

my question is pure teorethical...

admin write into the some tables alerts...column for the alert+column for the time
the page of the user refresh every 30 sec and need to run check if the last alert from the databse was already present...
i ask what kind of chaeck i need to run??

i thouhght to use session -saving in some session the last alert date and every 30 sec check if the time of the last alert on database older the the time stored in session
0
 
LVL 25

Accepted Solution

by:
Rouchie earned 250 total points
ID: 20297075
Yes your approach will work.  You would check the database and save the last alert date/time into a session variable.
If the database contained alerts generated after this time, then you would show the alerts and then save the new greatest date/time value into session.
0
 

Author Comment

by:sasha85
ID: 20297382
is there a need for a application?
0
 
LVL 25

Expert Comment

by:Rouchie
ID: 20297425
Not if each page is checking the database for new alerts.  You would be able to use Session.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Most of the sites are being standardized with W3C Web Standards. W3C provides lot of web standard services to the web. They have the web specification, process and documentation for all the web standards. You can apply HTML, CSS and Accessibility st…
Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now