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

Calendar on Tab works first time only

Expand Messages
  • Pete Isburgh
    Goal: hook a Calendar widget onto some AJAX driven content on a Tab. Current design: after contentReady , build DIV element with id and insert in dynamic
    Message 1 of 1 , Sep 1, 2008
    • 0 Attachment
      Goal: hook a Calendar widget onto some AJAX driven content on a Tab.

      Current design: after 'contentReady', build DIV element with id and
      insert in dynamic content where the Calendar constructor will hook it.

      Issue: Works fine the first time Tab is clicked. If switch to another
      Tab and back, Calendar is lost from DOM and will not render. What am I
      missing? So far Firebug has not helped explain this.

      Should the first Calendar be manually removed from DOM at
      'beforeContentChange' event?

      Can a permanent Calendar be constructed in a different part of DOM
      which is appended to Tab content after 'contentReady' then removed at
      'beforeContentChange' ?

      What is the best practice?

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