View Full Version : execute method after other
sofway
9 Aug 2010, 11:54 AM
Hi,
I have to call a method and then call another but with this restriction: The second method can be executed just when the first one has done.
Does Extjs has some helper to this situation?
Thanks
j_mmontero
9 Aug 2010, 12:06 PM
http://dev.sencha.com/deploy/dev/docs/source/Ext.html#method-Function-createCallback
Tim Toady
9 Aug 2010, 12:07 PM
Why not just call the second method from the end of the first? Or you could return something from the first function to signify an error?
j_mmontero
9 Aug 2010, 12:14 PM
Why don't you post some code to see what you're trying to do
aconran
9 Aug 2010, 1:34 PM
Take a look at createInterceptor and createSequence.
createInterceptor will create a function that runs before another function.
createSequence will create a function that runs after another.
Powered by vBulletin® Version 4.2.3 Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.