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
<table id="table-1" bgcolor="gray"> | |
<thead> | |
<tr bgcolor="lightgray"> | |
<th>Id</th> | |
<th>Date</th> | |
<th>Hour</th> | |
<th>Load</th> | |
</tr> | |
</thead> | |
<tbody> |
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
<html lang="en"> | |
<head> | |
<title>Couch View</title> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript" charset="utf-8"></script> | |
<script type="text/javascript" src="jquery.couch-view.js"></script> | |
<script> | |
$(document).ready(function() { | |
$(".grid-test").couchview({ | |
url: "http://69.164.211.38:8080/mydb/_design/tests/_view/", |
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
Nitin Borwankar: So big picture question that helps me understand why I should spend time grokking evently - two part question | |
Nitin Borwankar: a) why did you feel the need to create yet another framework b) what can I do with evently I couldn't do with | |
jQuery events etc? | |
Chris Anderson: evently was a natural consequence of using jquery | |
Chris Anderson: it just wraps up all the repetitive crap I kept doing in jquery, and does it automatically | |
Chris Anderson: so b) nothing | |
Nitin Borwankar: ok cool | |
Nitin Borwankar: second q | |
Chris Anderson: I think evently was discovered not invented | |
Nitin Borwankar: what are the component files of an evently minimal app (there's too much in a couchapp to tell what's essential |
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
// just got # 2 so far | |
// can do number 3 by removing first two handlers but apparently thats not what you want | |
<div id="the_div"> | |
<ul id="the_list"> | |
<li id="the_item">Click me!</li> | |
</ul> | |
</div> |
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
var Person = function(name){ | |
this.name = name; | |
Person.prototype.getName = function(){ return this.name}; | |
} | |
var thomas = new Person('Thomas'); | |
var amy = new Person('Amy'); |
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
(function(name, container){ | |
var index=10; | |
function log(){ | |
console.log(index); | |
} | |
function iterate(){ |
NewerOlder