Topic: Observer in jQuery with Ruby on Rails

Hello together

Is somebody able to change the following code into jQuery code?
I copied the code from dev.nozav.org/rails_ajax_table.html.

new Form.Element.Observer('query', 2, function(element, value) {
  Element.show('spinner'); 
  new Ajax.Updater('table', '/item/list', { 
    asynchronous:true,
    evalScripts:true,
    onSuccess:function(request) {
      Element.hide('spinner')},
    parameters:'query=' + value
  })
})

Thank you very much!

Last edited by shub (2011-08-29 14:04:54)