CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 AUTO ALERT CODE

Print topic Send  topic

Author Message
popularanky

Posts: 53
Posted: 01/21/2011, 8:14 AM

I know this is not CCS issue. But I just need some one to help me with a php, Ajax or any language code. I can integrate into my PHP application.

I have an application that assign memo to employees and the application includes forum.
All I want is a solution to ALERT the employees when there is an assigned task or memo.

An ALERT like POP-UP ALERT.
_________________
EKERE UBONG UBONG
IT Officer
CognitiveDrive
View profile  Send private message
CodeChargeMVP

Posts: 473
Posted: 01/24/2011, 10:51 AM

Decide where to run the alert than decide a condition which will allow to show the alert or not,
then show the alert.

Quote popularanky:
I know this is not CCS issue. But I just need some one to help me with a php, Ajax or any language code. I can integrate into my PHP application.

I have an application that assign memo to employees and the application includes forum.
All I want is a solution to ALERT the employees when there is an assigned task or memo.

An ALERT like POP-UP ALERT.

_________________
Best Regards
Entrepeneur | NT Consultant
View profile  Send private message
popularanky

Posts: 53
Posted: 01/25/2011, 4:27 AM

All I am looking for is a solution that will alert users when there is a memo sent to them.

It will pop up at the right side of the monitor whenever a memo is sent to their userID.
_________________
EKERE UBONG UBONG
IT Officer
CognitiveDrive
View profile  Send private message
damian

Posts: 838
Posted: 01/25/2011, 5:35 AM

so how will your application determine if a memo has been sent to someone?
the database has no push technology so that wont help.
the session in which someone submits a new memo knows there is a new memo for someone but it cannot execute code on a remote computer so that womt help.
i would suggest an ajax script that checks the database every 5mins (1min/1hr or whatever is suitable for your needs) and alerts user to new memo.
you could also do that with an iframe and even just create it as an include and include on every page and it will just check every time there is a page change. you could add auto page refresh on pages that dont have input fields to increase the frequency that script runs.
you could also have the system send the user an email with the new memo or link to memo as in the example pack.

_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message
popularanky

Posts: 53
Posted: 01/25/2011, 5:57 AM

:-) Hello, I will like to go with that your idea of Ajax script. I have a html auto refresh code on the page already.

Please can you help with a code that you think can do this.

thanks
_________________
EKERE UBONG UBONG
IT Officer
CognitiveDrive
View profile  Send private message
damian

Posts: 838
Posted: 01/25/2011, 6:46 AM

nope. this you should do yourself. use the ccs service builder and make a html list
you now know your method - ajax so now you need to think mechanics -
what will query be? how will it know whether the memo is new? how will you update the memo once user reads it so that it no longer shows as new?
do you need to add a new field to database?

_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message
CodeChargeMVP

Posts: 473
Posted: 01/26/2011, 12:36 PM

I´m thinking on a mysql trigger than runs when a new task is added to the user on the dba,I mean, when a new row is inserted on the dba table which has the task users then on this trigger show an alert.


_________________
Best Regards
Entrepeneur | NT Consultant
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.