[Dojo-interest] How do I hide this content pane?

Jared Jurkiewicz jared.jurkiewicz at gmail.com
Fri Aug 22 16:00:28 UTC 2008


Or simpler:

dojo.style(dijit.byId("applicationHeader").domNode, "display", "none");

-- Jared



On Fri, Aug 22, 2008 at 11:58 AM, Jared Jurkiewicz
<jared.jurkiewicz at gmail.com> wrote:
> Style the domNode of the contentPane to hidden.
>
> dojo.style(dojo.query("#applicationHeader"), "display", "hidden");   //Or none.
>
> -- Jared
>
>
> On Fri, Aug 22, 2008 at 11:27 AM,  <dave.alvarado at remanresource.com> wrote:
>> Hi,
>>
>> In certain situations I want to hide the DIV with id="applicationHeader", at the top of my page ...
>>
>> <body>
>>                <div dojoType="dijit.layout.ContentPane" layoutAlign="top" id="applicationHeader" jsId="applicationHeader">
>>                        <div><!-- print username / log out links --> ...</div>
>>                        <div class="header">
>>                                <div class="headerRt" id="divHeader">
>>                                        NPS Application Configuration
>>                                </div>
>>                        </div>
>>                </div>
>>                <div dojoType="dijit.layout.TabContainer" id="tabs" jsId="tabs"  layoutAlign="client">
>>                ...
>>                </div>
>>
>> Without it being hidden, it looks like this:
>>
>> http://screencast.com/t/OrEkqRdLe
>>
>> but when I do manage to hide the DIV using this code:
>>
>>                dojo.query("#applicationHeader").removeClass("dijitContentPane");
>>                dojo.query("#applicationHeader").addClass("hidden");       // Simply contains display:none
>>
>> the DIV is hidden but nothing moves up ...
>>
>> http://screencast.com/t/27jU5jq2ln
>>
>> What do I need to do to hide the DIV and also have everything move up?
>>
>> Thanks, - Dave
>> _______________________________________________
>> FAQ: http://dojotoolkit.org/support/faq
>> Book: http://dojotoolkit.org/docs/book
>> Forums: http://dojotoolkit.org/forum
>> Dojo-interest at dojotoolkit.org
>> http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest
>>
>


More information about the Dojo-interest mailing list