From ea346a785dc1b3f7c156f6fc33da634e1f1a627b Mon Sep 17 00:00:00 2001 From: Chris Schlaeger Date: Tue, 12 Aug 2014 21:56:44 +0200 Subject: Adding jquery, flot and openlayers to be included with the GEM. --- misc/flot/examples/ajax/index.html | 173 +++++++++++++++++++++++++++++++++++++ 1 file changed, 173 insertions(+) create mode 100644 misc/flot/examples/ajax/index.html (limited to 'misc/flot/examples/ajax/index.html') diff --git a/misc/flot/examples/ajax/index.html b/misc/flot/examples/ajax/index.html new file mode 100644 index 0000000..2f0532e --- /dev/null +++ b/misc/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 debian/1.2.3+git2.25.1-1-2-gaceb0