Results 1 to 3 of 3

Thread: Generate text in a text field by clicking links, buttons, etc.

  1. #1
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default Generate text in a text field by clicking links, buttons, etc.

    I hope this isn't repeating an old question. Feel free to link me if so.

    Basically what I want to do can be seen with the commands on the side and top of the posting window... you can click stuff and it automaticaly changes the content inside the text box.

    What's the easy way to do that? Then feel free to expand a bit...

    This is a general question, so there's no specific problem I'm trying to solve.

    Thanks!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,134
    Thanks
    44
    Thanked 3,231 Times in 3,192 Posts
    Blog Entries
    12

    Default

    For javascript, this is one of the best solutions:

    http://www.dynamicdrive.com/dynamici...itor/index.htm

    Good in IE and FF.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jun 2008
    Posts
    589
    Thanks
    13
    Thanked 54 Times in 54 Posts
    Blog Entries
    1

    Default

    Well, Daniel, one way to do it is with JavaScript. Here is an example:

    Code:
    <input type="text" value="Wow" id="ws">
    <br />
    <input type="button" value="Click Me" onclick="document.getElementById('ws').value = 'yasa';">
    I really do hope I helped you at all, you know, you being a moderator.

    -magicyte

    P.S. Were you a Junior Coder when you posted this???

Bookmarks

Posting Permissions

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