Skip to content

Instantly share code, notes, and snippets.

View apipkin's full-sized avatar
🤖
^_^

Anthony Pipkin apipkin

🤖
^_^
View GitHub Profile
// Ajax event request handler
SendAjaxRequest = function(Event)
{
YUI().use(
"io-base", "json",
function(Y)
{
var myScriptEvent = escape(Y.JSON.stringify(Event));
Y.io("http://localhost/ScriptHandler.php?ScriptEvent=" + myScriptEvent, {
method: "POST",
createTables : function() {
GS.rowSelect.on('rowSelected', function(e) {
var res = Y.io('mapping/getGroupsTable', {
method: "post",
data: 'vid=' + e.rowTarget.getAttribute('vid'),
on: {
complete: this.fillVehTable //function(id, o, arg) {Y.log(arg);}
},
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="charset=utf-8">
<title>Untitled Document</title>
</head>
<body>
<h4>Overview</h4>
YUI().use("event", "node", "node-event-simulate", function(Y){
var node = Y.one("#sidebar");
node.on("foo|click", function() {
console.log("clicked")
} );
node.simulate("click");
node.detach("foo|click");
YUI({
//Last Gallery Build of this module
gallery: 'gallery-2010.08.04-19-46'
}).use('node', 'overlay', 'widget-anim', 'gallery-overlay-extras', function(Y){
Y.on('domready', function(){
var overlay = new Y.Overlay({
bodyContent : '<p>I am an Overlay</p>',
YUI.add('gallery-slider-captcha', function(Y){
var isString = Y.Lang.isString,
isBoolean = Y.Lang.isBoolean
EVENTS = {
RELEASE_SUCCESS : 'releaseSuccess',
RELEASE_FAILURE : 'releaseFailure'
};
Y.SliderCaptcha = Y.Base.create('slider-captcha', Y.Widget, [], {
YUI.add('basefn', function(Y) {
Y.Basefn = {
genYear : function() {
var yrs = "",
i = 0;
Y.log('in');
for(i = 1850; i < 2012; i++) {
Y.log(i);
YUI.add('basefn', function(Y) {
Y.Basefn = Y.Base.create('basefn', Y.Base, [], {
initializer : function() {},
destructor : function() {},
genYear : function() {
var yrs = "",
i = 0;
YUI.add('basefn', function(Y) {
Y.Basefn = Y.Base.create('basefn', Y.Base, {
initializer : function() {},
destructor : function() {},
genYear : function() {
var yrs = "",
i = 0;
var groupControl = {
tdata : "",
getGroupTable : function(termid) {
result = Y.io(url, {
method: "post",
data: 'term=' + termid,
on : {