I’d like to create a callback on a simple function.
I have this function which is called on button click:
function main(){ };
So I’d like main(), when its done to call this:
function test(){ }
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.
if the main() function not use ajax,you can use:
if the main() function use ajax,you can call test() in complete function like this: