Skip to content

Instantly share code, notes, and snippets.

@sandro
Created February 17, 2009 20:28
Show Gist options
  • Save sandro/65951 to your computer and use it in GitHub Desktop.
Save sandro/65951 to your computer and use it in GitHub Desktop.
function do_it(){
var live_query_src = 'http://github.com/brandonaaron/livequery/raw/e634549f1e13b5418fb8d75572866846a332ec8d/jquery.livequery.js';
jQuery.getScript(live_query_src, function(){
jQuery('textarea').livequery(function(){jQuery(this).attr('rows', 20)})
});
}
function load_jquery(){
var s=document.createElement('script');
s.type='text/javascript';
s.src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js';
var head = document.getElementsByTagName("head")[0];
var done = false;
s.onload = s.onreadystatechange = function(){
if ( !done && (!this.readyState ||
this.readyState == "loaded" || this.readyState == "complete") ) {
done = true;
head.removeChild(s);
jQuery.noConflict();
do_it();
}
};
head.appendChild(s);
}
load_jquery();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment