Skip to content

Instantly share code, notes, and snippets.

View jenny's full-sized avatar

Jenny Donnelly jenny

  • Favor, ex-Nextdoor, ex-Yahoo
View GitHub Profile
YUI().use("datasource", "yui2-datatable", "yui2-paginator", function(Y) {
var YAHOO = Y.YUI2;
/* Compat for 3.0 */
Y.DataSource.Local.issueCallback = function(e) {
var callback = e.callback,
error = e.error,
params = (error) ? [e.request, {error:true}] : [e.request,e.response],
scope = e.callback.scope;
// Include the AutoComplete CSS and JS files
<style type="text/css">
<!-- Include the following AutoComplete CSS overrides -->
.yui-skin-sam .yui-ac {position:absolute;}
.yui-skin-sam .yui-ac-input {position:static;}
</style>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>DT2 + Tabs3 + resizeable columns</title>
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.8.1/build/datatable/assets/skins/sam/datatable.css" />
<script type="text/javascript" charset="utf-8"
src="http://yui.yahooapis.com/3.1.1/build/yui/yui-min.js">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
@jenny
jenny / gist:1043526
Created June 23, 2011 20:16
sync error
[yui@yuivm] ~ $ sync-yui
Updating your virtual machine..
If anything goes wrong, logs are written to: /tmp/yui-sync.log
Updating system configuration/sbin/mount.vboxsf: mounting failed with the error:
Protocol error
[done]
Updating Nginx configuration [done]
Updating (n) [done]
Updating Node (this may take a while if we need to compile a new version)
@jenny
jenny / gist:1056576
Created June 30, 2011 16:19 — forked from davglass/gist:1056494
Loader Article

YUI and Loader changes for 3.4.0

In 3.4.0 we started the process of shifting some of Loader's logic around, to not only make it more performant, but to make it more robust and easier to use in other places (like on the server ). We will be rolling out more changes in future revisions, but I wanted to take some time and explain what was changed, why it was changed and how it may impact developers. For the majority of use-cases, developers will notice nothing different, except that things are a little faster and their requirement downloads are a little smaller.

@jenny
jenny / gist:1056681
Created June 30, 2011 17:10 — forked from davglass/gist:1056494
Loader Article

YUI and Loader changes for 3.4.0

In 3.4.0 we started the process of shifting some of Loader's logic around, to not only make it more performant, but to make it more robust and easier to use in other places (like on the server). We will be rolling out more changes in future revisions, but I wanted to take some time and explain what was changed, why it was changed and how it may impact developers. For the majority of use-cases, developers will notice nothing different, except that things are a little faster and their requirement downloads are a little smaller.