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 

Image of a selected node

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



Joined: 24 Feb 2005
Posts: 10

PostPosted: Thu Feb 24, 2005 8:15 pm    Post subject: Image of a selected node Reply with quote

Hi,

Is it possible to change image/icon of a selected node (node without children)? I can use CSS to modify link text itself and I can change its background with trees formatting options, but how about images?

Regards,

Toni
Back to top
Mega



Joined: 19 Jan 2005
Posts: 6

PostPosted: Fri Feb 25, 2005 11:27 am    Post subject: Reply with quote

Yes.
See this demo:
http://javascript.cooldev.com/scripts/cooltree/demos/images/


There is advainced imaging avaliable in PRO version of COOLjsTree.
Example here: http://javascript.cooldev.com/scripts/cooltree/demos/images2/
Back to top
corto



Joined: 24 Feb 2005
Posts: 10

PostPosted: Fri Feb 25, 2005 4:47 pm    Post subject: Reply with quote

Thanks for response,

How about if I want to show only one image in a whole tree -> when user selects childless node he sees an image in a front of the text link (selected node).

Like this (User has clicked "Sound.wav"):

Very Happy Sound.wav
Picture.gif
Document.doc

And when user clicks "Picture.gif" the image appears in a front of that link.
I can make the link go bold with CSS, but how can I show that image?

I have COOLjsTreePro.
Back to top
warwickshaw



Joined: 03 Jan 2005
Posts: 3

PostPosted: Sat Feb 26, 2005 10:08 pm    Post subject: Reply with quote

I asked the same question in http://javascript.cooldev.com/forum/viewtopic.php?t=973

In http://javascript.cooldev.com/scripts/cooltree/demos/images/ I don't see an example showing how to switch images on a childless node. Can someone post a simple example.


Thanks

warwick
Back to top
corto



Joined: 24 Feb 2005
Posts: 10

PostPosted: Thu Mar 10, 2005 6:41 pm    Post subject: Reply with quote

Hm, no solution? Sad
Back to top
Victor_Chuiko
Support Team


Joined: 12 Apr 2005
Posts: 145

PostPosted: Fri Apr 22, 2005 12:23 am    Post subject: Reply with quote

Sorry, Mega was a newbie and his answer was a bit inaccurate.
Current version of our script doesn't support the feature you are talking of.
But please, explain your idea. May be we'll implement something similar in the next version. URLs of sites with similar functionality, screenshots, etc. - all are appreciated.
Back to top
warwickshaw



Joined: 03 Jan 2005
Posts: 3

PostPosted: Sat Aug 19, 2006 10:21 pm    Post subject: Image of a selected node Reply with quote

Using http://javascript.cooldev.com/scripts/cooltree/demos/images/

What I want is an Explorer type view where directories only are displayed in the left hand frame and the files for the currently selected directory displaying in the right hand frame (the right hand frame is easy to do).

Using Tree 4, when Item 1 is selected (which doesn't have any more directories under) there is no way to display the open folder icon without displaying the SubItems like in this example. If the SubItems aren't displayed you can't switch the icon to open.


Warwick
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Sun Aug 20, 2006 7:16 am    Post subject: Reply with quote

Upgrade to 2.8.x, and then look at the "Samples/Commented/Individual node properties" sample in the new package.
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