This file contains 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
/** | |
* Link Tests | |
*/ | |
YUI.add('ttw-link-test', function(Y){ | |
var matchSuite = new Y.Test.Suite('Link - Matching'), | |
sanitizeSuite = new Y.Test.Suite('Link - Sanitize'); | |
function buildMatchTestCase (name, allows, rejects) { |
This file contains 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
/** | |
* Sanitize URL — Validate it looks like a URL, then make it less dirty. | |
* | |
* Oddnut Software | |
* Copyright (c) 2010 Eric Ferraiuolo - http://eric.ferraiuolo.name | |
* MIT License - http://www.opensource.org/licenses/mit-license.php | |
* | |
* Examples: | |
* | |
* 'Http://WWW.example.com/' » 'http://www.example.com/' |
This file contains 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({filter: 'raw', combine : false}).use('node', 'scrollview', function(Y) { | |
var scrollView = new Y.ScrollView({ | |
srcNode: '#searchresults', //where #searchresults is a wrapper div on the table rows. | |
height: 350 | |
}); | |
scrollView.render(); | |
}); |
This file contains 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> | |
<title>lucenbills test</test> | |
<script type="text/javascript" charset="utf-8" src="http://yui.yahooapis.com/3.2.0/build/yui/yui-min.js"></script> | |
<style type="text/css"> | |
#image { | |
width: 300px; |
This file contains 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
objImg = new Image(); | |
objImg.src = 'photo.gif'; | |
if(!objImg.complete){} |
This file contains 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
* Retrieves the value and text from the selected option in a select | |
* | |
* @method getSelectValues | |
* @public | |
* @since 1.0.0 | |
* @returns [object] | |
*/ | |
getSelectValues : function(inp) { | |
var value, txt; |