SourceTec Software

It is currently Fri Apr 18, 2014 3:17 am

All times are UTC + 8 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Mon Mar 15, 2010 9:58 am 
Offline
Member

Joined: Mon Mar 15, 2010 9:35 am
Posts: 3
Quote:
I'm new to this software and i'm using the trial version of the software to see if it will do what i'm trying to do.

Anyway, i'm trying to build the tree menu dynamically and i'm not having any luck. When i use a variable as the name of the Node, the software does not convert that variable into the Node name. I'm using a simple for loop to assign the variable. I have tried to use Text and HTML for the Node General setup and it is still not work. Any direction would be helpful.

Here is the code:

<body bgcolor="#FFFFFF" leftmargin="5" topmargin="5">
<a href="http://www.dhtml-menu-builder.com" style="display:none;visibility:hidden;">Javascript DHTML Tree Menu Powered by dhtml-menu-builder.com</a>
<script type="text/javascript">
<!--
stBM(290,"tree44e7",[0,"","","file:///C|/Program%20Files%20%28x86%29/SourceTec/Sothink%20Tree%20Menu/resource/blank.gif",0,"left","default","hand",0,0,-1,-1,-1,"none",0,"#000000","transparent","","repeat",1,"file:///C|/Program%20Files%20%28x86%29/SourceTec/Sothink%20Tree%20Menu/resource/defButton_f%20.gif","file:///C|/Program%20Files%20%28x86%29/SourceTec/Sothink%20Tree%20Menu/resource/defButton_uf.gif",9,9,1,"file:///C|/Program%20Files%20%28x86%29/SourceTec/Sothink%20Tree%20Menu/resource/line_def0.gif","file:///C|/Program%20Files%20%28x86%29/SourceTec/Sothink%20Tree%20Menu/resource/line_def1.gif","file:///C|/Program%20Files%20%28x86%29/SourceTec/Sothink%20Tree%20Menu/resource/line_def2.gif","file:///C|/Program%20Files%20%28x86%29/SourceTec/Sothink%20Tree%20Menu/resource/line_def3.gif",1,0,3,1,"center",0,0,0,"","","","",""]);
stBS("p0",[0,0,"",-2,"",-2,50,-1,3]);
/*
<?
for ($i = 0; $i < 10; $i++)
{
$CatName = $i;
?>
*/
stIT("p0i0",["<?=$CatName?>","","_self","","","file:///C|/Program%20Files%20%28x86%29/SourceTec/Sothink%20Tree%20Menu/resource/defIcon_c.gif","file:///C|/Program%20Files%20%28x86%29/SourceTec/Sothink%20Tree%20Menu/resource/defIcon_c.gif",18,18,"9pt 'Arial'","#000000","none","transparent","","no-repeat","9pt 'Arial'","#000000","underline","transparent","","no-repeat","9pt 'Arial'","#FFFFFF","none","#000099","","no-repeat","9pt 'Arial'","#FFFFFF","underline","#000099","","no-repeat",1,0,"left","middle",0,0,"","","","",0,0,0]);
/*
<?
}
?>
*/
stIT("p0i1",["Test","","_self","","","file:///C|/Program%20Files%20%28x86%29/SourceTec/Sothink%20Tree%20Menu/resource/defIcon_c.gif","file:///C|/Program%20Files%20%28x86%29/SourceTec/Sothink%20Tree%20Menu/resource/defIcon_c.gif",18,18,"9pt 'Arial'","#000000","none","transparent","","no-repeat","9pt 'Arial'","#000000","underline","transparent","","no-repeat","9pt 'Arial'","#FFFFFF","none","#000099","","no-repeat","9pt 'Arial'","#FFFFFF","underline","#000099","","no-repeat",1,0,"left","middle",0,0,"","","","",0,0,0]);
stES();
stEM();
//-->
</script>

Also attached is the saved file for reference

Thanks for any help with this.
-Alex



I figured the issue out. I needed to put the code in a PHP page.
If you are using Condition functionality then the code has to be part of your page it cannot be an include js file. Hope this helps others

-Alex


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group