Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Expand Node on Single Click
Joaquin
Junior Member

Posts: 2
Registered: 11/17/2005
Location: Michigan
Member Is Offline
posted on 11/17/2005 at 11:19 PM Reply With Quote
Expand Node on Single Click


Ok, after 2 days of staring at this code, I have finally figured out how to have the nodes expand when you just "single" click on the name of the node not just the "+".

This is my first post so please be gentle.

Inside tree.js you will find a function called "item_init()".

Inside this function you will see a very long "return" statement.

Inside this return statement you will see various events such as onmouseover/onmouseout and then onclick and ondblclick.

example:
ondblclick="trees[' + this.o_root.n_id + '].toggle(' + this.n_id + ')"

What you want to do is to highlight and copy everything in between the double quotes after ondblclick=.

What you want to have copied is:
trees[' + this.o_root.n_id + '].toggle(' + this.n_id + ')

Now, what you need to do is to paste this code into the event right before "ondblclick", which is "onclick". After the paste add a semicolon and a space before the code that was already there.

What you want is your "onclick" call to look like this:

onclick="trees[' + this.o_root.n_id + '].toggle(' + this.n_id + '); return trees[' + this.o_root.n_id + '].select(' + this.n_id + ')"

So now the node will be selected and open on a single click.

Hope this helps someone!
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos:
Frames targeting
Win help style
Free Download Free Download
Free Download Menu Builders
Online Builder
Product Documentation Documentation:
Documenation Page
Support Forum Technical Support
Support Forum
   

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004