Solved

alert 4 all users

Posted on 2007-11-15
5
236 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Copy only dates 3 88
asp syntax 3 50
ASP Focus problem 3 60
Pass asp session variable to a js function in an asp script 6 19
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‚Ķ
Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
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 basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

808 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