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
// from | |
// http://stackoverflow.com/questions/1100066/filter-table-from-select-input-using-jquery/1100201 | |
// | |
// basically, filter a table on a page based on rows chosen from a dropdown | |
$('select').change( function(e) { | |
var letter = $(this).val(); | |
$('tr').each( function(rowIdx,tr) { | |
$(this).hide().find('td').each( function(idx, td) { | |
if( idx === 0 || idx === 1) { |
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
<html> | |
<head> | |
<title>Tooltip Demo</title> | |
<style type="text/css"> | |
@import "http://ajax.googleapis.com/ajax/libs/dojo/1.3/dojo/resources/dojo.css"; | |
@import "http://ajax.googleapis.com/ajax/libs/dojo/1.3/dijit/themes/tundra/tundra.css"; | |
</style> |
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
function processData(item, request){ | |
var value = myStore.getValue(item, 'group'); | |
var exist = myStore.getValue(item, value); | |
var child = myStore.getValue(item, "name"); | |
console.debug(exist); | |
if (undefined == exist){ | |
console.debug(exist + " Create " + value + " " + child); | |
myStore.newItem({name: value, children:[{_reference: [child]}]}); | |
myStore.save; | |
} |
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 PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html lang="en"> | |
<head> | |
<title>testing</title> | |
<meta name="author" content="Seth Mason"> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
<style type="text/css"> | |
@import "/js/dijit/themes/tundra/tundra.css"; | |
@import "/js/dojo/resources/dojo.css"; |
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
select * | |
from rss | |
where url = 'http://www.skineart.com/feed' | |
and creator in ('BoboMonkey', | |
'Joseph R Tomlinson'); |
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
// ternary to the nth degree | |
s+='<span class="cpointer '+( | |
t==='date' || t==='time' || t==='year' || t==='quarter' || t==='month' || t==='week'? | |
val===5201 || val===1028 || val===1128 ?'purple':'dark_purple': | |
t==='percent'?'blue': | |
t==='id'?'grey_blue': | |
t==='aid'?'green': | |
t==='a'?'dark_green': | |
t==='anumber'?'darker_green': | |
'')+'" onclick="ck(event);'+this.tt+'.ck_filter('+pane_id+','+fe_count+',1)"><input type="checkbox" name="f'+val+'"'+(checked[val]||'')+'> '+title+'</span><br/>' |
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
dojo.require('dojo.data.ItemFileReadStore'); | |
// get items from the returned data...is there a better way? | |
dojo.declare( 'MyDataStore', dojo.data.ItemFileWriteStore, { | |
_getItemsFromLoadedData: function(dataObject) { | |
this.totalCount = dataObject.totalCount; | |
this.inherited(arguemnts); | |
} | |
}); | |
var data = { identifier: "id", |
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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<script src="/js/dojo/dojo.js" djConfig="parseOnLoad:true"></script> | |
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/dojo/1.3.0/dojo/resources/dojo.cs" type="text/css" | |
media="screen" /> | |
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/dojo/1.3.0/dijit/themes/tundra/tundra.css" | |
type="text/css" media="screen" /> | |
<link rel="stylesheet" |
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
{ | |
"SMDVersion": "2.0", | |
"id": "http://friendfeed.com/api", | |
"description": "Friendfeed's API", | |
transport: "JSONP", | |
envelope: "URL", | |
additionalParameters: true, | |
parameters: [ | |
{ name: "format", optional: false, "default": "json" }, |
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
dojo.provide("dojox.yql._base"); | |
dojo.require("dojo.io.script"); | |
(function() { | |
var _d = dojo; | |
var _dxy = dojox.yql; | |
var URL = 'http:/' + '/query.yahooapis.com/v1/public/yql'; | |
_dxy.execute = function( qry, ioArgs ) { |