• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to efficiently generate alerts

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi !

I have a scenario ... There are login for seperate users and if some changes occurs in a DB table (such as row insertion or deletion), a alert must be generated for that particular user ....Anyone suggest me the best way of implementing this scenario ....

Regards
Sathish
 
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can think of at least two ways:

a) When the user requests a new page, you display the alert on the page, or the page opens an alert dialog box or window. Users do not like popus, however.

b) Have an 'agent' window opened at the start of the session, that has a timeout set (in javascript) to however often you want to poll the server, and refreshes the agent window at that interval:

<script language="javascript">
setTimeout("document.reload()",1000);
</script>

this script will cause the document to be reloaded in 1 second.
reply
    Bookmark Topic Watch Topic
  • New Topic