½ºÅ©¸³Æ®¸¦ ÀÌ¿ëÇÏ¿© »ç¿ëÀÚ ÇÁ·ÎÆÄÀÏ(profile) Á¤º¸¿¡ Á¢¼ÓÀ» ¿äûÇÏ°í Àб⸦ ¼öÇàÇÒ ¼ö ÀÖ´Â ¹æ½ÄÀ» Á¦°øÇÑ´Ù.
|
Script |
..methodName(arguments); |
HTML |
¾ø´Ù. |
- Ư±â
-
¸¸ÀÏ »çÀÌÆ®¿¡ ÇÁ·ÎÆÄÀÏ ÀбⰡ ¾øÀ¸¸é, »ç¿ëÀÚ´Â ¿äû ¾ÖÆ®¸®ºäÆ® ¸ñ·ÏÀÇ ÇÁ·ÒÇÁÆ®¸¦ ¼±ÅÃÇÏ´ø°¡, Á¢¼ÓÀÌ °ÅÀýµÈ´Ù.
Àаųª ¾²±â Àü¿¡ ¿äûÇϹǷμ, ¿©·¯ ¿©·¯ ¿äû¿¡ Çѹø¸¸ Çã¿ë¹Þ°Ô µÇ¹Ç·Î Æí¸®ÇÏ°Ô ÇÑ´Ù.
- Àû¿ë
-
addReadRequest ¸Þ¼µå
IE4 -
¢¡
vCard Àб⠿äûÀ» Ãß°¡ÇÏ°í °á°ú¸¦ ¼º°øÇϸé
true, ½ÇÆÐÇϸé
falseÀ¸·Î ºÎ¿ï°ªÀ¸·Î ¹ÝȯÇÑ´Ù.
¹®¹ý: [window.]clientInformation.userProfileObj.addReadRequest(vCardAttributeName)
ÄÚµå: document.write(clientInformation.userProfile.addReadRequest('vCard.Email'))
°á°ú:
ÄÚµå: document.write(clientInformation.userProfile.addReadRequest('vCard.Business.City'))
°á°ú:
vCardAttributeName(vCard Names) |
vCard.Business.City |
vCard.Business.Country |
vCard.Business.Fax |
vCard.Business.Phone |
vCard.Business.State |
vCard.Business.StreetAddress |
vCard.Business.URL |
vCard.Business.Zipcode |
vCard.Cellular |
vCard.Company |
vCard.Department |
vCard.DisplayName |
vCard.Email |
vCard.FirstName |
vCard.Gender* |
vCard.Home.City |
vCard.Home.Country |
vCard.Home.Fax |
vCard.Home.Phone |
vCard.Home.State |
vCard.Home.StreetAddress |
vCard.Home.Zipcode |
vCard.Homepage |
vCard.JobTitle |
vCard.LastName |
vCard.MiddleName |
vCard.Notes |
vCard.Office |
vCard.Pager |
|
clearRequest ¸Þ¼µå
IE4 -
¢¡ Àб⠿äûÀ» ¸ðµÎ »èÁ¦ÇÏ°í »õ·Î¿î ÇÁ·ÎÆÄÀÏÀ» »ý¼ºÇÒ ¼ö ÀÖ°Ô ÁغñÇÑ´Ù. ¹Ýȯ°ªÀº ¾ø´Ù.
¹®¹ý: [window.]clientInformation.userProfileObj.clearRequest()
ÄÚµå: document.write(clientInformation.userProfile.clearRequest())
°á°ú: // ¹Ýȯ°ªÀº ¾ø´Ù.
doReadRequest ¸Þ¼µå
IE4 -
¢¡ ÁöÁ¤ÇÑ ¸ðµç ¿äûÀ» ¼öÇàÇÑ´Ù. ¹Ýȯ°ªÀº ¾ø´Ù.
¹®¹ý: [window.]clientInformation.userProfileObj.doReadRequest(vUsageCode[, vFriendlyName][,vDomain][,vPath][,vExpiration][,vReserved])
ÄÚµå: document.write(clientInformation.userProfile.doReadRequest(1))
°á°ú: // ¹Ýȯ°ªÀº ¾ø´Ù.
vUsageCode |
Çʼö ¿ä¼ÒÀÌ°í, ¾Æ·¡¿Í °°ÀÌ »ç¿ëÀÚ°¡ ¿äûÇÏ´Â Á¢¼Ó ¿äû ŸÀÔ Äڵ带 ÁöÁ¤ÇÏ´Â Á¤¼öÀÌ´Ù.
»ç¿ëÄÚµå´Â IPWG(Internet Privacy Working Group)¿¡ Á¤ÀÇµÈ ´ÙÀ½ Áß ÇϳªÀÌ´Ù.
0 |
system administration¿¡ ÀÇÇØ »ç¿ëµÈ´Ù. |
1 |
¿¬±¸³ª °³¹ßÀÚ¿¡ ÀÇÇØ »ç¿ëµÈ´Ù. |
2 |
ÇöÀçÀÇ ±³½ÅÀ» Áö¿øÇÏ°í ¿Ï·á¸¦ À§ÇÏ¿© »ç¿ëµÈ´Ù. |
3 |
»çÀÌÆ® ¼³°èÀÇ ³»¿ëÀ» Ä¿½ºÅ͸¶ÀÌÁîÇϱâ À§ÇØ »ç¿ëµÈ´Ù. |
4 |
±¤°í¸¦ Æ÷ÇÔÇÏ´Â »çÀÌÆ®ÀÇ ³»¿ëÀ» °³¼±Çϱâ À§ÇØ »ç¿ëµÈ´Ù. |
5 |
»çÀÌÆ®ÀÇ ¾÷µ¥ÀÌÆ®¿¡ ´ëÇØ ¹æ¹®ÀÚ¿¡°Ô ¾Ë·ÁÁÙ ¶§ »ç¿ëµÈ´Ù. |
6 |
¹æ¹®ÀÚ¿¡°Ô ¼ºñ½º³ª Á¦Ç°ÀÇ ¸¶ÄÉÆÃÀ» À§ÇØ »ç¿ëµÈ´Ù. |
7 |
´Ù¸¥ ÁýÇÕ Á¤º¸¿¡ Á¢¼ÓÇϱâ À§ÇÏ¿© »ç¿ëµÈ´Ù. |
8 |
»çÀÌÆ®¿¡¼ ´Ù¸¥ ¸ñÀûÀ¸·Î »ç¿ëµÈ´Ù. |
9 |
»çÀÌÆ®ÀÇ ³»¿ë°ú µðÀÚÀÎÀÇ Ä¿½ºÅ͸¶ÀÌ¡À̳ª °³¼±À» ŸÀο¡°Ô °ø°³ÇÑ´Ù. |
10 |
Á¦Ç°À̳ª ¼ºñ½ºÀÇ ¸¶ÄÉÆÃÀ» À§ÇØ Á¢ÃËÇÒ ¼ö ÀÖ´Â »ç¿ëÀÚ¿¡°Ô °ø°³ÇÑ´Ù. |
11 |
Á¦Ç°À̳ª ¼ºñ½ºÀÇ ¸¶ÄÉÆÃÀ» À§ÇØ Á¢ÃËÇÒ ¼ö ÀÖ´Â »ç¿ëÀÚ¿¡°Ô ±ÝÁö»çÇ×À» °ø°³ÇÑ´Ù. |
12 |
´Ù¸¥ ¸ñÀûÀ¸·Î ŸÀο¡°Ô °ø°³ÇÑ´Ù. |
|
vFriendlyName |
¼±ÅÃÀûÀÎ ¿ä¼ÒÀÌ°í, °³ÀÎ Á¤º¸¿¡ Á¢¼ÓÀ» ¿äûÇÏ´Â »ç¶÷ÀÇ À̸§À» Ç¥½ÃÇÏ´Â ¹®ÀÚ¿ÀÌ´Ù.
º¸¾ÈÀÇ ¸ñÀûÀ¸·Î, »ç¿ëµµ±¸°¡ »ç¿ëÀÚÀÇ À̸§À» º¸¿©ÁÖ´Â °Í¸¸À¸·Î´Â ºÎÁ·ÇϹǷÎ, »ç¿ëµµ±¸´Â ÇÁ·ÎÆÄÀÏ¿¡ Á¢¼ÓÀ» ¿äûÇÏ´Â ½ºÅ©¸³Æ®ÀÇ ¿øõ ÁÖ¼Ò(URL)¸¦ Ç¥½ÃÇÏ¿©¾ß ÇÑ´Ù. ¸¸ÀÏ ¿øõ Á¢¼ÓÀÌ ¾ÈÀüÇÑ Á¢¼ÓÀ̸é(SSL ÀÎÁõµî), À¥ ÀÛ¼ºÀÚ´Â ±× ¿äûÀÚ¸¦ È®ÀÎÇϱâ À§ÇÏ¿© ÀÎÁõÀ» »ç¿ëÇÒ ¼ö ÀÖ´Ù. |
vDomain |
¼±ÅÃÀûÀÎ ¿ä¼ÒÀÌ°í, »ç¿ëÀÚ°¡ ¼±ÅÃÇÏ´Â ¹®¼¸¦ ³ªÅ¸³»´Â ¹®ÀÚ¿À̸ç ÄíÅ°(cookie) Ç¥ÁØÀ» µû¸¥´Ù. |
vPath |
¼±ÅÃÀûÀÎ ¿ä¼ÒÀÌ°í, Á¢¼ÓÀ» ¿äûÇÏ´Â µµ¸ÞÀÎ ¼¹ö±îÁö °æ·ÎÀÇ ¹®ÀÚ¿ÀÌ´Ù.
vExpiration ¸¦ ÁöÁ¤Çϸé ÀÌ °æ·Î°¡ ¿äûµÈ ¾ÖÆ®¸®ºäÅõ¿¡ ÀúÀåµÈ´Ù. |
vExpiration, vReserved |
¼±ÅÃÀûÀÎ ¿ä¼ÒÀÌ°í, ¾ÆÁ÷ »ç¿ëµÇÁö ¾Ê´Â´Ù. |
getAttribute ¸Þ¼µå
IE4 -
¢¡
userProfileObj °³Ã¼·ÎºÎÅÍ ¾ÖÆ®¸®ºäÆ® À̸§(
vCardAttributeName)À» ¹ÝȯÇÑ´Ù.
¹®¹ý: [window.]clientInformation.userProfileObj.getAttribute(vCardAttributeName)
ÄÚµå: document.write(clientInformation.userProfile.getAttribute('vCard.Email'))
°á°ú:
setAttribute ¸Þ¼µå
IE4 -
¢¡
userProfileObj °³Ã¼¿¡ ÁöÁ¤µÈ ¾ÖÆ®¸®ºäÆ®(
vCardAttributeName)À» ¼³Á¤Çϸç, ¹Ýȯ°ªÀº ¾ø´Ù.
ÀÌ
setAttribute¸Þ¼µå´Â
getAttribute¿Í °°ÀÌ °ÅÀÇ ¸ðµç ¿¤·¹¸ÇÆ®¿¡ Æø³Ð°Ô »ç¿ëµÈ´Ù.
¹®¹ý: [window.]clientInformation.userProfileObj.setAttribute(vCardName,vValue[,iFlags])
ÄÚµå: document.write(clientInformation.userProfile.setAttribute('vCard.Email',1))
°á°ú: // ¹Ýȯ°ªÀº ¾ø´Ù.
vCardName |
ÇʼöÀû ¿ä¼Ò |
¿©±â¼´Â vCardAttributeName ÁßÀÇ ÇϳªÀÌ´Ù. |
vValue |
ÇʼöÀû ¿ä¼Ò |
¾ÖÆ®¸®ºäÆ®¸¦ Áö¿øÇϱâ À§ÇÑ ¹®ÀÚ¿(String), ¼öÄ¡(Number), ºÎ¿ï(Boolean)À» ÁöÁ¤ÇÑ´Ù. |
iFlags |
¼±ÅÃÀû ¿ä¼Ò |
´ÙÀ½ Áß ÇϳªÀÇ Á¤¼öÀÌ´Ù. 0Àº ´ë¼Ò¹®ÀÚ¿¡ °ü°è¾øÀÌ °°Àº À̸§ÀÇ ¾ÖÆ®¸®ºäÆ®¸¦ µ¤¾î¾º¿ö ¼³Á¤ÇÏ°í, µðÆúÆ® 1Àº ´ë¼Ò¹®ÀÚ¸¦ ±¸º°ÇÑ´Ù. |
userProfile Àб⠿¹Á¦
<SCRIPT>
obj=navigator.userProfile; // object À̸§ Ãà¾à
vcName1='vCard.FirstName';
vcName2='vCard.Email';
str='<TABLE width=100% border=1><COL class=code><COL class=blue style=text-align:center><COL style=text-align:center>';
str+='<COL style=font-size:90%><TR><TH>ÄÚµå</TH><TH>°á°ú</TH><TH>¹Ýȯ°ª</TH><TH>¼³¸í</TH></TR>';
tr1='<TR><TD>';
tr2='</TD><TD>';
tr3='</TD></TR>';
obj.clearRequest();
str+=tr1+'obj.clearRequest()='+tr2+' '+tr2+' ¾ø½¿'+tr2+'¿äû »èÁ¦'+tr3;
str+=tr1+'obj.setAttribute("'+vcName1+'","Taeho",0)='+tr2+obj.setAttribute(vcName1,'Taeho',0)+
tr2+'¾ø½¿'+tr2+'¼³Á¤'+tr3;
str+=tr1+'obj.setAttribute("'+vcName2+'","trio@trio.co.kr",0)='+tr2+obj.setAttribute(vcName2,'trio@trio.co.kr',0)+
tr2+'¾ø½¿'+tr2+'¼³Á¤'+tr3;
str+=tr1+'obj.addReadRequest("'+vcName1+'")='+tr2+obj.addReadRequest(vcName1)+
r2+'true/false'+tr2+'Àбâ Çã¿ë ¿äû'+tr3;
str+=tr1+'obj.addReadRequest("'+vcName2+'")='+tr2+obj.addReadRequest(vcName2)+
tr2+'true/false'+tr2+'Àбâ Çã¿ë ¿äû'+tr3;
obj.doReadRequest(2,'Taeho');
str+=tr1+'obj.doReadRequest(2,"Taeho")='+tr2+' '+ tr2+'¾ø½¿'+tr2+'ÇØ´ç Á¤º¸ Á¢¼Ó ¿äû'+tr3;
name=obj.getAttribute(vcName1);
str+=tr1+'name=obj.getAttribute("'+vcName1+'")='+tr2+name+tr2+'À̸§'+tr2+'Àб⠼öÇà'+tr3;
email=obj.getAttribute(vcName2);
str+=tr1+'email=obj.getAttribute("'+vcName2+'")='+tr2+email+tr2+'À̸§'+tr2+'Àб⠼öÇà'+tr3;
str+='</TABLE>';
obj.clearRequest();
document.write(str);
</SCRIPT>
userProfile ¿¹Á¦
»ç¿ëÀÚ ÄÄÇ»ÅÍ¿¡¼ ¼öÇàÇϸç userProfile °³Ã¼¸¦ »ç¿ëÇÏ¿© ÇÁ·ÎÆÄÀÏ(profile)·ÎºÎÅÍ ¿©·¯ Á¤º¸µéÀ» Àд´Ù.
navigator.userProfile.addReadRequest('vcard.displayname'); // º¹¼ö ÇÁ·ÎÆÄÀÏ ¼Ó¼ºµéÀ» Àеµ·Ï ¿äûÇÑ´Ù.
navigator.userProfile.addReadRequest('vcard.gender');
navigator.userProfile.doReadRequest('vUsageCode','Acme Corporation'); // ÇÑ Á¤º¸¿¡ Á¢¼ÓÇϵµ·Ï ¿äûÇÑ´Ù.
name=navigator.userProfile.getAttribute('vcard.displayname'); // ¿äûÇÑ Á¤º¸¿¡ Á¢¼ÓÇÏ¿© ÀÐ¾î º¯¼ö¿¡ ÀúÀåÇÑ´Ù.
gender=navigator.userProfile.getAttribute('vcard.gender');
document.write(name+', '+gender); // ÀúÀåÇÑ º¯¼ö°ªÀ» Ãâ·ÂÇϰųª °³ÀÎ¿ë ³»¿ëÀ̳ª ¼¹ö¿¡ º¸³»±â À§ÇÏ¿© »ç¿ëÇÑ´Ù.
navigator.userProfile.clearRequest(); // Çâ ÈÄ ¿äûÀ» À§ÇÏ¿© ¿äûÇÑ ³»¿ëÀ» »èÁ¦ÇÑ´Ù.