Loading ...
Sorry, an error occurred while loading the content.

RE: [ydn-javascript] Re: YUI History current state

Expand Messages
  • Julien Lecomte
    Hi, Here is the same scenario with more details: 1. Page loads and is in state A, represented by the string A . 2. User does something. The
    Message 1 of 4 , Oct 10, 2007
    • 0 Attachment

      Hi,

       

      Here is the same scenario with more details:

       

      1.       Page loads and is in state A, represented by the string “A”.

      2.       User does something. The browser history manager (bhm) is asked to store state B, represented by the string “B”. The onStateChange handler is called, with “B” passed in parameter, and the page changes its UI to correspond to state B.

      3.       User does something else. The bhm is asked to store state C, represented by the string “C”. The onStateChange handler is called, with “C” passed in parameter, and the page changes its UI to correspond to state C.

      4.       User presses the back button. The onStateChange handler is called, with “B” passed in parameter, and the page changes its UI to correspond to state B.

      5.       User presses the forward button. The onStateChange handler is called, with “C” passed in parameter, and the page changes its UI to correspond to state C.

       

      Does this make more sense now?

       

      Regards,

      Julien

       

       

      From: ydn-javascript@yahoogroups.com [mailto:ydn-javascript@yahoogroups.com] On Behalf Of David Golightly
      Sent: Wednesday, October 10, 2007 12:46 PM
      To: ydn-javascript@yahoogroups.com
      Subject: [ydn-javascript] Re: YUI History current state

       

      Julien,

      Thanks for the reply. My question, I think, goes beyond the concept of "initialState". Consider once more:

      1. Page loads and is in state A.
      2. User does something, page is in state B.
      3. User does something else, page is in state C.
      4. User presses "back". Page is in state B.
      5. User presses forward: How to get to state C?

      Thanks,

      David

       

    Your message has been successfully submitted and would be delivered to recipients shortly.