Is it possible to ‘chain’ functions? Say, I have a serverclickhandler and then would like to invoke another function after it right away. How do I go about it?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To have a second handler executed after the first one you just need to call it directly from your first handler, e.g.
I placed the
appvar on a global scope so you can get it only when necessary (sharing it between the functions without explicit passing it), saving a possibly costly and unknown behavior (to me at least) of a secondgetActiveApplication()call.