Plugin jQuery: How to build a realtime jQuery plugin

How to build a realtime jQuery plugin
http://www.jqueryrain.com/?http://www.leggetter.co.uk/pusher/jquery-realtime-plugin/examples/bitcoin/
http://www.webdesignerdepot.com/2013/06/how-to-build-a-realtime-jquery-plugin/
L5, , Plugins, , Web
27/06/2013

Nội dung

How to build a realtime jQuery plugin

The jQuery realtime library is a first attempt at making it really easy for anybody to add realtime data to a web page by just adding markup to a page and using jQuery and a jQuery library.

In this tutorial we’ll create a jQuery plugin that makes it really easy to add realtime content to a page by simply adding some markup. First, we’ll cover how to use a service called Pusher to subscribe to realtime data. Then we’ll define a way of marking up an HTML5 document with ‘data-*’ attributes in a way which can then be queried by our realtime jQuery plugin and converted to realtime data subscriptions. Finally, we’ll create the jQuery plugin which will use the attributes to subscribe to data and instantly display updates within the page.


Nguồn: www.jqueryrain.com/2013/06/how-to-build-a-realtime-jquery-plugin/


Chưa có phản hồi
Bạn vui lòng Đăng nhập để bình luận