How move data between text area?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
paul_20k
Forum Commoner
Posts: 45
Joined: Fri Nov 10, 2006 7:02 pm

How move data between text area?

Post by paul_20k »

feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


Hi 

I have attached the screenshots and code for the table. Can anyone look at it. How to do it with PHP and Mysql? I want to select few activities from the left textarea and move to the right textarea. I guess everybody saw this concept on other websites...

[syntax="html"]<table width="582" border="0"> 
        <tr> 
          <td width="167" class="form_text">Available Activities </td> 
          <td width="112">&nbsp;</td> 
          <td width="153">&nbsp;</td> 
          <td width="6">&nbsp;</td> 
          <td width="176">&nbsp;</td> 
        </tr> 
        <tr> 
          <td rowspan="2" align="left"><textarea name="textarea" rows="10">A 
B 
B 
C 
C 
C 
D 
D 
F 
F 
G 
H 
H 
S 
S 
S 
S 
S 
W 
W</textarea></td> 
          <td rowspan="2" align="center" valign="middle"><input type="button" value="Add >>" name="add2" /> 
              <input type="button" value="<< Remove" name="add12" /> 
              <br /></td> 
          <td colspan="2" rowspan="2"><textarea name="textarea" rows="10"></textarea></td> 
          <td>&nbsp;</td> 
        </tr> 
        <tr> 
          <td>&nbsp;</td> 
        </tr> 
      </table>

feyd | Please use[/syntax]

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I'm pretty sure you're going to need Javascript for this and not even a hint of PHP.
paul_20k
Forum Commoner
Posts: 45
Joined: Fri Nov 10, 2006 7:02 pm

Post by paul_20k »

Hi Feyd

Thanks feyd. Can you expalin me little more about it as I am newbie? I really have no idea where to look for help...
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Arbitrary selection detection and manipulation isn't the most simple of subjects for the most part. As such, it may be a subject that a newbie should avoid until later.

Am I correct that the text is supposed to be static? As in, the user is not supposed to be able to alter it. If so, a list box is more appropriate and far more simple to produce the desired behaviors. I know we've had several threads on the subject..

viewtopic.php?p=154266#154266 possibly.
paul_20k
Forum Commoner
Posts: 45
Joined: Fri Nov 10, 2006 7:02 pm

Post by paul_20k »

hi feyd

yes its a static text. you suggested a list box for this, how can I make multiple selection of the text with list box as I need to parse multiple text to database?

Thanks
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

paul_20k wrote:hi feyd

yes its a static text. you suggested a list box for this, how can I make multiple selection of the text with list box as I need to parse multiple text to database?

Thanks
<select multiple=multiple .... >
paul_20k
Forum Commoner
Posts: 45
Joined: Fri Nov 10, 2006 7:02 pm

Post by paul_20k »

Thanks feyd
Post Reply