JavaScript.CoolDev.Com Support Forums
Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com
| Author |
Message |
illscienfic Guest
|
Posted: Thu Aug 21, 2003 3:13 pm Post subject: my tree doesnt open automatically under windows ie |
|
|
When I open up my site my tree is all jumbled at the top, or on top of each other. It only happens under windows ie.
var TREE1_NODES = [
['Section Overview', null, null,
],
['', null, null],
['Research Efforts', null, null,
['Darpa Mars', null, null],
['Segway', null, null],
],
['', null, null],
['Facilities', null, null,
],
['', null, null],
['Visitors', null, null,
],
['', null, null],
['Outreach', null, null,
],
['', null, null],
['Contact Us', null, null,
],
];
Is there something wrong with this? |
|
| Back to top |
|
 |
illscientific Guest
|
Posted: Thu Aug 21, 2003 3:16 pm Post subject: also |
|
|
| Also, after I click on the jumbled tree nodes it opens up the tree and works fine. Its just the initial loading of the page and every time I refresh it that it becomes jumbled again. |
|
| Back to top |
|
 |
illscientific Guest
|
Posted: Thu Aug 21, 2003 3:31 pm Post subject: nevermind i got it! |
|
|
I read a post to the new documentation and it says to put the <script> tag by the <body> tag and not inside any tables. This fixed my problem but now I guess I am unable to do what I wanted to do. I had this code:
<td width="180" valign="top">
<img src="/Simages/spacer.gif" width="1" height="1" border="0"/>
<?
// show the correct links
switch($section) {
case "home":
?>
Show some tool bar links here ...
<?
break;
case "admin":
// USER MANAGEMENT OPTIONS
if(in_group("Admins")) {
?>
<span class="toolbar_text">Admin Section:</span>
<table width="130" cellpadding="0" cellspacing="1" border="0" vspace="5">
<?
Show some more toolbar links here....
?>
</table>
<br />
<?
}
}
?>
Basically I wanted to be able to change the links available to users based on group priviledges. Is there a way to do this with the tree. I had stuck the :
<script language="JavaScript">
var demoname = "Tree1";
new COOLjsTree (demoname, TREE1_NODES, TREE1_FORMAT);
</script>
In between there so I could have like...diferent tree nodes for different groups but well you get the idea... is there a way to do this with out haveing it all jumbled? |
|
| Back to top |
|
 |
illscientific Guest
|
Posted: Thu Aug 21, 2003 3:41 pm Post subject: the power of coffee |
|
|
| Sorry, i figured it out. |
|
| Back to top |
|
 |
Guest
|
Posted: Mon Sep 01, 2003 7:27 am Post subject: |
|
|
When you say you figured it out, what was the solution?
Thanks. |
|
| Back to top |
|
 |
|
|