Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Emoticons in a Form Field

  1. #11
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Not a name, an ID.
    Code:
    <textarea id="fish"></textarea>
    Then use "fish" as the ID in the code.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  2. #12
    Join Date
    Mar 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yup, sorry yea I meant "id". I tried that, I even used "hamster" being thats what my smilies are. Um, you would have to change that getElementbyId, right? I did that, and nothing seemed to work.

  3. #13
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    you would have to change that getElementbyId, right?
    Only its argument.
    I even used "hamster" being thats what my smilies are.
    Duplicate IDs are invalid. The same ID can't be used for more than one element.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #14
    Join Date
    Mar 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey
    Duplicate IDs are invalid. The same ID can't be used for more than one element.
    I meant that my smilies are actually hamster images... but that's not the point. I did follow all that, I'm not sure where I went wrong. I'm still searching for some broken string...

  5. #15
    Join Date
    Mar 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Well, I guess that's it then. I'm going to try something else, I have some ideas. But thank you very much for helping.

  6. #16
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I could probably help more if you gave me a link to the page on which you've attempted to implement this.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #17
    Join Date
    Sep 2006
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I'd like to be able to make this work for my page, but I don't know how to get started. My setup is a shoutbox program, and I've added a separate table on the page to show the smilies that are available to use in the shoutbox.

    I *think* I would take that code you posted, Twey, and apply it to the table where the smilies are, after having changed the code to understand where to place the smilie code text??? I am utterly clueless. Sorry.

    I hope it was not bad form to bump this old topic.

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
  •