[Seaside] turn "autocomplete" off in TextInput

Boris Popov boris at deepcovelabs.com
Mon Jan 19 19:20:33 UTC 2009


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

boris at deepcovelabs.com

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: seaside-bounces at lists.squeakfoundation.org
[mailto:seaside-bounces at lists.squeakfoundation.org] 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
seaside at lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


More information about the seaside mailing list