Welcome to Axure Community Site Sign in | Join | Help
in Search

Changing masters based on raised events

Last post 09-26-2008, 5:14 PM by Jeffk. 2 replies.
Sort Posts: Previous Next
  •  09-26-2008, 3:38 PM 3400

    Changing masters based on raised events

    I'm wondering if I can have two different versions of the same master, and used raised events to go back and forth. For example, one instance of the master has a "log in" button, and the other instance has a "log out" button (instead of using 2 different masters). Then, if someone clicks a button, it can take them to a page using either instance of the master.
  •  09-26-2008, 4:55 PM 3402 in reply to 3400

    Re: Changing masters based on raised events

    It sounds like what you want is to create one master and on that master have a dynamic panel with two states. One state will have the login button and the other will have the logout button.

    Then, you can place that master on two pages and initialize the state of the dynamic panel in the OnPageLoad event of the page. If you always know that it will be "logout" on a page, you can just use the action to set the dynamic panel state.

    If you don't know if they are logged in or not on a page, you can use variables. These videos and articles might help to learn about variables, conditions, and OnPageLoad.

    http://www.axure.com/p202_5.aspx

    http://www.axure.com/p202_6.aspx

  •  09-26-2008, 5:14 PM 3404 in reply to 3402

    Re: Changing masters based on raised events

    That makes sense...I'm already using variables to find out whether the user is logged in, so I'll give the dynamic panel on the master a try...thx!
View as RSS news feed in XML