<span style='font-family:Verdana'><span style='font-size:12px'>Hello again Adrian,<br /> 
<br /> 
For closure on this post I wanted to let you know that I have now resolved my problem! And of course, your advice to revisit the test cases - again - provided the solution.<br /> 
<br /> 
Instead of continuing to make my existing code work, I took the rip-up-and-retry approach, and designed again from scratch, validating with modified test cases - and went rather directly to a working app!<br /> 
<br /> 
Clearing the work area is always helpful with problem implementations, and I suppose starting fresh with the dojo familiarity gained over the past couple of weeks did not hurt!<br /> 
<br /> 
So, for completeness for anyone with a similar need, I now handle it like this:<br /> 
<br /> 
1. Page HTML now includes two empty calendar ScrollableViews - cal1 and cal2<br /> 
2. Top level "li" onclick() calls my own loadCal(li,mn,yr) handler with NULL mn-yr as default<br /> 
3. loadCal() detects if any calendar has been previously loaded via loadCal.state var<br /> 
&nbsp;&nbsp;&nbsp; 3.a If not loaded, uses xhrGet() to fetch current cal into cal1.containerNode (parse(cal1.containerNode), transition to cal1 in callback)<br /> 
&nbsp;&nbsp;&nbsp; 3.b If previously loaded, simply transitions to existing state of cal1<br /> 
4. Fetched calendar content includes ToolBarButtons encoded for previous/next month, onclicks to loadCal()<br /> 
5. When ToolBarButton is selected loadCal() determines current/next view states -<br /> 
&nbsp;&nbsp; 5.a next.destroyDescendants(), xhGet()-&gt;next.containerNode.innerHTML, then parse(next.containerNode)<br /> 
&nbsp;&nbsp; 5.b current.performTransition(next..., callback())<br /> 
&nbsp;&nbsp; 5.c Transition callback: If xhrGet() was to cal2 then destroy/set cal1 containerNode = cal2 containerNode<br /> 
6. When user returns to top level, then uses "li" to re-enter calendar, they always see cal1 which is always last state<br /> 
<p style="margin:0px; padding:0px;" > 
        <br /> 
        The loadCal() handler including xhrGet() callback and all handling is now clean and compact - much better than before.<br /> 
        <br /> 
        Now I wonder what I was trying to do before that was so awful! Thanks for the focus!<br /> 
        <br /> 
        Robert<br /> 
        <br /> 
        <br /> 
         </p> 
<blockquote style="border-left: 1px solid #CCC; padding-left: 5px; margin-left: 5px; margin-bottom: 0px; margin-top: 0px; margin-right: 0px;" type="cite"> 
        <p style="margin:0px; padding:0px;" > 
                <span style="font-family:Verdana"><span style="font-size:12px">----- Original Message -----</span></span></p> 
        <p style="margin:0px; padding:0px;" > 
                <span style="font-family:Verdana"><span style="font-size:12px">From: Adrian Vasiliu [via Dojo Toolkit]</span></span></p> 
        <p style="margin:0px; padding:0px;" > 
                <span style="font-family:Verdana"><span style="font-size:12px">Sent: 05/26/12 02:23 AM</span></span></p> 
        <p style="margin:0px; padding:0px;" > 
                <span style="font-family:Verdana"><span style="font-size:12px">To: astronomer</span></span></p> 
        <p style="margin:0px; padding:0px;" > 
                <span style="font-family:Verdana"><span style="font-size:12px">Subject: Re: Problem dynamically loading headings/toolbars</span></span></p> 
        <br /> 
        <div> 
                <p style="margin:0px; padding:0px;" > 
                        Hi,</p> 
                <div> 
                        Maybe you did it already, but if not, you may want to search in dojox/mobile/tests for a closest match to your needs. I'm not sure there's one doing exactly what you want, but some are doing ajax loading of content.&nbsp;</div> 
                <div> 
                        Adrian</div> 
                <div> 
                         </div> 
                <br /> 
                ________________________________________________________<br /> 
                Dojotoolkit: <a href="http://dojotoolkit.org" target="_top" rel="nofollow" link="external">http://dojotoolkit.org</a><br /> 
                Reference Guide: <a href="http://dojotoolkit.org/reference-guide" target="_top" rel="nofollow" link="external">http://dojotoolkit.org/reference-guide</a><br /> 
                API Documentation: <a href="http://dojotoolkit.org/api" target="_top" rel="nofollow" link="external">http://dojotoolkit.org/api</a><br /> 
                Tutorials: <a href="http://dojotoolkit.org/documentation" target="_top" rel="nofollow" link="external">http://dojotoolkit.org/documentation</a><br /> 
                <br /> 
                <a href="/user/SendEmail.jtp?type=node&amp;node=3985788&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]</a><br /> 
                <a href="http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest" target="_top" rel="nofollow" link="external">http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest</a><br /> 
                <br /> 
                <br /> 
                <hr noshade="noshade" size="1" /> 
                <div style="color:#444; font: 12px tahoma,geneva,helvetica,arial,sans-serif;"> 
                        <div style="font-weight:bold"> 
                                If you reply to this email, your message will be added to the discussion below:</div> 
                        <a href="http://dojo-toolkit.33424.n3.nabble.com/Problem-dynamically-loading-headings-toolbars-tp3985785p3985788.html" target="_top" rel="nofollow" link="external">http://dojo-toolkit.33424.n3.nabble.com/Problem-dynamically-loading-headings-toolbars-tp3985785p3985788.html</a></div> 
                <div style="color:#666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em"> 
                        To unsubscribe from Problem dynamically loading headings/toolbars, <a href="" target="_top" rel="nofollow" link="external">click here</a>.<br /> 
                        <a href="http://dojo-toolkit.33424.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&amp;id=instant_html%21nabble%3Aemail.naml&amp;base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&amp;breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" style="font:9px serif" target="_top" rel="nofollow" link="external">NAML</a></div> 
        </div> 
</blockquote> 
<p style="margin:0px; padding:0px;" > 
         </p> 
</span></span>

        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://dojo-toolkit.33424.n3.nabble.com/Problem-dynamically-loading-headings-toolbars-tp3985785p3985825.html">Re: Problem dynamically loading headings/toolbars</a><br/>
Sent from the <a href="http://dojo-toolkit.33424.n3.nabble.com/">Dojo Toolkit mailing list archive</a> at Nabble.com.<br/>