asp.net - Disable Google Toolbar Autofill -
Text after "
Google Toolbar's AutoFill feature has been made of its web development existence for the past several years. I'm always trying to make a timer control to check the changes because developers have failed to change the events of the change in control are buried in the back and has become further complicated when control nested repeaters, and Then there is another problem trying to attach to an UpdatePanel.
Has anyone been able to successfully stop the Google Toolbar from completing the form fields without changing the name of the field to some constellation? (Note: This does not work for a 'status' dropdown, so it goes to check the field value as well)
As Google's employee in smart form For the sake of being, it was a folly by stupidity. inspection.
Update: For those who are looking for a solution here, what have I got to work till now, you have ASP.net, server control The "timer" is to be used and this control is set as a trigger for UpdatePanel. It helps through loop and checks for converted values.
You were just trying to keep access to JavaScript, or using any other structure, I found to work best (I state and zip changes seen following function using. FocusElement is required because when hovering in a dropdownlist, it turns SelectedIndex):
function MonitorChanges (sStateDropdownID, sZipCodeID, sHiddenStateFieldId, sHiddenZipFieldId, bDoPostback) {var state = $ ('#' + SStateDropdownID) .val (); Var zip = $ ('#' + sZipCodeID) .val (); Var hiddenstate = $ ('#' + sHiddenStateFieldId) .val (); Var hiddenzip = $ ('#' + sHiddenZipFieldId) .val (); $ ('#' + SHiddenStateFieldId) .Val (state); $ ('#' + SHiddenZipFieldId) .val (ZIP); Var comparisonstring = state + zip; Var comparisonHiddenString = hiddenstate + hiddenzip; Var Focus Element = DealmentWith Focus (); If (comparison string! = Comparison hvide String & amp; Ashipingajip (ZIP)) {bDoPostback = true} if (Prsiynt (focus Krenilementkaidksek ( 'Diarpistet ")) == 1 & amp; Parsait (Fokselement. I.Sark ('TxtZip')) == -1 and bDoPostback) {bDoPostback = false; __Do postback (sstatedaupdowndown, ''); } Var f = function () {MonitorChanges (sStateDropdownID, sZipCodeID, sHiddenStateFieldId, sHiddenZipFieldId, bDoPostback); } SetTimeout (f, 1000); }
According to a Google developer, autocomplete = "off"
attribute will disable Google Toolbar autocompletion in both IE and Firefox. Note that this attribute should be & lt; Form & gt;
should be applied to the tag and the individual & lt; Input & gt;
Tags:
& lt; Form method = "post" action = "http://example.com" auto-complete = "off" & gt; & Lt ;! - ... - & gt; & Lt; / Form & gt;
Although this is not an immediate solution, this is probably the most reliable solution possible - if it is possible to wait until next Google Toolbar Toolbar.
Comments
Post a Comment