|
-
Jun 4th, 2006, 08:39 AM
#81
Re: New Feature?
Tried what? Adding an event listener? MS has it's own method for that too; attachEvent().
-
Jun 4th, 2006, 10:08 AM
#82
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.
-
Jun 4th, 2006, 10:10 AM
#83
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
-
Jun 4th, 2006, 10:12 AM
#84
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.
-
Jun 4th, 2006, 10:15 AM
#85
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.
-
Jun 4th, 2006, 10:36 AM
#86
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.
-
Jun 4th, 2006, 10:46 AM
#87
Re: New Feature?
Blah:
 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.
-
Jun 4th, 2006, 10:47 AM
#88
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.
-
Jun 9th, 2006, 04:45 PM
#89
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|