Reverse ajax call with javascript server initiative

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • raknin
    New Member
    • Oct 2007
    • 82

    Reverse ajax call with javascript server initiative

    Hi,

    I am looking for a mechanisim (Actualy already written packege) in which each time an event occure in the server the client browser will be announce without the need to poll the server every T second. This will reduce the server load. If anyone can recomemd about such exist package.

    Thanks
    Ronen
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5388

    #2
    hi ...

    in case you are talking about webpages that are served through HTTP ... i think there is no possibility to do that ... since you cannot use persistent connections or just push something to the client with that technology ...

    kind regards

    PS: the term 'reverse ajax' seems to mislead the people ... it uses tricks for that ... the best method would be the 'piggy backing' one ... just send all updated data when the client requests something ... even when its unrelated to the actual request ... of course your page needs to handle that :)

    Comment

    • raknin
      New Member
      • Oct 2007
      • 82

      #3
      Hi,

      This is what I thought. but I was not sure.

      Thanks
      ronen

      Comment

      • rnd me
        Recognized Expert Contributor
        • Jun 2007
        • 427

        #4
        you can actually.

        check out Comet

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          Comet is rather hack-ish at the moment because the current browsers features weren't intended for that use. Until it's standardized and supported in future browsers, we're stuck with what is effectively polling.

          Comment

          Working...