remove panels

2 views
Skip to first unread message

posade

unread,
Oct 19, 2006, 2:11:41 PM10/19/06
to cchits
Hallo, I have done a clone of cchits and then tried to remove the
panels on the ning bar, but it doesn't seem to be working because they
just dissapear 7or 8 seconds after the page is loaded.
That's the way I did, as is explained in developers:

{literal}dojo.addOnLoad(function(){
ning.Bar.removePanel("user");
ning.Bar.removePanel("people");
ning.Bar.removePanel("invite");
ning.Bar.removePanel("explore");
ning.Bar.removePanel("manage");
});{/literal}//dojo.byId('xn_bar_menu_search').action = searchpath;
</script>

Should I change something that is wrong on it?.

I don't really know javascript, so an answer would be a great help, I
don't think I'll do too many changes after this.Thank you.

Fabricio Zuardi

unread,
Oct 19, 2006, 3:59:59 PM10/19/06
to cch...@googlegroups.com
Yes, unfortunately there is no documented way to don't load the bar,
only remove it after the loading, which is a bit odd for the users.
One workaround is to make the ningbar invisible through css in
addition to the javascript removal, this way the users dont need to
see the bar initially, try this to completely remove the bar:

<xn:head>
<style>
#xn_bar{
display:none;
}
</style>
<script type="text/javascript">
dojo.addOnLoad(function(){
dojo.byId("xn_bar").parentNode.removeChild(dojo.byId("xn_bar"));
});
</script>
</xn:head>

[]s


--
Fabricio C Zuardi
http://cchits.org

posade

unread,
Oct 19, 2006, 5:16:54 PM10/19/06
to cchits
I tried to do that before and it happened the same: it dissapeared
after it was loaded .

Could you explain this with code, please?:


"One workaround is to make the ningbar invisible through css in

addition to the javascript removal..."

I know a bit of css but not much. I would like to try that if it's
possible,
I'd like just to remove the panels and maybe add others lately when I
look for expert support nearby, so I won't be asking here all the time
for help. Thanks and sorry if I'm wasting your time.

Reply all
Reply to author
Forward
0 new messages