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

Thread: Generate Code in Textarea

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

    Default

    Of course it does, you're using undefined variables
    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
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    But ... in one of the post you told me it didn't.

  3. #13
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Of course it does, you're using undefined variables
    Thus making the code unusable.
    - Mike

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

    Default

    But ... in one of the post you told me it didn't.
    Where? :-\

    It will probably work in most browsers due to the way they make elements accessible by name or ID under the global object, but there's nothing that says it ought to.
    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!

  5. #15
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Never mind, I searched the post but couldn't find it.

  6. #16
    Join Date
    Sep 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by djr33
    It would be easy enough to do this:

    textarea.value = "<html>"+textarea.value+"</html>"
    However, to take those back out or to specify a particular location for somethign would involve analyzing the exact characters and would get compelx quickly.
    This is probably some solution I am looking for. Will have to research much deeper into how exactly I plan on working on this.

    I'm thinking possibly an onblur will call a function that will reupdate the text field.

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
  •