個人數據使用的表單字段名稱自動填充瀏覽器(Safari, Opera)

[英]Form field names used by personal data auto-fill in browsers (Safari, Opera)


I'm looking for complete list of form field names (<input name="…">) that are recognized by auto-fill functions in major browsers.

我正在尋找表單字段名稱()的完整列表,這些名稱在主要瀏覽器中的自動填充函數中是可以識別的。

Here are some I've found to work in Safari using trial-and-error:

下面是我發現的一些在Safari中使用試錯法的例子:

  • email
  • 電子郵件
  • Ecom_ReceiptTo_Postal_Name_First
  • Ecom_ReceiptTo_Postal_Name_First
  • Ecom_ReceiptTo_Postal_Name_Last
  • Ecom_ReceiptTo_Postal_Name_Last
  • first-name
  • 直呼其名的
  • firstname
  • firstname
  • last-name
  • 姓氏
  • lastname
  • full-name
  • 全名
  • birthday
  • 生日
  • company
  • 公司
  • jobtitle
  • 職務高低
  • phone
  • 電話
  • street
  • city
  • 城市
  • country
  • 國家
  • state (used for county outside US)
  • 州(用於美國以外的縣)
  • postalcode
  • postalcode
  • zip
  • 郵政編碼

However I couldn't find separate field for title/honorific prefix (it's included in full name only).

但是,我找不到title/honorific前綴的單獨字段(僅包含在全名中)。

Opera's Wand recognizes more or less the same names with exception of name, which requires Ecom_ReceiptTo_Postal_Name_First and Ecom_ReceiptTo_Postal_Name_Last.

Opera的Wand可以或多或少地識別相同的名稱,但不包括name,這需要Ecom_ReceiptTo_Postal_Name_First和Ecom_ReceiptTo_Postal_Name_Last。

I couldn't find field for mobile phone number. Haven't found way to get separate home/work fields.

我找不到找手機號碼的地方。還沒有找到一個獨立的家庭/工作領域。


There's proposal to extend autocomplete attribute to allow developers specify these explicitly.

有建議擴展自動完成屬性以允許開發人員明確地指定這些屬性。

4 个解决方案

#1


5  

I wasn't aware of the names you used. But I knew Mozilla/Netscape and IE use vcard_name attributes to guide autofill as described here.

我不知道你用的名字。但是我知道Mozilla/Netscape和IE使用vcard_name屬性來引導自動填充。

#2


28  

According to http://www.macosxhints.com/article.php?story=20070527063904285 the file Contents/Resources/English.lproj/ABAutoCompleteMappings.plist within the Safari.app package leads this list:

據http://www.macosxhints.com/article.php?故事= 20070527063904285文件內容/資源/ English.lproj / ABAutoCompleteMappings。在Safari plist。app package引領這個列表:

first
first name
fname
firstname
given name

middle initial
middleinitial
middle name
middlename
middle

last
last name
lname
lastname
surname

name

birthday
date of birth
born

job title
jobtitle

email
e-mail

street
street address
streetaddress
address1
address 1

address

city

state

zip
zipcode
zip code
postalcode
postal code

country

homephone
home phone
eveningphone
evening phone
home area code
home areacode
homeareacode
evening area code
evening areacode
eveningareacode

workphone
work phone
dayphone
day phone
daytime phone
companyphone
company phone
businessphone
business phone
work area code
work areacode
workareacode
day area code
day areacode
dayareacode
company area code
company areacode
companyareacode
business area code
business areacode
businessareacode

mobilephone
mobile phone
cellphone
cell phone
mobile area code
mobile areacode
mobileareacode
cell area code
cell areacode
cellareacode

pagerphone
pager phone
pager area code
pager areacode
pagerareacode

area code
areacode

phone

fax

organization
company

#3


2  

There is a RFC for this. But apparently some implementations search for labels rather than using field names.

這里有一個RFC。但是顯然有些實現是搜索標簽而不是使用字段名。

Did you try Ecom_ShipTo_Postal_Name_Prefix, Ecom_BillTo_Postal_Name_Prefix or Ecom_ReceiptTo_Postal_Name_Prefix for the title?

您是否嘗試過使用Ecom_ShipTo_Postal_Name_Prefix、Ecom_BillTo_Postal_Name_Prefix或Ecom_ReceiptTo_Postal_Name_Prefix作為標題前綴?

There doesn't seem to be any option for multiple phone numbers described in the RFC. Just Ecom_ReceiptTo_Telecom_Phone_Number etc

對於RFC中描述的多個電話號碼,似乎沒有任何選擇。只是Ecom_ReceiptTo_Telecom_Phone_Number等

#4


0  

This might be a silly suggestion*, but have you considered getting the source and poking around? Webkit is here, Firefox is here (kinda). It won't help with Opera or IE though.

這可能是一個愚蠢的建議*,但你是否考慮過獲取消息來源並四處打聽?Webkit在這里,Firefox在這里。這對歌劇或IE都沒有幫助。

* It'd be silly for me, c/c++ is all double duch to me :-)

*這對我來說很傻,c/c++對我來說是雙重誘惑:-)


注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2009/06/22/729b9e58ab9cd7ee6c52152c3a57792.html



 
粤ICP备14056181号  © 2014-2020 ITdaan.com