SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm happily using SPRibbonPostBackCommand to a custom save button. It generates a Postback and everything is fine and dandy.

Previously to generating a Postback I would like to make one Javascript call (e.g. to a function RemoveAllStatus()). I tried added an SPRibbonCommand prior to the SPRibbonPostBackCommand, but now only the SPRibbonCommand fires and the postback doesn't fire anymore.

Any ideas? Basically I want to show a "waiting for save" message via Javascript (which of course would be replaced once the page is reloaded after the postback.

share|improve this question
up vote 1 down vote accepted

I think that the SPRibbonCommand return false value, thus the post back event does not invoked. To solve this issue you can create you own ribbon component. See this or this post to understand how to do this.

share|improve this answer
The key is to use the handleCommand in the custom component. – Dennis G Sep 11 '12 at 13:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.