Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.