RSS Forums RSS
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 614 | Replies: 3 | Thread Tools  Display Modes
Reply
Join Date: Jul 2007
Posts: 24
Reputation: creativehacker is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
creativehacker creativehacker is offline Offline
Newbie Poster

Drag and drop text

  #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...
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2006
Location: India
Posts: 7,168
Reputation: ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold 
Rep Power: 26
Solved Threads: 395
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

  #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.

Happiness corrupts people.

Failing to value the lives of others cheapens your own.
Reply With Quote  
Join Date: Jul 2007
Posts: 24
Reputation: creativehacker is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
creativehacker creativehacker is offline Offline
Newbie Poster

Re: Drag and drop text

  #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  
Join Date: Jun 2006
Location: India
Posts: 7,168
Reputation: ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold 
Rep Power: 26
Solved Threads: 395
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

  #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.

Happiness corrupts people.

Failing to value the lives of others cheapens your own.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 7:49 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC