473,785 Members | 2,488 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1859
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::insertBef ore() 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
2179
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 the HTREEITEMs are not updating properly. This is espeically true if I update the size of an individual HTREEITEM more than once -- making it larger, and then smaller again. The tree view's scroll bar no longer works correctly -- it doesn't scroll...
1
1595
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 between the boxes. That works fine. The last 2 are used to move all the listbox items (whether they're selected or not) that are in 1 box over to the other box. After the move, I want the other box to be empty. I am calling clear() and
7
1272
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 button in the current page and I need pass a variable to use in the second page and when user click close I need to jump back to first page. How can I do this? Can you give me exaple please? Thanks, Jim.
2
3386
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 | TVS_HASLINES | TVS_HASBUTTONS | TVS_LINESATROOT | TVS_SINGLEEXPAND | TVS_SHOWSELALWAYS |
35
3053
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 copy an object properly via copy- construction rather than using memcpy. However, is it okay to move an object manually (i.e. by using memcpy or memmove)?
12
2335
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
5462
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 users if it's ok to delete. Thanks in advance. i found one that was really close but it only looks at one folder. I need it to look at files within folders and subfolders too. Dim oFSO, wshShell, FileCol, oFolder, objTextFile, shareLength,...
4
4634
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 every add/remove. Thanks, Bogdan
17
20028
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 btnMoverr_Click(object sender, EventArgs e) { //lstBoxr.Items.Add(lstBoxl.SelectedItems); //lstBoxl.Items.Remove(lstBoxr.SelectedItems);
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10091
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8972
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7499
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6739
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4050
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.