Looking for someone to point me in the right direction ...

Discussion in 'JavaScript' started by cscott5288, Jun 21, 2009.

  1. #1
    So I've been reading javascript tutorials for quite a long time now, and I am looking to put all of it into practice.

    I want to write a script that will translate text from one html form box to another.

    Where do I start? I honestly have no idea lol

    Thanks ahead
     
    cscott5288, Jun 21, 2009 IP
  2. vasyl

    vasyl Peon

    Messages:
    138
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What is html form box? Do you mean textarea?
    What you mean translate?

    Just create form, read value of the source element and write the value to target element on some event.
     
    vasyl, Jun 21, 2009 IP
  3. cscott5288

    cscott5288 Active Member

    Messages:
    912
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #3
    text area is what i meant. could you be more specific? what is the syntax for doing this?
     
    cscott5288, Jun 21, 2009 IP
  4. Unni krishnan

    Unni krishnan Peon

    Messages:
    237
    Likes Received:
    9
    Best Answers:
    2
    Trophy Points:
    0
    #4
    Here goes a simple example of the functionality you want.

    The '//' is used for commenting in Javascript, while <!-- --> is used for commenting in HTML. (it just explains the code)

    Hope this helps.
     
    Unni krishnan, Jun 22, 2009 IP