Hi all, I have a user login form which the browser keeps populating because of its form fill feature. So when anyone goes to log in it shows the previous login''s username and password. How can I stop the browser from populating a text field? Thanks in advance. Cheers, Diego --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Feb 27, 2007, at 6:48 PM, Diego wrote:> > Hi all, > > I have a user login form which the browser keeps populating because of > its form fill feature. So when anyone goes to log in it shows the > previous login''s username and password. How can I stop the browser > from populating a text field? > > Thanks in advance. > > Cheers, > DiegoTry adding autocomplete="off" to the input. In Rails'' ruby, this would be :autocomplete => :off -Rob Rob Biedenharn http://agileconsultingllc.com Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thank you Rob! On Feb 28, 12:50 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> wrote:> On Feb 27, 2007, at 6:48 PM, Diego wrote: > > > > > Hi all, > > > I have a user login form which the browser keeps populating because of > > its form fill feature. So when anyone goes to log in it shows the > > previous login''s username and password. How can I stop the browser > > from populating a text field? > > > Thanks in advance. > > > Cheers, > > Diego > > Try adding > autocomplete="off" > to the input. In Rails'' ruby, this would be > :autocomplete => :off > > -Rob > > Rob Biedenharn http://agileconsultingllc.com > R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Unfortunately, the autocomplete attribute is IE only and doesn''t belong to any (X)HTML standard. Therefore browsers like Opera and Firefox may or may not support it. Firefox, for the record, does not. RSL On 2/27/07, Rob Biedenharn <Rob-GBZH0y1GwQfnZcttdmLDtcI/UQi/AW5J@public.gmane.org> wrote:> > > > On Feb 27, 2007, at 6:48 PM, Diego wrote: > > > > > Hi all, > > > > I have a user login form which the browser keeps populating because of > > its form fill feature. So when anyone goes to log in it shows the > > previous login''s username and password. How can I stop the browser > > from populating a text field? > > > > Thanks in advance. > > > > Cheers, > > Diego > > Try adding > autocomplete="off" > to the input. In Rails'' ruby, this would be > :autocomplete => :off > > -Rob > > Rob Biedenharn http://agileconsultingllc.com > Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I spoke incorrectly. Sorta. I''ll stand by the fact that autocomplete is an invalid HTML attribute but apparently Firefox _does_ support it. However, it needs to be on the form and not the input. Not that I''m endorsing using invalid HTML. Ick. I''m still searching for a valid HTML solution but wanted to correct my error. RSL On 2/28/07, Russell Norris <sconds-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Unfortunately, the autocomplete attribute is IE only and doesn''t belong to > any (X)HTML standard. Therefore browsers like Opera and Firefox may or may > not support it. Firefox, for the record, does not. > > RSL > > On 2/27/07, Rob Biedenharn <Rob-GBZH0y1GwQfnZcttdmLDtcI/UQi/AW5J@public.gmane.org> wrote: > > > > > > > > On Feb 27, 2007, at 6:48 PM, Diego wrote: > > > > > > > > Hi all, > > > > > > I have a user login form which the browser keeps populating because of > > > its form fill feature. So when anyone goes to log in it shows the > > > previous login''s username and password. How can I stop the browser > > > from populating a text field? > > > > > > Thanks in advance. > > > > > > Cheers, > > > Diego > > > > Try adding > > autocomplete="off" > > to the input. In Rails'' ruby, this would be > > :autocomplete => :off > > > > -Rob > > > > Rob Biedenharn http://agileconsultingllc.com > > Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org > > > > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
in firefox you have to go into the preferences and turn the feature off under the privacy tab. On 2/28/07, Russell Norris <sconds-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Unfortunately, the autocomplete attribute is IE only and doesn''t belong to > any (X)HTML standard. Therefore browsers like Opera and Firefox may or may > not support it. Firefox, for the record, does not. > > RSL > > > > On 2/27/07, Rob Biedenharn <Rob-GBZH0y1GwQfnZcttdmLDtcI/UQi/AW5J@public.gmane.org> wrote: > > > > > > On Feb 27, 2007, at 6:48 PM, Diego wrote: > > > > > > > > Hi all, > > > > > > I have a user login form which the browser keeps populating because of > > > its form fill feature. So when anyone goes to log in it shows the > > > previous login''s username and password. How can I stop the browser > > > from populating a text field? > > > > > > Thanks in advance. > > > > > > Cheers, > > > Diego > > > > Try adding > > autocomplete="off" > > to the input. In Rails'' ruby, this would be > > :autocomplete => :off > > > > -Rob > > > > Rob Biedenharn http://agileconsultingllc.com > > Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org > > > > > > > > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> I have a user login form which the browser keeps populating because of > its form fill feature. So when anyone goes to log in it shows the > previous login''s username and password. How can I stop the browser > from populating a text field?You do know you can turn this feature off in the browser, correct? Just checking. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
At least on Mac, Firefox 2.0.0.2 and Safari 2.0.4 both support this on the <input> element. I haven''t check recently, but I think I first found this with respect to IE (6.0?) on Windows about a year ago. Perhaps you need to think about the reason you want "valid" (X)HTML. http://www.alistapart.com/articles/whereourstandardswentwrong I don''t think that you''ll find a de jure standard, but this de facto one works for me. -Rob Rob Biedenharn http://agileconsultingllc.com Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org On Feb 28, 2007, at 8:07 AM, Russell Norris wrote:> I spoke incorrectly. Sorta. I''ll stand by the fact that > autocomplete is an invalid HTML attribute but apparently Firefox > _does_ support it. However, it needs to be on the form and not the > input. Not that I''m endorsing using invalid HTML. Ick. I''m still > searching for a valid HTML solution but wanted to correct my error. > > RSL > > On 2/28/07, Russell Norris <sconds-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Unfortunately, the autocomplete attribute is IE only and doesn''t > belong to any (X)HTML standard. Therefore browsers like Opera and > Firefox may or may not support it. Firefox, for the record, does not. > > RSL > > > On 2/27/07, Rob Biedenharn <Rob-GBZH0y1GwQfnZcttdmLDtcI/UQi/AW5J@public.gmane.org > wrote: > > > On Feb 27, 2007, at 6:48 PM, Diego wrote: > > > > > Hi all, > > > > I have a user login form which the browser keeps populating > because of > > its form fill feature. So when anyone goes to log in it shows the > > previous login''s username and password. How can I stop the browser > > from populating a text field? > > > > Thanks in advance. > > > > Cheers, > > Diego > > Try adding > autocomplete="off" > to the input. In Rails'' ruby, this would be > :autocomplete => :off > > -Rob--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
autocomplete = "off" is works well for ie, firefox 2(with enabled privacy). tested. the "problem" of xhtml compliance ? forget about this incompartibility, in this case this is only the way. On Feb 28, 1:48 am, "Diego" <dbar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi all, > > I have a user login form which the browser keeps populating because of > its form fill feature. So when anyone goes to log in it shows the > previous login''s username and password. How can I stop the browser > from populating a text field? > > Thanks in advance. > > Cheers, > Diego--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I don''t think this should be done anyways, in the End it''s a Browser side feature about which the User should decide weither to use it or not. If the user wants to stor his username & password fields, let him do it. If not, he will disable it (and it''s disabled by default // most browsers ask weither to act that way or not) On 1 Mrz., 14:16, "alexey.Creopolis" <alex.creopo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> autocomplete = "off" is works well for ie, firefox 2(with enabled > privacy). > tested. > > the "problem" of xhtml compliance ? > forget about this incompartibility, in this case this is only the way. > > On Feb 28, 1:48 am, "Diego" <dbar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Hi all, > > > I have a user login form which the browser keeps populating because of > > its form fill feature. So when anyone goes to log in it shows the > > previous login''s username and password. How can I stop the browser > > from populating a text field? > > > Thanks in advance. > > > Cheers, > > Diego- Zitierten Text ausblenden - > > - Zitierten Text anzeigen ---~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I gotta agree with Thorsten. Not only are you taking away a user''s choices [as opposed to giving him more] but there''s the [and I can''t stress this enough] invalid markup issue. That''s two reasons not to use this feature. ;) RSL On 3/1/07, Thorsten <duplexxx-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> > > I don''t think this should be done anyways, in the End it''s a Browser > side feature about which the User should decide weither to use it or > not. > If the user wants to stor his username & password fields, let him do > it. > If not, he will disable it (and it''s disabled by default // most > browsers ask weither to act that way or not) > > On 1 Mrz., 14:16, "alexey.Creopolis" <alex.creopo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > autocomplete = "off" is works well for ie, firefox 2(with enabled > > privacy). > > tested. > > > > the "problem" of xhtml compliance ? > > forget about this incompartibility, in this case this is only the way. > > > > On Feb 28, 1:48 am, "Diego" <dbar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > Hi all, > > > > > I have a user login form which the browser keeps populating because of > > > its form fill feature. So when anyone goes to log in it shows the > > > previous login''s username and password. How can I stop the browser > > > from populating a text field? > > > > > Thanks in advance. > > > > > Cheers, > > > Diego- Zitierten Text ausblenden - > > > > - Zitierten Text anzeigen - > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
njmacinnes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Mar-02 14:44 UTC
Re: Stop browser from "form filling" fields.
I agree with Russel about taking away the users'' choices, but for the record, here''s a (untested) solution using javascript: function blankFields() { document.myform.username.value = ""; document.myform.password.value = ""; } Then you use <body onload="blankfields();">. -N On 28/02/07, Rob Biedenharn <Rob-GBZH0y1GwQfnZcttdmLDtcI/UQi/AW5J@public.gmane.org> wrote:> > At least on Mac, Firefox 2.0.0.2 and Safari 2.0.4 both support this on the > <input> element. I haven''t check recently, but I think I first found this > with respect to IE (6.0?) on Windows about a year ago. > Perhaps you need to think about the reason you want "valid" (X)HTML. > http://www.alistapart.com/articles/whereourstandardswentwrong > > I don''t think that you''ll find a *de jure *standard, but this *de facto* one > works for me. > > -Rob > > Rob Biedenharn http://agileconsultingllc.comRob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org > > On Feb 28, 2007, at 8:07 AM, Russell Norris wrote: > > I spoke incorrectly. Sorta. I''ll stand by the fact that autocomplete is an > invalid HTML attribute but apparently Firefox _does_ support it. However, it > needs to be on the form and not the input. Not that I''m endorsing using > invalid HTML. Ick. I''m still searching for a valid HTML solution but wanted > to correct my error. > > RSL > > On 2/28/07, Russell Norris <sconds-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Unfortunately, the autocomplete attribute is IE only and doesn''t belong > > to any (X)HTML standard. Therefore browsers like Opera and Firefox may or > > may not support it. Firefox, for the record, does not. > > > > RSL > > > > On 2/27/07, Rob Biedenharn <Rob-GBZH0y1GwQfnZcttdmLDtcI/UQi/AW5J@public.gmane.org > wrote: > > > > > > > > > > > > On Feb 27, 2007, at 6:48 PM, Diego wrote: > > > > > > > > > > > Hi all, > > > > > > > > I have a user login form which the browser keeps populating because > > > of > > > > its form fill feature. So when anyone goes to log in it shows the > > > > previous login''s username and password. How can I stop the browser > > > > from populating a text field? > > > > > > > > Thanks in advance. > > > > > > > > Cheers, > > > > Diego > > > > > > Try adding > > > autocomplete="off" > > > to the input. In Rails'' ruby, this would be > > > :autocomplete => :off > > > > > > -Rob > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
if you''re worried about XHTML validation failing, you can do dirty tricks like: Event.observe(window,''load'',function(){ $$(''input'').invoke(''setAttribute'',''autocomplete'',''off''); }); (tested this only in FF, YMMV). best, thomas Am 02.03.2007 um 15:44 schrieb njmacinnes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org:> I agree with Russel about taking away the users'' choices, but for > the record, here''s a (untested) solution using javascript: > > function blankFields() > { > document.myform.username.value = ""; > document.myform.password.value = ""; > } > > Then you use <body onload="blankfields();">. > > -N > > On 28/02/07, Rob Biedenharn < Rob-GBZH0y1GwQfnZcttdmLDtcI/UQi/AW5J@public.gmane.org> wrote: > At least on Mac, Firefox 2.0.0.2 and Safari 2.0.4 both support this > on the <input> element. I haven''t check recently, but I think I > first found this with respect to IE (6.0?) on Windows about a year > ago. > > Perhaps you need to think about the reason you want "valid" (X)HTML. > http://www.alistapart.com/articles/whereourstandardswentwrong > > I don''t think that you''ll find a de jure standard, but this de > facto one works for me. > > -Rob > > Rob Biedenharn http://agileconsultingllc.com > Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org > > On Feb 28, 2007, at 8:07 AM, Russell Norris wrote: > >> I spoke incorrectly. Sorta. I''ll stand by the fact that >> autocomplete is an invalid HTML attribute but apparently Firefox >> _does_ support it. However, it needs to be on the form and not the >> input. Not that I''m endorsing using invalid HTML. Ick. I''m still >> searching for a valid HTML solution but wanted to correct my error. >> >> RSL >> >> On 2/28/07, Russell Norris <sconds-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > wrote: >> Unfortunately, the autocomplete attribute is IE only and doesn''t >> belong to any (X)HTML standard. Therefore browsers like Opera and >> Firefox may or may not support it. Firefox, for the record, does not. >> >> RSL >> >> >> On 2/27/07, Rob Biedenharn < Rob-GBZH0y1GwQfnZcttdmLDtcI/UQi/AW5J@public.gmane.org > wrote: >> >> On Feb 27, 2007, at 6:48 PM, Diego wrote: >> >> > >> > Hi all, >> > >> > I have a user login form which the browser keeps populating >> because of >> > its form fill feature. So when anyone goes to log in it shows the >> > previous login''s username and password. How can I stop the browser >> > from populating a text field? >> > >> > Thanks in advance. >> > >> > Cheers, >> > Diego >> >> Try adding >> autocomplete="off" >> to the input. In Rails'' ruby, this would be >> :autocomplete => :off >> >> -Rob > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
While this works... It''s kinda the equivalent of changing your answers on a test after the teacher''s already graded it. Either ignore the restraints of validation or follow them but this is just pretending. [God, I hope that doesn''t sound super-snotty.] I agree with Rob in his [way] previous comment to me about questioning your rationale for following standards but I do always aim for valid markup. It just seems weird not to. To me. YMMV. RSL On 3/2/07, Thomas Fuchs <t.fuchs-moWQItti3gBl57MIdRCFDg@public.gmane.org> wrote:> > > if you''re worried about XHTML validation failing, you can do dirty > tricks like: > > Event.observe(window,''load'',function(){ > $$(''input'').invoke(''setAttribute'',''autocomplete'',''off''); > }); > > (tested this only in FF, YMMV). > > best, > thomas--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
If validation is used as a tool for making sure the page structure itself is sound (as opposed to following the standards for their own sake), it can help-- some things you want to have just aren''t covered by the standards, or don''t work because browsers don''t implement them correctly. So a mixture of having pages validate (and tools aware of XHTML working nicely) and "injecting" workarounds for both of the aforementioned issues is working out fine. For me. :) The "autocomplete" attribuet is probably a bad example anyway, as normally you always want this the way the user decides, except for certain cases (for example if you implement server-side autocompleting, and browsers interfere). Alas, I don''t think there''s one single unified answer for how to deal with this, it really depends on the circumstances, your "style" of coding, etc. Best, Thomas Am 03.03.2007 um 15:00 schrieb Russell Norris:> While this works... It''s kinda the equivalent of changing your > answers on a test after the teacher''s already graded it. Either > ignore the restraints of validation or follow them but this is just > pretending. [God, I hope that doesn''t sound super-snotty.] I agree > with Rob in his [way] previous comment to me about questioning your > rationale for following standards but I do always aim for valid > markup. It just seems weird not to. To me. YMMV. > > RSL > > On 3/2/07, Thomas Fuchs <t.fuchs-moWQItti3gBl57MIdRCFDg@public.gmane.org> wrote: > if you''re worried about XHTML validation failing, you can do dirty > tricks like: > > Event.observe(window,''load'',function(){ > $$(''input'').invoke(''setAttribute'',''autocomplete'',''off''); > }); > > (tested this only in FF, YMMV). > > best, > thomas > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---