Keystroke Count

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Herb Stull

    #1

    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


  • Marina

    #2
    Re: Keystroke Count

    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" <stullhe@nautic om.net> wrote in message
    news:3f9015a9$1 _1@news.nautico m.net...[color=blue]
    > Does anyone know of a way to count keystrokes client side? My users want[/color]
    to[color=blue]
    > know how many characters they've typed into a textbox. Picky, picky,[/color]
    picky![color=blue]
    >
    > Thanks, Herb
    >
    >[/color]


    Comment

    • Vidar Petursson

      #3
      Re: Keystroke Count

      Hi

      document.forms["FORMNAME"].FIELDNAME.valu e.length

      --
      Best Regards
      Vidar Petursson
      =============== ===============
      Microsoft Scripting MVP
      http://www.microsoft.com/technet/scriptcenter
      =============== ===============
      "Herb Stull" <stullhe@nautic om.net> wrote in message
      news:3f9015a9$1 _1@news.nautico m.net...[color=blue]
      > Does anyone know of a way to count keystrokes client side? My users want[/color]
      to[color=blue]
      > know how many characters they've typed into a textbox. Picky, picky,[/color]
      picky![color=blue]
      >
      > Thanks, Herb
      >
      >[/color]


      Comment

      • Jerry III

        #4
        Re: Keystroke Count

        Even better: document.forms["formname"].elements["fieldname"].value.length

        Jerry

        "Vidar Petursson" <theking@icysof t.com> wrote in message
        news:OVjiV3PlDH A.2652@TK2MSFTN GP09.phx.gbl...[color=blue]
        > Hi
        >
        > document.forms["FORMNAME"].FIELDNAME.valu e.length
        >
        > --
        > Best Regards
        > Vidar Petursson
        > =============== ===============
        > Microsoft Scripting MVP
        > http://www.microsoft.com/technet/scriptcenter
        > =============== ===============
        > "Herb Stull" <stullhe@nautic om.net> wrote in message
        > news:3f9015a9$1 _1@news.nautico m.net...[color=green]
        > > Does anyone know of a way to count keystrokes client side? My users want[/color]
        > to[color=green]
        > > know how many characters they've typed into a textbox. Picky, picky,[/color]
        > picky![color=green]
        > >
        > > Thanks, Herb
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Jerry III

          #5
          Re: Keystroke Count

          Even better: document.forms["formname"].elements["fieldname"].value.length

          Jerry

          "Vidar Petursson" <theking@icysof t.com> wrote in message
          news:OVjiV3PlDH A.2652@TK2MSFTN GP09.phx.gbl...[color=blue]
          > Hi
          >
          > document.forms["FORMNAME"].FIELDNAME.valu e.length
          >
          > --
          > Best Regards
          > Vidar Petursson
          > =============== ===============
          > Microsoft Scripting MVP
          > http://www.microsoft.com/technet/scriptcenter
          > =============== ===============
          > "Herb Stull" <stullhe@nautic om.net> wrote in message
          > news:3f9015a9$1 _1@news.nautico m.net...[color=green]
          > > Does anyone know of a way to count keystrokes client side? My users want[/color]
          > to[color=green]
          > > know how many characters they've typed into a textbox. Picky, picky,[/color]
          > picky![color=green]
          > >
          > > Thanks, Herb
          > >
          > >[/color]
          >
          >[/color]


          Comment

          • Will T

            #6
            Re: Keystroke Count

            Can the object referenced in[color=blue][color=green]
            >> document.forms["FORMNAME"].FIELDNAME.valu e.length[/color][/color]
            be an "<asp:TextBox.. ."?

            I seem to only be able to reference HTML objects.

            Thanks[color=blue]
            >-----Original Message-----
            >Even better: document.forms["formname"].elements[/color]
            ["fieldname"].value.length[color=blue]
            >
            >Jerry
            >
            >"Vidar Petursson" <theking@icysof t.com> wrote in message
            >news:OVjiV3PlD HA.2652@TK2MSFT NGP09.phx.gbl.. .[color=green]
            >> Hi
            >>
            >> document.forms["FORMNAME"].FIELDNAME.valu e.length
            >>
            >> --
            >> Best Regards
            >> Vidar Petursson
            >> =============== ===============
            >> Microsoft Scripting MVP
            >> http://www.microsoft.com/technet/scriptcenter
            >> =============== ===============
            >> "Herb Stull" <stullhe@nautic om.net> wrote in message
            >> news:3f9015a9$1 _1@news.nautico m.net...[color=darkred]
            >> > Does anyone know of a way to count keystrokes client[/color][/color][/color]
            side? My users want[color=blue][color=green]
            >> to[color=darkred]
            >> > know how many characters they've typed into a[/color][/color][/color]
            textbox. Picky, picky,[color=blue][color=green]
            >> picky![color=darkred]
            >> >
            >> > Thanks, Herb
            >> >
            >> >[/color]
            >>
            >>[/color]
            >
            >
            >.
            >[/color]

            Comment

            • Will T

              #7
              Re: Keystroke Count

              Can the object referenced in[color=blue][color=green]
              >> document.forms["FORMNAME"].FIELDNAME.valu e.length[/color][/color]
              be an "<asp:TextBox.. ."?

              I seem to only be able to reference HTML objects.

              Thanks[color=blue]
              >-----Original Message-----
              >Even better: document.forms["formname"].elements[/color]
              ["fieldname"].value.length[color=blue]
              >
              >Jerry
              >
              >"Vidar Petursson" <theking@icysof t.com> wrote in message
              >news:OVjiV3PlD HA.2652@TK2MSFT NGP09.phx.gbl.. .[color=green]
              >> Hi
              >>
              >> document.forms["FORMNAME"].FIELDNAME.valu e.length
              >>
              >> --
              >> Best Regards
              >> Vidar Petursson
              >> =============== ===============
              >> Microsoft Scripting MVP
              >> http://www.microsoft.com/technet/scriptcenter
              >> =============== ===============
              >> "Herb Stull" <stullhe@nautic om.net> wrote in message
              >> news:3f9015a9$1 _1@news.nautico m.net...[color=darkred]
              >> > Does anyone know of a way to count keystrokes client[/color][/color][/color]
              side? My users want[color=blue][color=green]
              >> to[color=darkred]
              >> > know how many characters they've typed into a[/color][/color][/color]
              textbox. Picky, picky,[color=blue][color=green]
              >> picky![color=darkred]
              >> >
              >> > Thanks, Herb
              >> >
              >> >[/color]
              >>
              >>[/color]
              >
              >
              >.
              >[/color]

              Comment

              Working...