Commit 1a99246c authored by Ole Laursen's avatar Ole Laursen

Change "method" to "type" in AJAX example, method doesn't exist in

jQuery (reported by Martin Pala)
parent 93c7c941
...@@ -87,7 +87,7 @@ $(function () { ...@@ -87,7 +87,7 @@ $(function () {
$.ajax({ $.ajax({
url: dataurl, url: dataurl,
method: 'GET', type: 'GET',
dataType: 'json', dataType: 'json',
success: onDataReceived success: onDataReceived
}); });
...@@ -121,7 +121,7 @@ $(function () { ...@@ -121,7 +121,7 @@ $(function () {
// have static example files so we need to modify the // have static example files so we need to modify the
// URL // URL
url: "data-eu-gdp-growth-" + iteration + ".json", url: "data-eu-gdp-growth-" + iteration + ".json",
method: 'GET', type: 'GET',
dataType: 'json', dataType: 'json',
success: onDataReceived success: onDataReceived
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment