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 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Feb 2004
    Location
    Belgium
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Insert variables into textarea ?

    First I would like to say hello to all .

    I'm new in this forum but not in webdesign , I hope I can help some people out in the future but now I got a problem or more a question actualy .

    I would like to now how I can insert a variable into a textarea ...

    I did write a cms tool for my cliets . Now they are not skilled with HTML , the thing is , its easy for them to alter the webpage . They can put the data of their webpage's into their database with that tool . Like a forum you know .

    Now I want them to be able to
    <li>put in smilies just by clicking on the icon . (like )
    <li>put in <br> just by clicking on it .
    and so on ....

    Can someone tell me how I should do this ?

    Help is apreciated . Grtz
    Gruger

    PS : Sorry bout the typo's

  • #2
    New to the CF scene
    Join Date
    Feb 2004
    Location
    Belgium
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Close tread

    Found the code

    <input type="button" value="Vet" onClick="document.tenpro.data.value='<b></b>'">


  • #3
    Moderator
    Join Date
    May 2002
    Location
    Hayward, CA
    Posts
    1,461
    Thanks
    1
    Thanked 23 Times in 21 Posts

    Wrong forum anyway...

    Moving thread to JS Programming Help, even though your immediate problem has been solved. Someone over there may stumble on your thread and have their question answered as well.
    "The first step to confirming there is a bug in someone else's work is confirming there are no bugs in your own."
    June 30, 2001
    author, Verbosio prototype XML Editor
    author, JavaScript Developer's Dictionary
    https://alexvincent.us/blog

  • #4
    Regular Coder
    Join Date
    Jul 2003
    Location
    Massachusetts
    Posts
    472
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by gruger
    <input type="button" value="Vet" onClick="document.tenpro.data.value+='<b></b>'">
    Otherwise, the value would be completely overwritten everytime.


  •  

    Posting Permissions

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