Tornado 4.5 Documentation
example application [https://github.com/tornadoweb/tornado/tree/stable/demos/chat], which implements an AJAX chat room using long polling [http://en.wikipedia.org/wiki/Push_technology#Long_polling]. Users of submit AJAX POST requests, you will also need to instrument your JavaScript to include the _xsrf value with each request. This is the jQuery [http://jquery.com/] function we use at FriendFeed for AJAX POST undefined; } jQuery.postJSON = function(url, args, callback) { args._xsrf = getCookie("_xsrf"); $.ajax({url: url, data: $.param(args), dataType: "text", type: "POST", success: function(response)0 码力 | 333 页 | 322.34 KB | 1 年前3
Tornado 6.1 Documentation
more advanced asynchronous example, take a look at the chat example application, which implements an AJAX chat room using long polling. Users of long polling may want to override on_connection_close() to If you submit AJAX POST requests, you will also need to instrument your JavaScript to include the _xsrf value with each request. This is the jQuery function we use at FriendFeed for AJAX POST requests page) 6.1. User’s guide 33 Tornado Documentation, Release 6.1 (continued from previous page) $.ajax({url: url, data: $.param(args), dataType: "text", type: "POST", success: function(response) { callback(eval("("0 码力 | 245 页 | 904.24 KB | 1 年前3
Tornado 4.5 Documentation
more advanced asynchronous example, take a look at the chat example application, which implements an AJAX chat room using long polling. Users of long polling may want to override on_connection_close() to If you submit AJAX POST requests, you will also need to instrument your JavaScript to include the _xsrf value with each request. This is the jQuery function we use at FriendFeed for AJAX POST requests undefined; } jQuery.postJSON = function(url, args, callback) { args._xsrf = getCookie("_xsrf"); $.ajax({url: url, data: $.param(args), dataType: "text", type: "POST", success: function(response) { callback(eval("("0 码力 | 222 页 | 833.04 KB | 1 年前3
Tornado 5.1 Documentation
more advanced asynchronous example, take a look at the chat example application, which implements an AJAX chat room using long polling. Users of long polling may want to override on_connection_close() to If you submit AJAX POST requests, you will also need to instrument your JavaScript to include the _xsrf value with each request. This is the jQuery function we use at FriendFeed for AJAX POST requests previous page) } jQuery.postJSON = function(url, args, callback) { args._xsrf = getCookie("_xsrf"); $.ajax({url: url, data: $.param(args), dataType: "text", type: "POST", success: function(response) { callback(eval("("0 码力 | 243 页 | 895.80 KB | 1 年前3
Tornado 6.0 Documentation
more advanced asynchronous example, take a look at the chat example application, which implements an AJAX chat room using long polling. Users of long polling may want to override on_connection_close() to If you submit AJAX POST requests, you will also need to instrument your JavaScript to include the _xsrf value with each request. This is the jQuery function we use at FriendFeed for AJAX POST requests undefined; } jQuery.postJSON = function(url, args, callback) { args._xsrf = getCookie("_xsrf"); $.ajax({url: url, data: $.param(args), dataType: "text", type: "POST", success: function(response) { callback(eval("("0 码力 | 245 页 | 885.76 KB | 1 年前3
Tornado 6.4 Documentation
more advanced asynchronous example, take a look at the chat example application, which implements an AJAX chat room using long polling. Users of long polling may want to override on_connection_close() to If you submit AJAX POST requests, you will also need to instrument your JavaScript to include the _xsrf value with each request. This is the jQuery function we use at FriendFeed for AJAX POST requests 34 Chapter 6. Documentation Tornado Documentation, Release 6.4 (continued from previous page) $.ajax({url: url, data: $.param(args), dataType: "text", type: "POST", success: function(response) { callback(eval("("0 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.2 Documentation
more advanced asynchronous example, take a look at the chat example application, which implements an AJAX chat room using long polling. Users of long polling may want to override on_connection_close() to If you submit AJAX POST requests, you will also need to instrument your JavaScript to include the _xsrf value with each request. This is the jQuery function we use at FriendFeed for AJAX POST requests undefined; } jQuery.postJSON = function(url, args, callback) { args._xsrf = getCookie("_xsrf"); $.ajax({url: url, data: $.param(args), dataType: "text", type: "POST", success: function(response) { callback(eval("("0 码力 | 260 页 | 1.06 MB | 1 年前3
Tornado 6.4 Documentation
more advanced asynchronous example, take a look at the chat example application, which implements an AJAX chat room using long polling. Users of long polling may want to override on_connection_close() to If you submit AJAX POST requests, you will also need to instrument your JavaScript to include the _xsrf value with each request. This is the jQuery function we use at FriendFeed for AJAX POST requests 34 Chapter 6. Documentation Tornado Documentation, Release 6.4 (continued from previous page) $.ajax({url: url, data: $.param(args), dataType: "text", type: "POST", success: function(response) { callback(eval("("0 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.4 Documentation
more advanced asynchronous example, take a look at the chat example application, which implements an AJAX chat room using long polling. Users of long polling may want to override on_connection_close() to If you submit AJAX POST requests, you will also need to instrument your JavaScript to include the _xsrf value with each request. This is the jQuery function we use at FriendFeed for AJAX POST requests 34 Chapter 6. Documentation Tornado Documentation, Release 6.4 (continued from previous page) $.ajax({url: url, data: $.param(args), dataType: "text", type: "POST", success: function(response) { callback(eval("("0 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.3 Documentation
more advanced asynchronous example, take a look at the chat example application, which implements an AJAX chat room using long polling. Users of long polling may want to override on_connection_close() to If you submit AJAX POST requests, you will also need to instrument your JavaScript to include the _xsrf value with each request. This is the jQuery function we use at FriendFeed for AJAX POST requests Chapter 6. Documentation Tornado Documentation, Release 6.3.3 (continued from previous page) $.ajax({url: url, data: $.param(args), dataType: "text", type: "POST", success: function(response) { callback(eval("("0 码力 | 264 页 | 1.06 MB | 1 年前3
共 20 条
- 1
- 2













