turn "autocomplete" off in TextInput

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

turn "autocomplete" off in TextInput

EstebanLM
Hi,
I'm trying to turn auocomplete attribute in a text input to off. The
reason is that I have an SUAutocomplete put in there and is
collitioning with browser autocomplete (both are been showed now).

I tried putting:

html textInput
        ...
        attributeAt: #autocomplete put: 'off'.

...but nothing happens :(

Cheers,
Esteban


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: turn "autocomplete" off in TextInput

Lukas Renggli
> I'm trying to turn auocomplete attribute in a text input to off. The reason
> is that I have an SUAutocomplete put in there and is collitioning with
> browser autocomplete (both are been showed now).

The problem is that no standard describes such an attribute. Most
browser honor it though, but according to the following text you have
to add it to the surrounding form:

http://devedge-temp.mozilla.org/viewsource/2003/form-autocompletion/index_en.html#autocompleteoff

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: turn "autocomplete" off in TextInput

Boris Popov, DeepCove Labs (SNN)
Also, to ensure that validators don't complain about these, you can use
a bit of javascript to keep your code clean,

(html textInput)
  class: 'noautocomplete';
  value: number;
  callback: [:v | number := v]

// disable auto-complete for sensitive fields
$$('.noautocomplete').setProperty('autocomplete','off');

Cheers,

-Boris

--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
http://tinyurl.com/r7uw4

[hidden email]

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message header.
Unless otherwise indicated, it contains information that is private and
confidential. If you have received it in error, please notify the sender
and delete the entire message including any attachments.

Thank you.
-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Lukas
Renggli
Sent: Saturday, January 17, 2009 7:57 AM
To: Seaside - general discussion
Subject: Re: [Seaside] turn "autocomplete" off in TextInput

> I'm trying to turn auocomplete attribute in a text input to off. The
> reason is that I have an SUAutocomplete put in there and is
> collitioning with browser autocomplete (both are been showed now).

The problem is that no standard describes such an attribute. Most
browser honor it though, but according to the following text you have to
add it to the surrounding form:

http://devedge-temp.mozilla.org/viewsource/2003/form-autocompletion/inde
x_en.html#autocompleteoff

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside