¡@

Home 

2014/10/16 ¤W¤È 12:09:31

jquery Programming Glossary: toggleloading

rails3 rails.js and jquery catching success and failure of ajax requests

http://stackoverflow.com/questions/3501317/rails3-rails-js-and-jquery-catching-success-and-failure-of-ajax-requests

form remote true do and inside some javascript application.js you bind the events jQuery function create a convenient toggleLoading function var toggleLoading function #loading .toggle #tool form .bind ajax loading toggleLoading .bind ajax complete toggleLoading.. some javascript application.js you bind the events jQuery function create a convenient toggleLoading function var toggleLoading function #loading .toggle #tool form .bind ajax loading toggleLoading .bind ajax complete toggleLoading .bind ajax success.. create a convenient toggleLoading function var toggleLoading function #loading .toggle #tool form .bind ajax loading toggleLoading .bind ajax complete toggleLoading .bind ajax success function xhr data status #response .html status Great UPDATE 29 12..