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

jQuery (reported by Martin Pala)
pull/1/head
Ole Laursen 15 years ago
parent 93c7c941f4
commit 1a99246c73

@ -87,7 +87,7 @@ $(function () {
$.ajax({
url: dataurl,
method: 'GET',
type: 'GET',
dataType: 'json',
success: onDataReceived
});
@ -121,7 +121,7 @@ $(function () {
// have static example files so we need to modify the
// URL
url: "data-eu-gdp-growth-" + iteration + ".json",
method: 'GET',
type: 'GET',
dataType: 'json',
success: onDataReceived
});

Loading…
Cancel
Save