mercredi 18 février 2015

How to add a complete function after show/hide jquery tabs option?


This is my hide code:



$(this).tabs("option", "hide", {
effect: 'slide',
direction: effdir.hide,
duration: syncanimtime,
complete: function () {
alert("why this function do not work?")
}});


I need to add some code after the Tabs Panel hide effect has been completed, but if i add a complete function (as in the .effect() method) it don't work.


What I do not understand is that in the official page (http://ift.tt/1zOUsq7) says:



Object: If the value is an object, then effect, delay, duration, and easing properties may be provided. If the effect property contains the name of a jQuery method, then that method will be used; otherwise it is assumed to be the name of a jQuery UI effect. When using a jQuery UI effect that supports additional settings, you may include those settings in the object and they will be passed to the effect. If duration or easing is omitted, then the default values will be used. If effect is omitted, then "fadeOut" will be used. If delay is omitted, then no delay is used.



How can I get it running?


Thanks in advance





Aucun commentaire:

Enregistrer un commentaire