This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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);} | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <meta http-equiv="charset=utf-8"> | |
| <title>Untitled Document</title> | |
| </head> | |
| <body> | |
| <h4>Overview</h4> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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"); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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>', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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, [], { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| YUI.add('basefn', function(Y) { | |
| Y.Basefn = Y.Base.create('basefn', Y.Base, [], { | |
| initializer : function() {}, | |
| destructor : function() {}, | |
| genYear : function() { | |
| var yrs = "", | |
| i = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| YUI.add('basefn', function(Y) { | |
| Y.Basefn = Y.Base.create('basefn', Y.Base, { | |
| initializer : function() {}, | |
| destructor : function() {}, | |
| genYear : function() { | |
| var yrs = "", | |
| i = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var groupControl = { | |
| tdata : "", | |
| getGroupTable : function(termid) { | |
| result = Y.io(url, { | |
| method: "post", | |
| data: 'term=' + termid, | |
| on : { |