index.html 2.58 KB
<!DOCTYPE html>
<html>
<head>
    <script src="../../bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
    <script src="../shared_js/jquery-1.11.2.min.js"></script>
    <script>
        jQuery(document).ready(function($) {
            $.ajax({
                url: "http://www.dublinked.ie/datastore/server/FileServerWeb/FileChecker?metadataUUID=c94cd225ed3740e2bfe891e2db6ccabf&filename=FCC_ACABoundaries_P20130501-1408.csv&_=1435920548083:2",
                type:"GET",
                dataType: "script",
                headers : {
                    'Accept' : '*/*',
                    'Accept-Encoding' : 'gzip, deflate',
                    'Accept-Language' : 'it-IT,it;q=0.8,en-US;q=0.6,en;q=0.4',
                    'Cache-Control' : 'max-age=0',
                    'Connection' : 'keep-alive',
                    'Host' : 'www.dublinked.ie',
                    'Referer' : 'http://service.routetopa.eu/WebComponentsDEV/COMPONENTS/datalets/test-datalet/index.html',
                    'User-Agent' : 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36'
                },
                success: function(data){
                    alert(data);
                },
                error: function(xhr, status, error){
                   alert(error);
                }});
           /* try {
                $.getScript("http://www.dublinked.ie/datastore/server/FileServerWeb/FileChecker?metadataUUID=c94cd225ed3740e2bfe891e2db6ccabf&filename=FCC_ACABoundaries_P20130501-1408.csv")
                        .done(function (script, textStatus) {
                            console.log(textStatus);
                        });
            }catch(err){
                alert(err.message);
            }*/
        });

    </script>
</head>
<body>
<link rel="import" href="http://service.routetopa.eu/WebComponentsDEV/COMPONENTS/datalets/linechart-datalet/linechart-datalet.html">
<linechart-datalet data_url="http://demo.ckan.org/api/action/datastore_search?resource_id=8324a4c9-66d6-47bf-a898-94237cc39b9f&amp;limit=50" query="$.result.records..Supplier $.result.records..Amount">
</linechart-datalet>
<br><br><br><br><br>
<link rel="import" href="http://service.routetopa.eu/WebComponentsDEV/COMPONENTS/datalets/datatable-datalet/datatable-datalet.html">
<datatable-datalet data_url="http://demo.ckan.org/api/action/datastore_search?resource_id=8324a4c9-66d6-47bf-a898-94237cc39b9f&amp;limit=50" query="$.result.records..Supplier $.result.records..Amount">
</datatable-datalet>

</body>
</html>