Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Oct 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question make realtime action

    Dear all;
    I'm new in ajax and I need a help on how to show message on some client screen while viewing a page.

    Example: let a user be logged in, I want to send him a message, if he is online, show a pop up message on screen that tells him that a new message is reached.

    Thanks a lot.

  • #2
    Senior Coder shyam's Avatar
    Join Date
    Jul 2005
    Posts
    1,563
    Thanks
    2
    Thanked 163 Times in 160 Posts
    u've to add a polling to the page (or all pages where u want the alert) that the client will be viewing so that a server-side script is called to check if a message has reached and based on the response of this script alert the user
    You never have to change anything you got up in the middle of the night to write. -- Saul Bellow

  • #3
    New to the CF scene
    Join Date
    Oct 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks shyam for ur response
    I have solved it using polling, but is there a way to do it in different manner to decrease network traffic?
    I saw in some sites a sharable board in which every one can write on, and after finishing drawing shape, this shape is broadcasted to all people who are viewing page and drawn in their own pages.
    is there a way or just they are using polling?


  •  

    Posting Permissions

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