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

Re: [ydn-javascript] Non-working Tabview & History Demo

Expand Messages
  • Eric Miraglia
    Thanks for the tip, Sarah; we ll investigate. -Eric
    Message 1 of 2 , Dec 4, 2008
    • 0 Attachment
      Thanks for the tip, Sarah; we'll investigate.


      On Dec 4, 2008, at 8:14 PM, sarahg.gray wrote:


      Heads up that one of the YUI examples of the History module is not
      working correctly. It is a demonstration using the tabview widget
      with the history module. In the demo, you can go back and forth to
      the tabs using the browser buttons, but the content of the tabs is
      never updated: it starts and always remains on the content from tab #2. 

      http://developer. yahoo.com/ yui/examples/ history/history- tabview_clean. html

      I poked around and found this problem:

      The markup in question is:
      <div class="yui-content" >
      <div style="display: none;" id="tab1"><p> Love you</p></div>
      <div style="display: block;" id="tab2"><p> Hate You</p></div>
      <div style="display: none;" id="tab3"><p> Maybe You</p></div>

      When I deleted the style calls, the tabs worked fine:

      <div class="yui-content" >
      <div id="tab1"><p> Love you</p></div>
      <div id="tab2"><p> Hate You</p></div>
      <div id="tab3"><p> Maybe You</p></div>

      You might want to update the markup in the example. 


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