User Manual
Samples

Introduction    Style customize    Bar position    Items' actions

HTML code as items' text    XPBar from the database

Change XPBar Behaviour    Standard vs PRO

On-line Builder

PRO

STD

123Guide   

Order PRO Now    FAQ

CODETHATXPBAR FAQ

Questions List

How do I insert CodeThatXPBar in where the old navigation bar was? Do I have to compile it as java and stick it in as an applet?

Is it possible to have more than one level expandable menus?

Is there any way to expand the panes when the users moveover on the item bar rather than click on the title bar and all other panes are collapsed at the same time?

Does xp menu keep its state between .net postbacks?

We code our web applications to load and run javascript from hidden (child) frames. I tried to do just that with the CodeThatXPBar but with no success.

Is there a way to initially display the xpbar with one or more of it's "panes" expanded? (as if the user had clicked on the title bar).

Answers

How do I insert CodeThatXPBar in where the old navigation bar was? Do I have to compile it as java and stick it in as an applet?

No JavaScript integration is somewhat different from the Java applets integration. The best starting point for you would be to read the following beginners guide: 123 User Guide. It will give you step by step instructions on how to create and interate the bar into the page. You may also want to inspect the samples files and/or files produced by the CodeThatBuilder.

Is it possible to have more than one level expandable menus?

No, this is not possible for now. For more than two expandable levels I'd recommend to use a tree.

Is there any way to expand the panes when the users moveover on the item bar rather than click on the title bar and all other panes are collapsed at the same time?

Expand/collapse by mouseover is not possible in current version of XPBar. However, you can collapse all items except clicked one with some additional scripting.

Does xp menu keep its state between .net postbacks?

No, after page refresh all items will be collapsed. But it's possible to expand some items using additional scripting: http://www.codethat.com/forum/viewtopic.php?t=3

We code our web applications to load and run javascript from hidden (child) frames. I tried to do just that with the CodeThatXPBar but with no success.

The current version of XPBar will not work after onLoad event because of compatibility restriction. We are currently working on that, so this feature will be available soon for modern browsers. For now it's better to include a bar script and create an XPBar within a page it's placed in.

Is there a way to initially display the xpbar with one or more of it's "panes" expanded? (as if the user had clicked on the title bar).

Yes there's a way. Please use the code:

<html><head> 

<script language="javascript1.2" src="../Scripts/codethatsdk.js"></script> 
<script language="javascript1.2" src="../Scripts/codethatxpbarstd.js"></script> 
<script language="javascript1.2" src="bar1.js"></script> 
<!-- bar definition //--> 
<script language="javascript1.2">
<!--
var bar1 = new CXPBar(BarDef, 'bar1'); //create the bar as usual
//functions below are required to expand items
function openitem (idx) {
	bar1.menu.items[idx].toggle()
}

function load_h () {
	openitem(0); //0 is an index of an item to expand
	openitem(2); //so on
	bar1.click(); //required!
};
//set the onload handler
CodeThat.setOnLoad(load_h); 
//-->
</script> 
</head> 
<body> 
<script language="javascript1.2">
<!--
bar1.create();
bar1.run(); 
//-->
</script> 
</body> 
</html>

© CodeThat.com, 2003-2005
Design by XTLabs, Inc.