Rails observe_field using jQuery -


What is the same as the Rail / Prototype Inspection Method using jQuery without jRails?

I'm doing a Will-Pagnet with a search-like-like-type:

  2,: update = > 'Result',: loading => "element.show ('spinner')",: full => "element. Hide ('spinner')",: url => {: controller => 'afoo': action => 'Search'}, with => "search = '+ escape (value)"%> 

To use jQuery, you will need to use a selector, something that should work

  $ ("#search"). Show bands ("blurred", function () {$ ("#spinner"). Show (); // spinner var form = $ (this). Parents ("form"); // Hold the search bar wrapper Var URL = form.attr ("action"); // Hold the URL from the action value of the form. Var formadata = f orm.serialize (); // form $ .get (url, formdata, function (html) { // Find an AJAX, get the data in it, the subsequent work is done to get a successful job. $ ("#spinner"). Hide (); // Spinner $ ("#come") Hide Html Html); // Because of the action, the "result" has been replaced}};})     

P> code> $ ("#search") .bind ("keys", // etc ...


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -