View Full Version : Displaying alert/prompt to another User page

11-20-2010, 11:20 AM
Hi there guys! My group is working on a basic document management system that includes four users. staff member, department director, division chief and clerk. The programming language that we used is PHP.

when staff member logs-in on his homepage and uploads a file he must choose reviewer from a dropdown menu that consists of dep. director and div. chief.

When he clicks the upload button the homepage of who he chose as reviewer should receive a prompt/alert box upon log-in saying "you have a document to review".

For example:
if he chose division chief as the reviewer when the person logs-in on his homepage a prompt/alert should display that he has something to review.

The code for uploading file is already up and working. We are looking for advice on how to integrate javascript in this system. Especially in the prompt part. thanks for your ideas.

Philip M
11-20-2010, 11:36 AM
That is not possible with Javascript which is purely a client side language which is unable to communicate with the server. You must use server-side scripting, that is PHP.

All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.

11-20-2010, 05:46 PM
Are there any other ways on how to do the prompting/alerting part?

any ideas or direction is appreciated

Philip M
11-20-2010, 05:52 PM
See Post #2.

Recursion - see recursion