Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Regular Coder
    Join Date
    Apr 2003
    Location
    Seoul, Korea
    Posts
    329
    Thanks
    0
    Thanked 0 Times in 0 Posts

    generating <size> with a selection

    Code:
    <form>
    
    <select name='size'>   
       <option value='size1'>size1</option>
       <option value='size2'>size2</option>
       <option value='size3'>size3</option>
       <option value='size4'>size4</option>
    </select><br>
    
    <textArea name='textArea' style='width:500;height:150'>
    target text
    </textArea>
    
    </form>
    I have a selection and textArea like the above.

    I like to make it like the following.

    (1) A user puts the cursur in fron of target text with his or her mouse.
    (2) He or she drags the cursur to the end of target text.
    (3) He or she selects size3 using the selection box.

    Then,

    "target text" becomes "<size3>target text</size3>."

    Can I do it with your help?
    Get my greedy up

  • #2
    Regular Coder
    Join Date
    Apr 2003
    Location
    Seoul, Korea
    Posts
    329
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I am thinking why you don't reply to this question.
    I guess the following reasons.

    Code:
    (1) You don't understand what I want.
    
    
    (2) javacript can't do this.
    
    
    (3) This is too complex.
    
    
    (4) This is still secret.

    Which one would you choose among my guesses above?
    Get my greedy up

  • #3
    Regular Coder
    Join Date
    May 2005
    Posts
    142
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code:
    (1) I do understand what you want - eg: the post editor on this site.
    
    (2) Javascript can do this.
    
    (3) This is not too complex.
    
    (4) I have the code in my library.
    
    (5) You're rude.

  • #4
    Regular Coder
    Join Date
    May 2005
    Posts
    142
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm not usually this nice to rude people, but here you go:
    an example of EXACTLY what you want.

    I escaped the code, so if you want the source you'll have to work for it!

    Select & Replace Example

    Enjoy.

  • #5
    Regular Coder
    Join Date
    Apr 2003
    Location
    Seoul, Korea
    Posts
    329
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by VortexCortex View Post
    Code:
    (5) You're rude.
    I like to apologize for my rude as you said.


    But I like to know why you think I am rude.
    Get my greedy up

  • #6
    Regular Coder
    Join Date
    Apr 2003
    Location
    Seoul, Korea
    Posts
    329
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by VortexCortex View Post
    I escaped the codel.
    I don't understand the sentence above. What does it mean?
    Get my greedy up

  • #7
    Regular Coder
    Join Date
    Apr 2003
    Location
    Seoul, Korea
    Posts
    329
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by VortexCortex View Post
    I'm not usually this nice to rude people, but here you go:
    an example of EXACTLY what you want.

    I escaped the code, so if you want the source you'll have to work for it!

    Select & Replace Example

    Enjoy.
    I am stuck in the code of the kind VortexCortex for days.
    Can you give me any hint on this issue?
    Get my greedy up


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •