SourceTec Software

It is currently Wed Apr 23, 2014 5:23 pm

All times are UTC + 8 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: My feedback
PostPosted: Sat Jun 10, 2006 1:31 am 
Offline
Member
User avatar

Joined: Wed Mar 22, 2006 10:36 pm
Posts: 4
If I use server side script,it is so complex.
server side script,the item link date will be read from database


I see the tool Tree Menu create link codes all in <script>..</script>
for example:

<script type="text/javascript" language="JavaScript1.2">
<!--
stBM(1,"tree3888",["","","","blank.gif",0,"left","default","hand",0,0,-1,-1,-

1,"none",0,"#000000","transparent","","repeat",1,"defButton_f%

20.gif","defButton_uf.gif",9,9,1,"Line_def0.gif","Line_def1.gif","Line_def2.gif","Line_def3.gif","Line_def4.gif",1,0]);
stBS("p0",[0]);
stIT("p0i0",["Node 1","action.jsp","_self","","","defIcon_c.gif","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]);
stES();
stEM();
//-->
</script>

"action.jsp" will be create as dynamic data from database

If I have a loop date,how can I do?
for example

for(int i,...){

data[i]

}


so It is easy if all the link data separate from <script>..</script> code

**********************************************************************************
It is shoud be:

//link data define.
<script>
like data1;
like data2;

object[n];

for (int i;...){
object[i]=linkdate[i];
....
}
</script>
**********************************************************************************
//read link data
<script type="text/javascript" language="JavaScript1.2">
<!--
....

stIT("p0i0",["Node 1","action.jsp","_self","","","defIcon_c.gif","defIcon_c.gif",18,18,"9pt

...

action.jsp will be replace by link data before

</script>

**********************************************************************************

The separate method do very well in java and other program language.
It is do good to mainten the code.
Should I describe me clearly?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 14, 2006 1:44 am 
Offline
Support Team
Support Team
User avatar

Joined: Tue Jul 06, 2004 12:00 pm
Posts: 2464
Location: Wuhan, Hubei Province, China
The purpose generating Tree menu's code like that is in order to make it more convenient for Tree Menu users to develop the menu through our program and avoid editing the generated code.

Hope the users can understand that.
For the usage on server side, you can take reference to our online advanced samples for DHTMLMenu program. It works as same as Sohink Tree Menu will do.


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

All times are UTC + 8 hours


Who is online

Users browsing this forum: No registered users and 5 guests


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:  
Powered by phpBB® Forum Software © phpBB Group