Drag and drop text

Please support our JavaScript / DHTML / AJAX advertiser: 50% off 6 Months Dedicated Server Hosting from 1&1!
Reply

Join Date: Jul 2007
Posts: 29
Reputation: creativehacker is an unknown quantity at this point 
Solved Threads: 0
creativehacker creativehacker is offline Offline
Light Poster

Drag and drop text

 
0
  #1
Aug 21st, 2008
Hi
Can Anyone please give me a script which is used to drag a text from within a webpage to the textarea present on the page.

I want a certain text to be appended to the textarea text and
I want a certain text to be added anywhere in the textarea text when I drag...
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,772
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 493
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: Drag and drop text

 
0
  #2
Aug 22nd, 2008
Using a drag and drop library along with a simple Javascript logic should get you going.
I don't accept change; I don't deserve to live.

Sacrifice is a painful, pure and beautiful thing.

Dammit, Jones, What the Hell Are Knoll Pointers?!
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 29
Reputation: creativehacker is an unknown quantity at this point 
Solved Threads: 0
creativehacker creativehacker is offline Offline
Light Poster

Re: Drag and drop text

 
0
  #3
Aug 22nd, 2008
That library is used for dragging images and layers I want a simple to text to be dragged into textarea

basically the text can be dragged to anywhere from anywhere I want to improvise that feature as I needed

try dragging a text from a within a webpage to the textarea on the same page
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,772
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 493
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: Drag and drop text

 
0
  #4
Aug 22nd, 2008
That's why I pointed to a similar library so that you can take a peek at the source code and try to modify it according to your needs. Maybe looking at some other full fledged Javascript libraries like Prototype etc. (or their source code if libraries are not allowed) will help you.
I don't accept change; I don't deserve to live.

Sacrifice is a painful, pure and beautiful thing.

Dammit, Jones, What the Hell Are Knoll Pointers?!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum


Views: 1944 | Replies: 3
Thread Tools Search this Thread



Tag cloud for JavaScript / DHTML / AJAX
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC