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

When the ribbon bar is visible (i.e., not in Browse mode), I want certain things to happen on my page (mostly involving changing styles of some items). How do I determine if it's visible or not or trigger off the event that the user changed the display state of it?

share|improve this question

1 Answer 1

You can try something like this. Take a look at this

$('#s4-ribbonrow').click(function(e) {
        if ($(e.target).hasClass('ms-cui-tt-span')) {
            if($(e.target).html() == 'Browse')
               alert('browse')
            if(RibbonIsMinimized()) {
               alert($(e.target).html());
            }
        }
    });
share|improve this answer
    
Link is dead. Here's the content (via archive.org): web.archive.org/web/20120205203124/http://sharepointtaproom.com/… –  Eccentropy Aug 24 at 17:49

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.