?
Solved

alert 4 all users

Posted on 2007-11-15
5
Medium Priority
?
242 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 750 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

WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 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:
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

801 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