473,372 Members | 717 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 software developers and data experts.

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 2294
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Patrick S | last post by:
I am using IE 6.0. On a page, I have placed a contenteditable div which I want to use as a Rich Text Area. I am using the execCommand method of the document to control bold, italics,...
3
by: babylon | last post by:
any facilities in csharp that can help me implmenting undo/redo in my application? thx
4
by: thanigai | last post by:
How to implement undo/redo technique in C#? The undo/redo are not only for text changes, it also support previous action like creation of an object.
11
by: Mad Joe | last post by:
I'm using a richTextBox for editing a source code (with Syntax Highlighting) of my own programming language... How come that myRichTextBox doesn't respond to Undo/Redo functions by using default...
2
by: Keith | last post by:
I'm trying to come up with a way to create a contextmenu that will do all the "standard" functions (cut, copy, paste, undo, etc). There seems to be a lot of information out there - but nothing...
3
by: GoogleEyeJoe | last post by:
Dear ladies and gents, I'm trying to determine whether the .NET Framework implements a means of transactional processing without the need for a database. Essentially, I'd like to enlist...
5
by: Steve | last post by:
I have created my own context menu. Everything works except undo'ing deleted text. My code for these two events are: Private Sub tsmiUndo_Click(ByVal sender As Object, ByVal e As...
4
by: =?Utf-8?B?UmljaA==?= | last post by:
Hello, Does vb2005 have a built-in UnDo feature / object for applications so that I can undo actions like other windows apps? Or do I have to write my own UnDo routine? If vb2005 does have a...
6
by: xenocidecrash | last post by:
I am using: C#, .Net, Windows Forms I have created a derived class from the System.Windows.Forms.TextBox class that only allows hexadecimal characters to be entered, whether typed or pasted....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.