[yast-devel] WebYaST: AJAX callbacks, chaining AJAX calls
Hi, in the services plugin I needed to call an AJAX function (current status) when another AJAX call is finished (start/stop a service). I found that remote_function and link_to_remove provide before and after hooks. Example: Show a progress indicator while remote call is in progress: link_to_remote ..., :loading => "$('#progress').show()", :complete => "$('#progress').hide()" :complete can be also used to chain another AJAX call: link_to_remote ..., :complete => remote_function(:update => ...) See link_to_remote documentation for more details. I hope this helps someone else... -- Best Regards Ladislav Slezák Yast Developer ------------------------------------------------------------------------ SUSE LINUX, s.r.o. e-mail: lslezak@suse.cz Lihovarská 1060/12 tel: +420 284 028 960 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
participants (1)
-
Ladislav Slezak