473,382 Members | 1,424 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

how to move items between one tree to another??

Hi,

Can we do something like we select nodes from one tree and when we
press a button like "Add" It will move that node with its parent node
to the tree to the right? Is this possible in Javascript. If so any
pointers..Also similarly we can remove items on the right tree. That
should remove node from right tree and add to left tree..

If this is not easy in Javascript. Any pointers to a JSP solution.

..Any help is appreciated.
Regards,
Vijay

Apr 14 '06 #1
2 1842
vijay wrote:
Can we do something like we select nodes from one tree and when we
press a button like "Add" It will move that node with its parent node
to the tree to the right? Is this possible in Javascript. If so any
pointers..Also similarly we can remove items on the right tree. That
should remove node from right tree and add to left tree..
Sure it is possible, with any programming language that can be used
client-side, preferably an ECMAScript implementation like JavaScript
or JScript. However, it is rather a matter of the DOM. Look into
Node::insertBefore() for the W3C DOM.

<URL:http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-952280727>
If this is not easy in Javascript. Any pointers to a JSP solution.


Try comp.lang.java then, where JavaServer Pages are on topic.
PointedEars
Apr 16 '06 #2
Thanks for the quick reply.

I am surprised that not many people look for such a control. I was
looking if some one has already implemented such a requirement.

Thanks for your pointers though. I would work on that.
Vijay

Apr 17 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Kaye | last post by:
It seems that when I dynamically resize items in a tree-view control, using TVM_SETITEM and the TVITEMEX iIntegral member, things go awry. The window draws properly, but it seems like the RECTs for...
1
by: kent | last post by:
Hi All, On my form, I have 2 listboxes that get populated with the correct items. I have 4 buttons between the 2 boxes. The first 2 buttons are used to move the selected item back and forth...
7
by: JIM.H. | last post by:
Hello, What is the best way to move from aspx page to aspx page by passing variables. I was using session variables with Response.Redirectin both ways, it may not be the right way. Users click a...
2
by: hans_fakie | last post by:
Hello everybody, I created a CTreeCtrl and I'd like to move the expand button to the right. here's my code CTreeCtrl tree; tree->Create(WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP |...
35
by: Frederick Gotham | last post by:
(Before I begin, please don't suggest to me to use "std::vector" rather than actual arrays.) I understand that an object can have resources (e.g. dynamically allocated memory), and so we have to...
12
by: Chris | last post by:
Are there any other controls which could replace List & Tree controls, because they have limitation of accepting only 32767 items. thanks a lot in advance.
3
by: jaeden99 | last post by:
I was wandering if nyone has a script to move files older than x days old? i've seen several to delete, but I don't want to delete. I would like to create a backup of the files first verify with...
4
by: bogdan | last post by:
Hi, I have two listboxes on a page and need to move items between them - using buttons (e.g. "<<" ">>"). Can this be done on a client side in asp.net? I'd like to avoid hitting the server on...
17
DjPal
by: DjPal | last post by:
Hello, I am trying to move multiple items from one list box to another, i have tried the following code, but the output so far just gives me "{collection}" in the other list box. private void...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.