Note that there are some explanatory texts on larger screens.

plurals
  1. PO"No data to display" while populating JSON data into YUI DataTable
    primarykey
    data
    text
    <p>I am newbie in YUI, can't find how to fix this issue. I am using code from YUI examples and trying to make it work for my json url..</p> <pre><code>&lt;div id="pizza" class="yui3-skin-sam dt-example"&gt;&lt;/div&gt; &lt;script&gt; YUI().use("datasource-get", "datasource-jsonschema", "datatable-base-deprecated", "datatable-datasource-deprecated", function (Y) { var url = "http://api.geonames.org/citiesJSON?north=44.1&amp;south=-9.9&amp;east=-22.4&amp;west=55.2&amp;lang=de&amp;username=demo", dataSource, table; dataSource = new Y.DataSource.Get({ source: url }); dataSource.plug(Y.Plugin.DataSourceJSONSchema, { schema: { resultListLocator: "geonames", resultFields: ["fcodeName", "toponymName", "countrycode", "fcl", "fclName", "name", "wikipedia", "lng", "fcode", "geonameId", "lat", "population"] } }); table = new Y.DataTable.Base({ columnset: ["fcodeName", "toponymName", "countrycode", "fcl", "fclName", "name", "wikipedia", "lng", "fcode", "geonameId", "lat", "population"] }); table.plug(Y.Plugin.DataTableDataSource, { datasource: dataSource }); table.render("#pizza"); table.datasource.load({ request: url }); }); &lt;/script&gt; </code></pre> <p>and my json response is</p> <pre><code>{"geonames":[{"fcodeName":"capital of a political entity","toponymName":"Mexico City","countrycode":"MX","fcl":"P","fclName":"city, village,...","name":"Mexiko-Stadt","wikipedia":"","lng":-99.12766456604,"fcode":"PPLC","geonameId":3530597,"lat":19.428472427036,"population":12294193}, same pattern....]} </code></pre> <p>I think I am missing some basic concepts. I apologies if this question makes no sense.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload