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 script = document.createElement('script'); | |
var code = "alert('foo');"; | |
try{ | |
script.appendChild(document.createTextNode(code)) | |
} catch(e) { | |
// IE | |
script.text = code; | |
} |
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
/* jquery.tinydb - jQuery interface to TinyDB (http://tinydb.org/) | |
* Copyright (c) 2008 Chris Moyer (chris@inarow.net) | |
* | |
* usage: | |
* jQuery.tinydb.read(tinydb_id, callback); | |
* callback is called with the data from TinyDB | |
* | |
* jQuery.tinydb.write({key: val, key2: val2}, callback); | |
* write data, callback is called with tinydb_id string | |
* |