브라우저에서 개인 데이터 자동 필에서 사용하는 형식 필드 이름 (Safari, Opera)
문제
양식 필드 이름의 전체 목록을 찾고 있습니다 (<input name="…">
) 주요 브라우저에서 자동 충전 기능으로 인식됩니다.
다음은 시행 착오를 사용하여 Safari에서 일하는 것으로 밝혀진 일부입니다.
email
Ecom_ReceiptTo_Postal_Name_First
Ecom_ReceiptTo_Postal_Name_Last
first-name
firstname
last-name
lastname
full-name
birthday
company
jobtitle
phone
street
city
country
state
(미국 외부 카운티에 사용)postalcode
zip
그러나 타이틀/명예 접두사에 대한 별도의 필드를 찾을 수 없었습니다 (성명에만 포함).
오페라의 지팡이는 이름을 제외하고는 같은 이름을 인식합니다. Ecom_ReceiptTo_Postal_Name_First
그리고 Ecom_ReceiptTo_Postal_Name_Last
.
휴대폰 번호는 필드를 찾을 수 없었습니다. 별도의 집/직장 필드를 얻는 방법을 찾지 못했습니다.
제안이 있습니다 연장하다 autocomplete
기인하다 개발자가 명시 적으로 지정할 수 있도록합니다.
해결책
나는 당신이 사용한 이름을 알지 못했습니다. 그러나 나는 Mozilla/netscape를 알고 즉, vcard_name 속성을 사용하여 Autofill을 안내합니다. 여기에 설명되어 있습니다.
다른 팁
에 따르면 http://www.macosxhints.com/article.php?story=20070527063904285 Safari.app 패키지 내의 파일 내용/resources/enloghn.lproj/abautocempletemappings.plist 가이 목록을 이끌고 있습니다.
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
이것은 어리석은 제안 일지 모르지만, 당신은 출처를 얻고 찌르는 것을 고려 했습니까? WebKit이 여기 있습니다, Firefox가 여기 있습니다 (킨다). 그래도 오페라 나 IE에 도움이되지는 않습니다.
*
그것은 나에게 바보 일 것입니다. C/C ++는 모두 나에게 더블 공작입니다 :-)