Results 1 to 2 of 2
  1. #1
    Join Date
    May 2015
    Posts
    1
    Rep Power
    0

    Default Pop Up to all active users

    Hi,

    Would you please let me know , how can a pop up trigger from java web application to all active users to broadcast something?

    Thanks, Dinesh.

  2. #2
    sehudson's Avatar
    sehudson is offline Senior Member
    Join Date
    Mar 2010
    Posts
    384
    Rep Power
    10

    Default Re: Pop Up to all active users

    My understanding of HTTP is that the browser(client) can only get a response from the server if it sends a request to the server, so I don't believe the server can 'initiate' a message to clients unless a request has been made from the browser.

    I'm not an expert in web development, but, just thinking about it, you may be able to have your clients constantly ask the server for data using a timed AJAX call that repeatedly makes a request every x minutes/seconds/whatever to the server to essentially ask 'do you have any broadcast messages for me', and have your server setup to respond to that request, but I guess it depends on where these broadcast messages you want to send are coming from and how they are generated.

    In thinking about it, it wouldn't be efficient at all, but that's the only way I can think of to try to achieve what it is you're trying to do, but maybe some people with more web development experience can chime in.

Similar Threads

  1. Active Directory using RPC over HTTPS
    By eltmon in forum Advanced Java
    Replies: 0
    Last Post: 07-20-2011, 08:11 PM
  2. DB Active connections
    By userj2ee in forum Advanced Java
    Replies: 0
    Last Post: 01-13-2011, 05:00 AM
  3. active window
    By yuhobebbho in forum New To Java
    Replies: 3
    Last Post: 08-18-2010, 03:34 PM
  4. active jtable
    By water in forum AWT / Swing
    Replies: 0
    Last Post: 11-06-2009, 04:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •