2
<button dojoType="dijit.form.Button" id="continue1" onclick="funct1();timeTracker._recordEndTime(); timeTracker._track(pageTracker, undefined, 'test2');func2(); " iconClass="dijitEditorIcon dijitEditorIconRedo" type="button" style="float:right">

I am trying to call multiple function like this but only the first function is called. How can make it so that every function being called?

5
  • Your problem is probably that an exception is being thrown, because otherwise all the functions would be called. Check the error console. Commented Dec 11, 2011 at 22:02
  • 1
    You sure funct1() invocation isn't causing an error? Commented Dec 11, 2011 at 22:02
  • That will call each function in sequence (baring errors). Commented Dec 11, 2011 at 22:02
  • You should be looking in your browser error console or debug console to see what javascript errors are happening. Trying to solve problems without looking at the error log is like trying to drive with a blindfold on. Commented Dec 11, 2011 at 22:05
  • @alex all functions are executed without error when using them alone. Commented Dec 11, 2011 at 22:06

1 Answer 1

1

You're getting a script error in the middle of one of your functions.

Try running your code in Chrome, hit F12, and hit the "console" button.

Then reload the page. You will see any script errors printed out to the console.

There are similar features in other browsers as well. For Firefox you may want to install Firebug. For IE, hit F12.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.