Skip to content

Instantly share code, notes, and snippets.

View neonstalwart's full-sized avatar

Ben Hockey neonstalwart

  • google.com
  • Boulder, CO
View GitHub Profile
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>FisheyeList Widget Demonstration</title>
<style type="text/css">
body, div, dl, dt, dd, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td {
margin: 0;
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>FisheyeList Widget Demonstration</title>
<style type="text/css">
body, div, dl, dt, dd, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td {
margin: 0;
current template:
<div class="dojoxGrid" hidefocus="hidefocus" wairole="grid" dojoAttachEvent="onmouseout:_mouseOut">
<div class="dojoxGridMasterHeader" dojoAttachPoint="viewsHeaderNode" tabindex="-1" wairole="presentation"></div>
<div class="dojoxGridMasterView" dojoAttachPoint="viewsNode" wairole="presentation"></div>
<div class="dojoxGridMasterMessages" style="display: none;" dojoAttachPoint="messagesNode"></div>
<span dojoAttachPoint="lastFocusNode" tabindex="0"></span>
</div>
possible alternative:
<div class="dojoxGridView" wairole="presentation">
<div class="dojoxGridHeader" dojoAttachPoint="headerNode" wairole="presentation">
<div dojoAttachPoint="headerNodeContainer" style="width:9000em" wairole="presentation">
<div dojoAttachPoint="headerContentNode" wairole="row"></div>
</div>
</div>
<input type="checkbox" class="dojoxGridHiddenFocus" dojoAttachPoint="hiddenFocusNode" wairole="presentation" />
<input type="checkbox" class="dojoxGridHiddenFocus" wairole="presentation" />
<div class="dojoxGridScrollbox" dojoAttachPoint="scrollboxNode" wairole="presentation">
<div class="dojoxGridContent" dojoAttachPoint="contentNode" hidefocus="hidefocus" wairole="presentation"></div>
<script type="text/javascript">
dojo.require("dojo.data.ItemFileWriteStore");
var fillStore = function(){
dojo.xhrGet({
url: "some/url",
handleAs: "json",
load: function(data, ioArgs){
// handle your data here
}
<!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=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
@import "http://ajax.googleapis.com/ajax/libs/dojo/1.2/dojo/resources/dojo.css";
</style>
<script type="text/javascript" src='http://ajax.googleapis.com/ajax/libs/dojo/1.2/dojo/dojo.xd.js'
<!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=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
@import "http://ajax.googleapis.com/ajax/libs/dojo/1.2/dojo/resources/dojo.css";
</style>
<script type="text/javascript" src='http://ajax.googleapis.com/ajax/libs/dojo/1.2/dojo/dojo.xd.js'
new dijit.form.ComboBox({
store: new dojo.data.ItemFileReadStore({
data: cityJson
}),
autoComplete: true,
query: {
state: "*"
},
style: "width: 150px;",
required: true,
var service = function(query, queryOptions){
var dfd = new dojo.Deferred();
var results = [];
// TODO: generate your results array here - it should look like your GET response
results = [
{
id: 'item1'
},
{
@neonstalwart
neonstalwart / api.js
Created January 31, 2010 03:00
a script to do the conversion of dojo's api.xml into scriptdoc format
dojo.require('dojox.dtl');
dojo.require("dojox.dtl.Context");
dojo.addOnLoad(function(){
var url = 'http://download.dojotoolkit.org/release-1.4.0/api.json';
dojo.xhrGet({
url: url,
handleAs: "json"
}).addCallback(function(data){
var template = new dojox.dtl.Template(