473,401 Members | 2,127 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,401 software developers and data experts.

Keystroke Count

Does anyone know of a way to count keystrokes client side? My users want to
know how many characters they've typed into a textbox. Picky, picky, picky!

Thanks, Herb
Nov 17 '05 #1
6 1356
I would recommend just checking the number of characters in the textbox, as
opposed to counting what they type as they go along, if all you need to know
are the number of characters.

"Herb Stull" <st*****@nauticom.net> wrote in message
news:3f**********@news.nauticom.net...
Does anyone know of a way to count keystrokes client side? My users want to know how many characters they've typed into a textbox. Picky, picky, picky!
Thanks, Herb

Nov 17 '05 #2
Hi

document.forms["FORMNAME"].FIELDNAME.value.length

--
Best Regards
Vidar Petursson
==============================
Microsoft Scripting MVP
http://www.microsoft.com/technet/scriptcenter
==============================
"Herb Stull" <st*****@nauticom.net> wrote in message
news:3f**********@news.nauticom.net...
Does anyone know of a way to count keystrokes client side? My users want to know how many characters they've typed into a textbox. Picky, picky, picky!
Thanks, Herb

Nov 17 '05 #3
Even better: document.forms["formname"].elements["fieldname"].value.length

Jerry

"Vidar Petursson" <th*****@icysoft.com> wrote in message
news:OV**************@TK2MSFTNGP09.phx.gbl...
Hi

document.forms["FORMNAME"].FIELDNAME.value.length

--
Best Regards
Vidar Petursson
==============================
Microsoft Scripting MVP
http://www.microsoft.com/technet/scriptcenter
==============================
"Herb Stull" <st*****@nauticom.net> wrote in message
news:3f**********@news.nauticom.net...
Does anyone know of a way to count keystrokes client side? My users want

to
know how many characters they've typed into a textbox. Picky, picky,

picky!

Thanks, Herb


Nov 17 '05 #4
Even better: document.forms["formname"].elements["fieldname"].value.length

Jerry

"Vidar Petursson" <th*****@icysoft.com> wrote in message
news:OV**************@TK2MSFTNGP09.phx.gbl...
Hi

document.forms["FORMNAME"].FIELDNAME.value.length

--
Best Regards
Vidar Petursson
==============================
Microsoft Scripting MVP
http://www.microsoft.com/technet/scriptcenter
==============================
"Herb Stull" <st*****@nauticom.net> wrote in message
news:3f**********@news.nauticom.net...
Does anyone know of a way to count keystrokes client side? My users want

to
know how many characters they've typed into a textbox. Picky, picky,

picky!

Thanks, Herb


Nov 17 '05 #5
Can the object referenced in
document.forms["FORMNAME"].FIELDNAME.value.length be an "<asp:TextBox..."?

I seem to only be able to reference HTML objects.

Thanks
-----Original Message-----
Even better: document.forms["formname"].elements ["fieldname"].value.length
Jerry

"Vidar Petursson" <th*****@icysoft.com> wrote in message
news:OV**************@TK2MSFTNGP09.phx.gbl...
Hi

document.forms["FORMNAME"].FIELDNAME.value.length

--
Best Regards
Vidar Petursson
==============================
Microsoft Scripting MVP
http://www.microsoft.com/technet/scriptcenter
==============================
"Herb Stull" <st*****@nauticom.net> wrote in message
news:3f**********@news.nauticom.net...
> Does anyone know of a way to count keystrokes client

side? My users want to
> know how many characters they've typed into a
textbox. Picky, picky, picky!
>
> Thanks, Herb
>
>


.

Nov 17 '05 #6
Can the object referenced in
document.forms["FORMNAME"].FIELDNAME.value.length be an "<asp:TextBox..."?

I seem to only be able to reference HTML objects.

Thanks
-----Original Message-----
Even better: document.forms["formname"].elements ["fieldname"].value.length
Jerry

"Vidar Petursson" <th*****@icysoft.com> wrote in message
news:OV**************@TK2MSFTNGP09.phx.gbl...
Hi

document.forms["FORMNAME"].FIELDNAME.value.length

--
Best Regards
Vidar Petursson
==============================
Microsoft Scripting MVP
http://www.microsoft.com/technet/scriptcenter
==============================
"Herb Stull" <st*****@nauticom.net> wrote in message
news:3f**********@news.nauticom.net...
> Does anyone know of a way to count keystrokes client

side? My users want to
> know how many characters they've typed into a
textbox. Picky, picky, picky!
>
> Thanks, Herb
>
>


.

Nov 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: hokieghal99 | last post by:
Does anyone know of a keystroke logger that has been written in Python for Windows machines? I'd like to see such a script and use it as a point of reference for a real-time backup project that I'm...
2
by: Wayne Wengert | last post by:
I want to get the decimal (integer) value of user keystrokes. I am using the following code. chrInput is the character entered (e.g. "M") and "keystroke is DIMed as Short keystroke =...
1
by: Amin Gunawan via .NET 247 | last post by:
I would like to put a combo box in a column of a datagrid. I've seen the samples in the MSDN library of other sources, butall samples didn't catch the 'DOWN/UP' keystroke. It means thatwhen I select...
2
by: Wayne Wengert | last post by:
I want to get the decimal (integer) value of user keystrokes. I am using the following code. chrInput is the character entered (e.g. "M") and "keystroke is DIMed as Short keystroke =...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.