Advanced polling with jQuery(techoctave.com)

submitted by vijaystvijayst(1311) 7 months, 7 days ago

This post explains how to do polling with jQuery. Using traditional methods of polling, the connection to the server is lost. With jQuery long polling, the connection to the server is maintained throughout the poll. WebSockets is a future alternative that provide push-type data. This post also explains a bit of how WebSockets work.

2 comments |category: |Views: 74

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by dpetersondpeterson(4397) 7 months, 7 days ago 0

Nice article, he made sure to go over the problems with setInterval, and touched on using Socket.IO for websockets.

Reply

posted by bradygasterbradygaster(4897) 7 months, 6 days ago 0

Agreed. this was pretty neat. Nice to see some other methods of doing polling to make me love SignalR more and more. :)

Reply

information Login or create an account to comment on this story