1

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.

1 Answer 1

1

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.

1
  • The key is to use the handleCommand in the custom component.
    – Dennis G
    Sep 11, 2012 at 13:50

Your Answer

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

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