Page 3 of 3 FirstFirst 123
Results 81 to 89 of 89

Thread: New Feature?

  1. #81
    PowerPoster JPnyc's Avatar
    Join Date
    Oct 2002
    Location
    Manhattan
    Posts
    3,015

    Re: New Feature?

    Tried what? Adding an event listener? MS has it's own method for that too; attachEvent().

  2. #82
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: New Feature?

    Yes. It had the same effect as yours - counter worked, undo didn't. Also tried a few other things, none of which worked.

  3. #83
    PowerPoster JPnyc's Avatar
    Join Date
    Oct 2002
    Location
    Manhattan
    Posts
    3,015

    Re: New Feature?

    You're saying you tested adding an event listener to the textarea element with Vbulletin and had the same result? Hmm........curiouser and curiouser

  4. #84
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: New Feature?

    Well actually no, I just used a regular textarea. It seems to be an underlying problem with IE's handling of keyboard events because it occured with keydown, keypress and keyup - having the event handler breaks undo. I also tried returning false and true and exiting the handler various ways if the Control key was depressed.

  5. #85
    PowerPoster JPnyc's Avatar
    Join Date
    Oct 2002
    Location
    Manhattan
    Posts
    3,015

    Re: New Feature?

    Damn, that means I can't fix it. Well thanks MUCHO for testing it, at least you saved my remaining hair! Guess it's ok now to sweep up the hair around my pc chair.

  6. #86
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: New Feature?



    OK, the event handler itself plays fine with undo - but if you so much as remotely contemplate altering the document contents from the event handler it breaks it. Even if you set a timeout and then do it.

  7. #87
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: New Feature?

    Blah:

    Quote Originally Posted by [url]http://www.codeproject.com/jscript/htmlarea.asp?df=100&forumid=4685&exp=0&select=1060812#bugs1[/url]
    The way undo/redo works in Internet Explorer it seems to reset the undo buffer every time you use JavaScript to set the value of a form element or otherwise make changes to the page. Because of this the built in undo/redo functionality of the browser doesn't work.
    I give up - you could use just addEventListener and have it work in less buggy browsers.

  8. #88
    PowerPoster JPnyc's Avatar
    Join Date
    Oct 2002
    Location
    Manhattan
    Posts
    3,015

    Re: New Feature?

    Ah well, we tried. It's not that useful a feature anyway, it's just that I hate giving up on stuff without resolving. It gnaws at me.

  9. #89
    PowerPoster JPnyc's Avatar
    Join Date
    Oct 2002
    Location
    Manhattan
    Posts
    3,015

    Re: New Feature?

    FYI I did more testing on this, with a simple page, instead of the much busier forum page, and it's definitely an IE bug. No matter how the function is written or called, undo breaks in IE 6 and 7.

Page 3 of 3 FirstFirst 123

Posting Permissions

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



Click Here to Expand Forum to Full Width