JavaScript.CoolDev.Com Support Forums

Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

my tree doesnt open automatically under windows ie

 
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsTree
Author Message
illscienfic
Guest





PostPosted: Thu Aug 21, 2003 3:13 pm    Post subject: my tree doesnt open automatically under windows ie Reply with quote

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





PostPosted: Thu Aug 21, 2003 3:16 pm    Post subject: also Reply with quote

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





PostPosted: Thu Aug 21, 2003 3:31 pm    Post subject: nevermind i got it! Reply with quote

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





PostPosted: Thu Aug 21, 2003 3:41 pm    Post subject: the power of coffee Reply with quote

Sorry, i figured it out.
Back to top
Guest






PostPosted: Mon Sep 01, 2003 7:27 am    Post subject: Reply with quote

When you say you figured it out, what was the solution?

Thanks.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsTree All times are GMT
Page 1 of 1