-
26 Feb 2007 3:37 PM #1
Side Effect with Animation v1.0a2
Side Effect with Animation v1.0a2
I was changing up some code and wanted to point this out to see if this is an issue.
This snip works great. Props for the inline animation.
but it had side effect when I putCode:Ext.get('error').hide().update(response.errorMessage).slideIn("t").pause(2).slideOut("t");
with the update at the end it never shows any code. and doesn't react to the pause.Code:Ext.get('error').hide().update(response.errorMessage).slideIn("t").pause(2).slideOut("t").update("");
or
uses the pause but never shows the text until it slides out.Code:Ext.get('error').hide().update(response.errorMessage).slideIn("t").pause(2).slideOut("t").hide();
If I am not using this right then could someone please advise. If this is a bug then I hope this helps.
Tested in: IE7, FireFox
-
26 Feb 2007 7:34 PM #2
At the moment, it is slightly confusing, but you cannot chain just any Element methods together with effects like that. The reason is that only the Fx methods go through the internal effects queue so that they get sequenced correctly. Adding non-Fx method calls (like update) in the chain can have unexpected results.
One thing you can do is pass a callback into the effects methods, so you might try adding a separate function (it can be anonymous) that does your final update, and pass that in as the callback to your last effect so that it gets called after the slideOut completes.
We'll be sure to clarify this limitation once the docs have been updated.
Similar Threads
-
highlight effect
By jamaljohnson in forum Ext 1.x: Help & DiscussionReplies: 8Last Post: 13 Apr 2011, 10:04 PM -
SlideUp - Effect??
By humpdi in forum Ext 1.x: Help & DiscussionReplies: 3Last Post: 26 Mar 2007, 7:57 AM -
enableDragDrop in grid has no effect
By rodiniz in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 28 Feb 2007, 6:55 AM -
blindShow animation effect
By electric_bit in forum Ext 1.x: Help & DiscussionReplies: 5Last Post: 27 Dec 2006, 5:27 AM -
Server-side vs. Client-side...
By zquirm in forum Community DiscussionReplies: 2Last Post: 22 Dec 2006, 8:15 PM


Reply With Quote