469,270 Members | 1,737 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,270 developers. It's quick & easy.

Undo system for text

I`m writing a javascript regex tester (IE 6 only) and would like to include
an undo button for a text input field.

I want it to handle individual keystrokes, pasting and drop, and also
text added by clicking various buttons.

I have tried a LOT of handler combinations and fancy conditionals to
make it work perfectly, and I`m ALMOST there.

If anyone of you guys have seen a working javacript undo system such
as described I would be most grateful if you let me know.
Oeyvind

--
http://home.online.no/~oeyvtoft/ToftWeb/


Jul 23 '05 #1
3 2188
oeyvind toft wrote:
I`m writing a javascript regex tester (IE 6 only) and would like to ^
This (`) is an accent grave, not an apostroph ('). Use [Shift]+[#]
or whatever key combination is required for your keyboard.
include an undo button for a text input field.
That would require a kind of journal where to log user actions.
I want it to handle individual keystrokes, pasting and drop, and also
text added by clicking various buttons.
Which ones, exactly?
I have tried a LOT of handler combinations and fancy conditionals to
make it work perfectly, and I`m ALMOST there.

^
Which ones, exactly?

Post your code; if too much, post the URL. There are
(almost) no complete working solutions for free here.
PointedEars
--
"Boys go to Jupiter to get more stupider,
girls go to Mars, become rock stars!"
-- Kim Gordon
Jul 23 '05 #2
Thomas 'PointedEars' Lahn wrote:
oeyvind toft wrote:

I`m writing a javascript regex tester (IE 6 only) and would like to


^
This (`) is an accent grave, not an apostroph ('). Use [Shift]+[#]
or whatever key combination is required for your keyboard.


You really *are* as anally retentive as you act.

OP: Ignore his babbling.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #3
Randy Webb wrote:
OP: Ignore his babbling.
Consider it done =O)

Oeyvind
--
http://home.online.no/~oeyvtoft/ToftWeb/

"Randy Webb" <Hi************@aol.com> skrev i melding
news:e-********************@comcast.com... Thomas 'PointedEars' Lahn wrote:
oeyvind toft wrote:

I`m writing a javascript regex tester (IE 6 only) and would like to


^
This (`) is an accent grave, not an apostroph ('). Use [Shift]+[#]
or whatever key combination is required for your keyboard.


You really *are* as anally retentive as you act.

OP: Ignore his babbling.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq

Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by thanigai | last post: by
11 posts views Thread by Mad Joe | last post: by
2 posts views Thread by Keith | last post: by
5 posts views Thread by Steve | last post: by
1 post views Thread by CARIGAR | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.