Skip to content

Instantly share code, notes, and snippets.

View ishitvagoel's full-sized avatar

Ishitva Goel ishitvagoel

View GitHub Profile
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This Source Code Form is "Incompatible With Secondary Licenses", as
* defined by the Mozilla Public License, v. 2.0.
*/
/* This library assumes that the needed YUI libraries have been loaded
already. */
<html>
<head>
<title>Datatable Example</title>
<script src="http://yui.yahooapis.com/3.16.0/build/yui/yui-min.js"></script>
</head>
<body>
<script type="text/javascript">
YUI().use("node", "datatable", "datatable-sort", "json-stringify", "escape",
"datatable-datasource", "datasource-io", "datasource-jsonschema", function(Y) {
var myDataSource = new Y.DataSource.IO({source:"jsonrpc.cgi"}),
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This Source Code Form is "Incompatible With Secondary Licenses", as
* defined by the Mozilla Public License, v. 2.0.
*/
/* This library assumes that the needed YUI libraries have been loaded
already. */