#1
  1. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2001
    Location
    Malaysia
    Posts
    21
    Rep Power
    0

    Unhappy javascript keyboard


    I have a keyboard in javascript, want to active it so that it can give input to the textarea or text field by pointing to the character on the screen.

    I can do it if the is only one textarea in teh form and in the same file. What should I do if I want to give input in more than one textare or textfield, and the form is in diffrent file..Please help me.. thank you
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2002
    Posts
    35
    Rep Power
    12

    Naming <form> fields.


    You should do something like this:

    If you do not already have a name attribute in the <form> tag, give it a name:

    <form name='myForm' action='whatever' method='whatever'>

    Then, make a note of the <textarea>'s name:

    <textarea name='myTextArea' ... >...</textarea>

    Then change the JavaScript function which "types" the letters to type into "document.myForm.myTextArea.value".

    Hope this helps :o)

    S.H.
  4. #3
  5. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Posts
    465
    Rep Power
    13
    After the Windows keyboard the Javascript keyboard! I heard'em all!
    Words must be weighed, not counted.

IMN logo majestic logo threadwatch logo seochat tools logo