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

OnPageLoad event applied to all pages without doing it manually?

Last post 06-26-2009, 4:29 PM by victor. 3 replies.
Sort Posts: Previous Next
  •  06-26-2009, 12:52 PM 5269

    OnPageLoad event applied to all pages without doing it manually?

    I want to apply a login/logout state detection script to all my pages. I've got it working with the global vars and so forth, but am having to write a specific Page Interaction case for each page. Is there a way to apply such a script to all pages?
  •  06-26-2009, 2:57 PM 5273 in reply to 5269

    Re: OnPageLoad event applied to all pages without doing it manually?

    Copy/paste seems to drop the panel states...

     Feature request for next Axure build?

  •  06-26-2009, 3:04 PM 5274 in reply to 5269

    Re: OnPageLoad event applied to all pages without doing it manually?

    There isn't a way to assign a script to multiple or all pages. This will be a useful feature, Your question ties to some other threads in the forum, around Axure applying object orient approach - in this case - the ability to create scripts in a snippet fashion and apply those to objects (pages, widgets and so on). Although, the current method, while labor intenssive is a straight forward method to ensure the proper context of each script.

    Best,

    -Ezra


    Disclaimer: I am not an employee of Axure nor am I compensated by the company in any way, shape or form. Rather, I have a vested interest In its continued development as an avid user of the application on a daily-basis. (disclaimer by Ari Feldman)
  •  06-26-2009, 4:29 PM 5277 in reply to 5269

    Re: OnPageLoad event applied to all pages without doing it manually?

    Hi TheWebCoder, if the OnPageLoad interaction is applied to certain widgets that can be contained in a master, you can use the OnPageLoad in the master to define the actions. Then, on each page that the master is used, the OnPageLoad in the master will fire when the page loads.
View as RSS news feed in XML