Skip to content

Instantly share code, notes, and snippets.

@fermion
Forked from anonymous/gist:174729
Created August 25, 2009 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fermion/174731 to your computer and use it in GitHub Desktop.
Save fermion/174731 to your computer and use it in GitHub Desktop.
document.observeSelect = function(){
$$('select.get').each(function(element){
if(!element.observingChange){
element.observe('change', function(event){
var e = event.element();
if(e.isActive()){
e.indicate();
document.ajaxRequest(e, e.readAttribute('src'), 'get', event, e.serialize());
}
});
element.observingChange = true;
}
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment