Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

HTML
<script>
function build_dataset_table(table) 
{
	table.addClass("confluenceTable").addClass("tablesorter");
	 var tr = $("<tr>").addClass("sortableHeader").appendTo(table);
	var th = $('<th class="confluenceTh sortableHeader" data-column="0">').appendTo(tr);
	th.text("hello");


	th.text("Loading table...");

	$.ajax({url:"https://api.ecmwf.int/v1/datasets?key=key1", dataType : 'jsonp', success : function(data) {

	$.each(data.datasets,function (i, d) {
 var tr = $("<tr>").appendTo(table);
 var td = $('<td class="confluenceTd">').appendTo(tr);
td.text(d.name);
	});
th.text("Dataset");
 }, error: function() {

th.text("Failed to load table");

}});

   }
 </script>
<div class="table-wrap">
<table id="datasets_table"></table>
</div>
 <script>
build_dataset_table($("#datasets_table"));
</script>
ww
dw
dw
dw


To access these dataset, you need to agree on the  the corresponding terms and conditions that can be found at http://apps.ecmwf.int/datasets/

...