From Cbielanski at inta.org Mon Feb 7 09:53:51 2005
From: Cbielanski at inta.org (Chris Bielanski)
Date: Tue Mar 4 07:24:10 2008
Subject: [front-end] Foiling AutoComplete for non-Password controls
Message-ID: <4DBE3775D77C744E9D1B9D06082E75D60AAB37@intamail1.ny.inta.org>
Hey gang,
How can I get the AutoComplete feature of [insert browser here] to ignore a
text input control, without using "password?"
I'm writing a payment screen that accepts a credit card number, but upon
refresh, I've found that AutoComplete has held on to my cardnumber. This is
undesired behavior, so how to foil it? Don't worry, I know all the rules and
details about SB-930 (last-5-digits), CVV2 code, etc. I just need to know if
there's a DOM or XHTML keyword that tells AutoComplete to shove off. The
first workaround I conceived is to use a dynamically generated name for the
input control, and so forth, but that does seem kludgey.
Thanks,
Chris Bielanski
Web Programmer,
International Trademark Association,
655 Third Avenue, 10th Floor
New York, NY 10017-5617 USA
+1 (212) 642-1745, f: +1 (212) 768-7796
mailto:cbielanski@inta.org, www.inta.org
INTA -- 125 Years of Excellence
From phillip.powell at adnet-sys.com Mon Feb 7 10:06:26 2005
From: phillip.powell at adnet-sys.com (Phillip Powell)
Date: Tue Mar 4 07:24:10 2008
Subject: [front-end] Foiling AutoComplete for non-Password controls
In-Reply-To: <4DBE3775D77C744E9D1B9D06082E75D60AAB37@intamail1.ny.inta.org>
References: <4DBE3775D77C744E9D1B9D06082E75D60AAB37@intamail1.ny.inta.org>
Message-ID: <420783F2.6030303@adnet-sys.com>
If you find out and is not posted here, TELL ME DAMMIT! :)
Phil
Chris Bielanski wrote:
>Hey gang,
>How can I get the AutoComplete feature of [insert browser here] to ignore a
>text input control, without using "password?"
>
>I'm writing a payment screen that accepts a credit card number, but upon
>refresh, I've found that AutoComplete has held on to my cardnumber. This is
>undesired behavior, so how to foil it? Don't worry, I know all the rules and
>details about SB-930 (last-5-digits), CVV2 code, etc. I just need to know if
>there's a DOM or XHTML keyword that tells AutoComplete to shove off. The
>first workaround I conceived is to use a dynamically generated name for the
>input control, and so forth, but that does seem kludgey.
>
>Thanks,
>Chris Bielanski
>Web Programmer,
>International Trademark Association,
>655 Third Avenue, 10th Floor
>New York, NY 10017-5617 USA
>+1 (212) 642-1745, f: +1 (212) 768-7796
>mailto:cbielanski@inta.org, www.inta.org
>INTA -- 125 Years of Excellence
>
>_______________________________________________
>New York PHP SIG: Front End
>http://lists.nyphp.org/mailman/listinfo/front-end
>http://www.newyorkphp.org
>
>
>
--
---------------------------------------------------------------------------------
Phil Powell
Multimedia Programmer
BPX Technologies, Inc.
#: (703) 709-7218 x107
Fax: (703) 709-7219
From dan at danhorning.com Mon Feb 7 10:37:48 2005
From: dan at danhorning.com (Dan Horning)
Date: Tue Mar 4 07:24:10 2008
Subject: [front-end] Foiling AutoComplete for non-Password controls
In-Reply-To: <420783F2.6030303@adnet-sys.com>
References: <4DBE3775D77C744E9D1B9D06082E75D60AAB37@intamail1.ny.inta.org>
<420783F2.6030303@adnet-sys.com>
Message-ID: <42078B4C.7010803@danhorning.com>
couldn't you in a a worst case senario use a flash object to be the input???
just a quick thought
Phillip Powell wrote:
> If you find out and is not posted here, TELL ME DAMMIT! :)
>
> Phil
>
> Chris Bielanski wrote:
>
>> Hey gang,
>> How can I get the AutoComplete feature of [insert browser here] to
>> ignore a
>> text input control, without using "password?"
>>
>> I'm writing a payment screen that accepts a credit card number, but upon
>> refresh, I've found that AutoComplete has held on to my cardnumber.
>> This is
>> undesired behavior, so how to foil it? Don't worry, I know all the
>> rules and
>> details about SB-930 (last-5-digits), CVV2 code, etc. I just need to
>> know if
>> there's a DOM or XHTML keyword that tells AutoComplete to shove off. The
>> first workaround I conceived is to use a dynamically generated name
>> for the
>> input control, and so forth, but that does seem kludgey.
>>
>> Thanks,
>> Chris Bielanski
>> Web Programmer, International Trademark Association,
>> 655 Third Avenue, 10th Floor
>> New York, NY 10017-5617 USA
>> +1 (212) 642-1745, f: +1 (212) 768-7796
>> mailto:cbielanski@inta.org, www.inta.org INTA -- 125 Years of
>> Excellence
>>
>> _______________________________________________
>> New York PHP SIG: Front End
>> http://lists.nyphp.org/mailman/listinfo/front-end
>> http://www.newyorkphp.org
>>
>>
>>
>
>
--
Dan Horning
http://www.danhorning.com/
Office - 1-800-863-3854 ext. 502
From Cbielanski at inta.org Mon Feb 7 10:43:10 2005
From: Cbielanski at inta.org (Chris Bielanski)
Date: Tue Mar 4 07:24:10 2008
Subject: [front-end] Foiling AutoComplete for non-Password controls
Message-ID: <4DBE3775D77C744E9D1B9D06082E75D60AAB3A@intamail1.ny.inta.org>
XHTML > Flash, for our purposes. We like the KISS approach to most things,
if such can be achieved.
Thanks,
Chris Bielanski
Web Programmer,
International Trademark Association,
655 Third Avenue, 10th Floor
New York, NY 10017-5617 USA
+1 (212) 642-1745, f: +1 (212) 768-7796
mailto:cbielanski@inta.org, www.inta.org
INTA -- 125 Years of Excellence
> -----Original Message-----
> From: Dan Horning [mailto:dan@danhorning.com]
> Sent: Monday, February 07, 2005 10:38 AM
> To: NYPHP@nyphp.org; Front End
> Cc: NYPHP@nyphp.org
> Subject: Re: [front-end] Foiling AutoComplete for
> non-Password controls
>
>
> couldn't you in a a worst case senario use a flash object to
> be the input???
>
> just a quick thought
>
> Phillip Powell wrote:
>
> > If you find out and is not posted here, TELL ME DAMMIT! :)
> >
> > Phil
> >
> > Chris Bielanski wrote:
> >
> >> Hey gang,
> >> How can I get the AutoComplete feature of [insert browser here] to
> >> ignore a
> >> text input control, without using "password?"
> >>
> >> I'm writing a payment screen that accepts a credit card
> number, but upon
> >> refresh, I've found that AutoComplete has held on to my
> cardnumber.
> >> This is
> >> undesired behavior, so how to foil it? Don't worry, I know all the
> >> rules and
> >> details about SB-930 (last-5-digits), CVV2 code, etc. I
> just need to
> >> know if
> >> there's a DOM or XHTML keyword that tells AutoComplete to
> shove off. The
> >> first workaround I conceived is to use a dynamically
> generated name
> >> for the
> >> input control, and so forth, but that does seem kludgey.
> >>
> >> Thanks,
> >> Chris Bielanski
> >> Web Programmer, International Trademark Association,
> >> 655 Third Avenue, 10th Floor
> >> New York, NY 10017-5617 USA
> >> +1 (212) 642-1745, f: +1 (212) 768-7796
> >> mailto:cbielanski@inta.org, www.inta.org INTA -- 125 Years of
> >> Excellence
> >>
> >> _______________________________________________
> >> New York PHP SIG: Front End
> >> http://lists.nyphp.org/mailman/listinfo/front-end
> >> http://www.newyorkphp.org
> >>
> >>
> >>
> >
> >
>
>
> --
> Dan Horning
> http://www.danhorning.com/
> Office - 1-800-863-3854 ext. 502
>
> _______________________________________________
> New York PHP SIG: Front End
> http://lists.nyphp.org/mailman/listinfo/front-end
> http://www.newyorkphp.org
>
From mitch.pirtle at gmail.com Mon Feb 7 11:28:55 2005
From: mitch.pirtle at gmail.com (Mitch Pirtle)
Date: Tue Mar 4 07:24:10 2008
Subject: [front-end] javascript character counters
Message-ID: <330532b605020708286ac05091@mail.gmail.com>
Hey FE list,
Just got a request to incorporate a character counter, attached to a
textarea that displays something like this: "You have xxx characters
remaining for your message."
I've searched around, but not finding anything useful. Any folks with
experience doing stuff like this?
-- Mitch
From drydell at att.net Mon Feb 7 11:33:46 2005
From: drydell at att.net (drydell@att.net)
Date: Tue Mar 4 07:24:10 2008
Subject: [front-end] Foiling AutoComplete for non-Password controls
Message-ID: <020720051633.23739.4207986A000B0DD500005CBB216046664804040A0B979D0B@att.net>
there's an HTML attribute for the input tag that handles it:
From chsnyder at gmail.com Mon Feb 7 11:36:08 2005
From: chsnyder at gmail.com (csnyder)
Date: Tue Mar 4 07:24:10 2008
Subject: [front-end] Foiling AutoComplete for non-Password controls
In-Reply-To: <4DBE3775D77C744E9D1B9D06082E75D60AAB3A@intamail1.ny.inta.org>
References: <4DBE3775D77C744E9D1B9D06082E75D60AAB3A@intamail1.ny.inta.org>
Message-ID:
Ummm, it's not official that I know of, but it seems to work:
Add an autocomplete="off" attribute to the input element in question.
ymmv.
From Cbielanski at inta.org Mon Feb 7 11:55:19 2005
From: Cbielanski at inta.org (Chris Bielanski)
Date: Tue Mar 4 07:24:10 2008
Subject: [front-end] javascript character counters
Message-ID: <4DBE3775D77C744E9D1B9D06082E75D60AAB3C@intamail1.ny.inta.org>
Javascript has that nice cheap ".length" attribute. Since it's loosely
typed, you'll almost always get a value. Tie a counting function to the
onchange of the textarea, do the math and output the result to a formfield
(cheaper than trying to deal with .innerHTML, IMHO) that displays the number
of characters left.
HTH,
Chris Bielanski
Web Programmer,
International Trademark Association,
655 Third Avenue, 10th Floor
New York, NY 10017-5617 USA
+1 (212) 642-1745, f: +1 (212) 768-7796
mailto:cbielanski@inta.org, www.inta.org
INTA -- 125 Years of Excellence
> -----Original Message-----
> From: Mitch Pirtle [mailto:mitch.pirtle@gmail.com]
> Sent: Monday, February 07, 2005 11:29 AM
> To: NYPHP SIG: Front End
> Subject: [front-end] javascript character counters
>
>
> Hey FE list,
>
> Just got a request to incorporate a character counter, attached to a
> textarea that displays something like this: "You have xxx characters
> remaining for your message."
>
> I've searched around, but not finding anything useful. Any folks with
> experience doing stuff like this?
>
> -- Mitch
> _______________________________________________
> New York PHP SIG: Front End
> http://lists.nyphp.org/mailman/listinfo/front-end
> http://www.newyorkphp.org
>
From Thomas.Freedman at ubs.com Mon Feb 7 12:16:04 2005
From: Thomas.Freedman at ubs.com (Freedman, Tom S.)
Date: Tue Mar 4 07:24:10 2008
Subject: [front-end] javascript character counters
Message-ID:
We're using one in a page here... we created a generic function, so it looks
a bit more complicated than it has to:
Here is the function:
//===========================================
function countChars(formName,elemName,cntrName) {
var textStr = eval("document." + formName + "." + elemName + ".value;");
var textLen = textStr.length;
var REMAINDER = 255 - textLen;
eval("document." + formName + "." + cntrName + ".value = " + REMAINDER);
} // END FUNCTION
//===========================================
And here's an example of how to call it...
Characters Remaining: