From c1e043b7ba78cee73d13ded9ef03b256202540f1 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Mon, 24 Apr 2017 10:36:10 +0300 Subject: Move STATIC_ROOT inside app directory --- servo/static/js/flot/examples/ajax/index.html | 173 ++++++++++++++++++++++++++ 1 file changed, 173 insertions(+) create mode 100755 servo/static/js/flot/examples/ajax/index.html (limited to 'servo/static/js/flot/examples/ajax/index.html') diff --git a/servo/static/js/flot/examples/ajax/index.html b/servo/static/js/flot/examples/ajax/index.html new file mode 100755 index 0000000..35ce10d --- /dev/null +++ b/servo/static/js/flot/examples/ajax/index.html @@ -0,0 +1,173 @@ + + + + + Flot Examples: AJAX + + + + + + + + + + +
+ +
+
+
+ +

Example of loading data dynamically with AJAX. Percentage change in GDP (source: Eurostat). Click the buttons below:

+ +

The data is fetched over HTTP, in this case directly from text files. Usually the URL would point to some web server handler (e.g. a PHP page or Java/.NET/Python/Ruby on Rails handler) that extracts it from a database and serializes it to JSON.

+ +

+ + [ see data ] + +

+ +

+ + [ see data ] + +

+ +

+ + [ see data ] + +

+ +

If you combine AJAX with setTimeout, you can poll the server for new data.

+ +

+ +

+ +
+ + + + + -- cgit v1.2.3