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> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<style type="text/css"> | |
html { height: 100% } | |
body { | |
font-family: Tahoma, Verdana, Arial; | |
height: 100%; | |
margin: 0; |
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
//Must include lawnchair core and adapter chosen ("dom" here), download them from: https://github.com/brianleroux/lawnchair | |
// <script src="Lawnchair.js"></script> | |
// <script src="dom.js"></script> | |
// create a new store | |
var store = new Lawnchair({adaptor:'dom', table:'people'}); | |
// saving documents | |
store.save({name:'brian'}); |
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
// TUTORIAL Lawnchair | |
// Qué hace Lawnchair? | |
// Crea objetos JSON y lo almacena en objetos que podríamos pensarlos como tablas | |
//EJEMPLO: Queremos almacenar los campos con los que el usuario busca en un formulario, | |
// y autocompletarlos cada vez que acceda a la pagina | |