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 

Child image appear and disappear

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



Joined: 16 Jul 2007
Posts: 6

PostPosted: Wed Aug 01, 2007 6:22 pm    Post subject: Child image appear and disappear Reply with quote

(I'm using the free tree menu)

Every node have an image but the child has none because i used a "blank image".

The problem: sometimes a child or two have an image "borrowed" from a node. How is this possible? It's like there's an error or something but i don't get it. I only edited the tree_nodes.js!

Please help
Crying or Very sad
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Wed Aug 01, 2007 6:43 pm    Post subject: Reply with quote

Before fixing, we need to reproduce this. Can you send to javascript@cooldev.com a sample + clear steps to reproduce?
Back to top
cbtree



Joined: 16 Jul 2007
Posts: 6

PostPosted: Wed Aug 01, 2007 8:01 pm    Post subject: Reply with quote

I can send you a rar archive with my files if you want because i'm not a javascript coder so i cant tell you the exact problem with code.
Back to top
cbtree



Joined: 16 Jul 2007
Posts: 6

PostPosted: Wed Aug 01, 2007 8:07 pm    Post subject: Reply with quote

I post here my codes - maybe some others will have the same problem:

tree_nodes.js

Quote:
// Tree structure definition
var TREE_NODES = [
['RASE DE CAINI', null, null,
['RASE DE CAINI', 'desters.html', 'content',
],
],
['INGRIJIREA CAINELUI', null, null,
['SANATATEA CAINELUI', 'desters.html', 'content',
],
['BOLI DE SEZON', 'desters.html', 'content',
],
['PARAZITII EXTERNI AI CAINELUI', 'desters.html', 'content',
],
['SENIOR', 'desters.html', 'content',
],
['ARTICOLE DE SEZON', 'desters.html', 'content',
],
['NUTRITIE', 'desters.html', 'content',
],
['OBEZITATEA LA CAINE', 'desters.html', 'content',
],
['GASESTE UN VETERINAR', 'desters.html', 'content',
],
],
['TURISM CANIN', null, null,
['TURISM', 'desters.html', 'content',
],
],
];


tree_format.js

Code:
// Tree format definition
var TREE_FORMAT = [
   //  0. left position
   10,
   //  1. top position
   10,
   //  2. show buttons ("+" and "-" images)
   false,
   //  3. button images: collapsed state, expanded state, blank image
   ["", "", "images/blank.gif"],
   //  4. size of buttons: width, height, indent amount for childless nodes
   [0, 0, 0],
   //  5. show icons ("folder" and "document")
   true,
   //  6. icon images: closed folder, opened folder, document
   ["", "", "images/blank.gif"],
   //  7. size of icons: width, height
   [33, 31],
   //  8. indent amount for each level of the tree
   [0, 0, 0, 0, 0, 0, 0, 0, 0],
   //  9. background color for the tree
   "",
   // 10. default CSS class for nodes
   "clsLevel1",
   // 11. individual CSS classes for levels of the tree
   ['clsLevel1', 'clsLevel2'],
   // 12. "single branch" mode
   true,
   // 13. padding and spacing values for all nodes
   [0, 0]
];
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Wed Aug 01, 2007 8:26 pm    Post subject: Reply with quote

You're not using images at all - only blank.gif. So, what does "borrowed" mean? What about sending files to the e-mail I've mentioned earlier?
Quote:
i cant tell you the exact problem with code.

I didn't ask you to detect problems with code. I wanted to know what is the problem from your point of view. It's like "my car's engine chokes on the gasoline because of high degree of dissolved ethan" and "my car's engine does not start, it produces weird sounds" - I was asking for the second.
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