This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Send popup from Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Send popup from Java" Watch "Send popup from Java" New topic

Send popup from Java

java RS

Joined: May 11, 2009
Posts: 1

Whenever I update a site I should send a popup to the perticular customers saying that " Site Updated " from Java. Is this possible. If yes please tell me how to do this.

Campbell Ritchie

Joined: Oct 13, 2005
Posts: 38057
Please read the important administrative private message I just sent you.
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 917

Just a thought......

use RSS

My Website: [] Cool your mind:[] My Sally:[]
Nitesh Kant

Joined: Feb 25, 2007
Posts: 1638

Firstly, you have to define what is it you mean by a pop-up? In web world a pop-up is a new window that is opened by a webpage without an explicit command for the user. It is usually a hindrance to the user experience and most of the people use a popup-blocker to avoid such things.
So, it might not be a good idea to give important information about the site update using a pop-up.

If you just want to send the update information, one simple way how people do this is by taking the email-id of the user and send the update information via a mail.

apigee, a better way to API!
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 917

i would still prefer RSS.

emails would be a sort of hinderence too.
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 917

another way of doing it:

place a cookie that records current timestamp (from SERVER)

when the client opens the website the browser sends the timestamp to server

server checks last updated date and timestamp, if they do not match, server sends back message to client,
client displays popup to user.

This will work only when Client OPENS the given url again.
jQuery in Action, 2nd edition
subject: Send popup from Java
Similar Threads
How could i pass values from a child popup to parent popup?
How can I detect whether my popup window is blocked by a popup blocker?
SCJP sample questions from Sun
How to Pass pop up javascript values to another page
My Browser Has a Popup Window Blocker?