Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 30

Thread: [DHTML] (Unobtrusive)Insert in HTML textareas.

  1. #11
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    is it based on pressing it while in the box
    Box?? I didn't get what you meant(Sorry bad english).

  2. #12
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    ddadmin: The Demo URL has been updated, no popups or ads now.

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

    Default

    Is the insert function based on a system setting of the insert key being 'set' or is it based on the act of pushing the insert key while your cursor is in the box?
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  4. #14
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    It is based on the act of pushing the insert key while your cursor is in the box because the box has the onkeyup handler to capture the event.

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

    Default

    Ok.
    Then note that if you had insert set (in the system, like in MS Word), and pressed it while in the box, it would be OFF in WORD, and ON in your page.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  6. #16
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I don't think so, because I just tested it with abiword and it doesn't behave like that(on remains on and off remains off). It maybe also because of the operating system(currently linux), drj33 can you test it if you've got windows? Thanks for the suggestion though, if it is true then I think I know what I should do.

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

    Default

    It works half the time.

    Here's how it won't work:
    1. Open word, start typing.
    2. Press insert key.
    3. Go to your demo page.
    4. Click into the textbox.
    5. Hit insert.
    6. Go back to word.
    7. Insert no longer is set.


    so... if you set it in word, then set again on your page, won't work.
    If you set on your page, then go to word, it will work.
    If you set it in word to NOT be inserting, it will also be the same in your textbox*.
    *assuming you haven't previously set it. Example:
    1. Open demo page.
    2. Click in textbox.
    3. Hit insert.
    4. Click to word
    5. Hit insert key to turn off.
    6. Insert is off in word.
    7. Click back to demo page-- note that insert key is ON.


    The reason is that the insert key is a system function. The textbox-only-based function you have can get off from that if insert is pressed outside of the textbox.
    This is because:
    --Every time you press INSERT, it changes the system setting.
    --Only when you are in the textbox does it change your setting.


    In all practical ways, this isn't very important, but it is worth thinking about.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  8. #18
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    drj33: Strange, it doesn't happen in linux(using abiword and openoffice), must be some problems with Windows or MS Word.

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

    Default

    It's not a problem, and it makes perfect sense to me. What browser? I'm using FF.

    Random note-- I was just going to test on Mac OSX (safari, FF, IE5), but then I noticed there is NO insert key. There is, interestingly enough, a "help" key. Never had the occasion to try that... but.... yeah.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  10. #20
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    drj33: I am using FF too(don't have opera and ie4lin works horrible, and no safari for linux. Therefore no other option), thanks for testing though, I don't think the help key does the work of the insert key does it?

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
  •