Results 1 to 7 of 7

Thread: Newbie. Events displayer

  1. #1
    Ext User
    Join Date
    Apr 2008
    Location
    Geneva, Switzerland
    Posts
    3

    Red face Newbie. Events displayer

    Hello everybody. Newbie here
    I've been checking out examples but there is something that i dont know if i can do.

    I have a chatroom in my webpage. I would like that when UserXX opens a private chat to UserYY, then UserYY might get a popup window saying "UserXX wants to talk to you, log in to the chat".

    I know the popup is easy to create, but i would like to know if there is any way to make it apear right after the UserXX opens the chat to the UserYY.
    Somehow "Refreshing the page" so the second user gets the popup. Like an events displayer.
    Is this possible to do with extjs?

    Thanks very much for your help
    Chelo

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

    Default

    It's not possible to send a message to a browser. The only thing a browser can do is regulary request pending messages from the server (polling).

    And, yes, you can do this with Ext.TaskMgr and Ext.Ajax.request.

  3. #3
    Ext User
    Join Date
    Apr 2008
    Location
    Geneva, Switzerland
    Posts
    3

    Default

    Brilliant, I will investigate more then.
    Thank you very much
    Chelo

  4. #4
    Sencha User jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364

    Default

    I believe flash can do this. 3.0 is supposed to allow neat stuff like this with the use of a nifty flash obj.

  5. #5
    Ext User
    Join Date
    Apr 2008
    Location
    Geneva, Switzerland
    Posts
    3

    Default


    Hello, Sorry lads but i dont know where to start from.
    There is so much documentation I'm a bit confused.
    My webpage is developed using php. (joomla)
    Thank you
    Chelo

  6. #6
    Sencha User jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364

    Default

    The only way to achieve this is to have your browser constantly checking for updates via Ext.Ajax.Request and the task manager

  7. #7

    Default

    There are a few ways of pushing data out from a server, commonly called "Comet" if you want to do some research. Nothing exists in Ext to do this, largely because it is very non-standard. You would probably do better to stick to using a polling method as described above, but I thought I would give some additional information.

Posting Permissions

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