473,394 Members | 1,721 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,394 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 2301
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.