<?xml version="1.0" encoding="iso-8859-1"?> 
<rdf:RDF
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
	xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
	xmlns:dc="http://purl.org/dc/elements/1.1/" 
	xmlns:dcterms="http://purl.org/dc/terms/" 
	xmlns:admin="http://webns.net/mvcb/"
	xmlns:thr="http://purl.org/rss/1.0/modules/threading/"
	xmlns:pb="http://www.ideaspace.net/users/wkearney/schema/postback/" 
	xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" 
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:mt="http://movabletype.org/"
	xmlns:foaf="http://xmlns.com/foaf/0.1/" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:html="http://www.w3.org/TR/REC-html40/"
	xmlns="http://purl.org/rss/1.0/"
> 

<rdf:Description rdf:about="http://www.ideaspace.net/users/wkearney/archives/entries/000117.html"> 
	<title>Testing the profile assistant</title>
	<link>http://www.ideaspace.net/users/wkearney/archives/entries/000117.html</link>
	<description>Need to fill in a form automatically?  Are you using IE?  The profile assistant built into IE may be able to help.</description> 

	<dc:creator>wkearney</dc:creator> 
	<dc:date>2003-01-01T18:35:48-05:00</dc:date> 
	<dc:identifier>http://www.ideaspace.net/users/wkearney/archives/entries/000117.html</dc:identifier>
	<dc:language>en-us</dc:language>

	 
	<dc:subject>Ideas</dc:subject>

	

	

	
	
	
	<dcterms:abstract>Need to fill in a form automatically?  Are you using IE?  The profile assistant built into IE may be able to help.</dcterms:abstract> 
	<dcterms:created>2003-01-01T18:35:48-05:00</dcterms:created> 
	<dcterms:isPartOf rdf:resource="http://www.ideaspace.net/users/wkearney/" /> 

	<mt:body><![CDATA[Users with Internet Explorer can have information automatically loaded into this form.  The <a href="http://msdn.microsoft.com/workshop/management/profile/profile_assistant.asp?frame=true">Profile Assistant</a> part of IE does the work.]]></mt:body>
	<mt:excerpt>Need to fill in a form automatically?  Are you using IE?  The profile assistant built into IE may be able to help.</mt:excerpt> 
	<mt:more><![CDATA[<form name=INFO>

<table bgcolor=#eeeeee>
<tr><th colspan=2>Main information</th></tr>

<tr><td>Display Name</td><td><input type=text size=64 name="DisplayName"></td></tr>
<tr><td>First Name</td><td><input type=text size=64 name="FirstName"></td></tr>
<tr><td>Middle Name</td><td><input type=text size=64 name="MiddleName"></td></tr>
<tr><td>Last Name</td><td><input type=text size=64 name="LastName"></td></tr>
<tr><td>E-mail</td><td><input type=text size=64 name="Email"></td></tr>
<tr><td>Gender</td><td><input type=text size=64 name="Gender"></td></tr>

<!-- Home -->
<tr><th colspan=2>Home information</th></tr>
<tr><td>Street Adress</td><td><input type=text size=64 name="HStreetAdress"></td></tr>
<tr><td>City</td><td><input type=text size=64 name="HCity"></td></tr>
<tr><td>State</td><td><input type=text size=64 name="HState"></td></tr>
<tr><td>ZIP code</td><td><input type=text size=64 name="HZipcode"></td></tr>
<tr><td>Country</td><td><input type=text size=64 name="HCountry"></td></tr>
<tr><td>Phone</td><td><input type=text size=64 name="HPhone"></td></tr>
<tr><td>Fax</td><td><input type=text size=64 name="HFax"></td></tr>
<tr><td>Cellular</td><td><input type=text size=64 name="Cellular"></td></tr>
<tr><td>Pager</td><td><input type=text size=64 name="Pager"></td></tr>
<tr><td>Homepage</td><td><input type=text size=64 name="Homepage"></td></tr>

<!-- Business -->
<tr><th colspan=2>Business information</th></tr>
<tr><td>Company</td><td><input type=text size=64 name="Company"></td></tr>
<tr><td>Street Adress</td><td><input type=text size=64 name="BStreetAdress"></td></tr>
<tr><td>City</td><td><input type=text size=64 name="BCity"></td></tr>
<tr><td>State</td><td><input type=text size=64 name="BState"></td></tr>
<tr><td>ZIP code</td><td><input type=text size=64 name="BZipcode"></td></tr>
<tr><td>Country</td><td><input type=text size=64 name="BCountry"></td></tr>
<tr><td>Job Title</td><td><input type=text size=64 name="JobTitle"></td></tr>
<tr><td>Department</td><td><input type=text size=64 name="Department"></td></tr>
<tr><td>Office</td><td><input type=text size=64 name="Office"></td></tr>
<tr><td>Phone</td><td><input type=text size=64 name="BPhone"></td></tr>
<tr><td>Fax</td><td><input type=text size=64 name="BFax"></td></tr>
<tr><td>URL</td><td><input type=text size=64 name="BURL"></td></tr>

<!-- Navigator -->
<tr><th colspan=2>Navigator information</th></tr>
<tr><td>appCodeName</td><td><input type=text size=64 name="appCodeName"></td></tr>
<tr><td>appMinorVersion</td><td><input type=text size=64 name="appMinorVersion"></td></tr>
<tr><td>appName</td><td><input type=text size=64 name="appName"></td></tr>
<tr><td>appVersion</td><td><input type=text size=64 name="appVersion"></td></tr>
<tr><td>browserLanguage</td><td><input type=text size=64 name="browserLanguage"></td></tr>
<tr><td>cookieEnabled</td><td><input type=text size=64 name="cookieEnabled"></td></tr>
<tr><td>cpuClass</td><td><input type=text size=64 name="cpuClass"></td></tr>
<tr><td>platform</td><td><input type=text size=64 name="platform"></td></tr>
<tr><td>onLine</td><td><input type=text size=64 name="onLine"></td></tr>
<tr><td>systemLanguage</td><td><input type=text size=64 name="systemLanguage"></td></tr>
<tr><td>userLanguage</td><td><input type=text size=64 name="userLanguage"></td></tr>
<tr><td>userAgent</td><td><input type=text size=64 name="userAgent"></td></tr>

<!-- Screen -->
<tr><th colspan=2>Screen information</th></tr>
<tr><td>Screen width</td><td><input type=text size=64 name="screenWidth"></td></tr>
<tr><td>Screen height</td><td><input type=text size=64 name="screenHeight"></td></tr>
<tr><td>Color Depth</td><td><input type=text size=64 name="colorDepth"></td></tr>



<tr><td></td><td><input type=submit></td></tr>

</table>
</form>


<script>
// Queue a request for read access to multiple profile attributes.

navigator.userProfile.addReadRequest("vCard.DisplayName");
navigator.userProfile.addReadRequest("vCard.FirstName");
navigator.userProfile.addReadRequest("vCard.MiddleName");
navigator.userProfile.addReadRequest("vCard.LastName");
navigator.userProfile.addReadRequest("vCard.Email");
navigator.userProfile.addReadRequest("vCard.Gender");

//Home
navigator.userProfile.addReadRequest("vCard.Home.StreetAdress");
navigator.userProfile.addReadRequest("vCard.Home.City");
navigator.userProfile.addReadRequest("vCard.Home.State");
navigator.userProfile.addReadRequest("vCard.Home.Zipcode");
navigator.userProfile.addReadRequest("vCard.Home.Country");
navigator.userProfile.addReadRequest("vCard.Home.Phone");
navigator.userProfile.addReadRequest("vCard.Home.Fax");
navigator.userProfile.addReadRequest("vCard.Cellular");
navigator.userProfile.addReadRequest("vCard.Pager");
navigator.userProfile.addReadRequest("vCard.Homepage");

//Business
navigator.userProfile.addReadRequest("vCard.Company");
navigator.userProfile.addReadRequest("vCard.Business.StreetAddress");
navigator.userProfile.addReadRequest("vCard.Business.City");
navigator.userProfile.addReadRequest("vCard.Business.State");
navigator.userProfile.addReadRequest("vCard.Business.Zipcode");
navigator.userProfile.addReadRequest("vCard.Business.Country");
navigator.userProfile.addReadRequest("vCard.JobTitle");
navigator.userProfile.addReadRequest("vCard.Department");
navigator.userProfile.addReadRequest("vCard.Office");
navigator.userProfile.addReadRequest("vCard.Business.Phone");
navigator.userProfile.addReadRequest("vCard.Business.Fax");
navigator.userProfile.addReadRequest("vCard.Business.URL");


// Request access to the information.
var usagecode=8;
navigator.userProfile.doReadRequest(usagecode, "Bill Kearney");

// Now perform read operations to access the information.

var f=document.forms.INFO;
var ng=navigator.userProfile;

f.DisplayName.value = ng.getAttribute("vCard.DisplayName");
f.FirstName.value = ng.getAttribute("vCard.FirstName");
f.MiddleName.value = ng.getAttribute("vCard.MiddleName");
f.LastName.value = ng.getAttribute("vCard.LastName");
f.Email.value = ng.getAttribute("vCard.Email");
f.Gender.value = ng.getAttribute("vCard.Gender");

f.HStreetAdress.value = ng.getAttribute("vCard.Home.StreetAdress");
f.HCity.value = ng.getAttribute("vCard.Home.City");
f.HState.value = ng.getAttribute("vCard.Home.State");
f.HZipcode.value = ng.getAttribute("vCard.Home.Zipcode");
f.HCountry.value = ng.getAttribute("vCard.Home.Country");
f.HPhone.value = ng.getAttribute("vCard.Home.Phone");
f.HFax.value = ng.getAttribute("vCard.Home.Fax");
f.Cellular.value = ng.getAttribute("vCard.Cellular");
f.Pager.value = ng.getAttribute("vCard.Pager");
f.Homepage.value = ng.getAttribute("vCard.Homepage");

f.Company.value = ng.getAttribute("vCard.Company");
f.BStreetAdress.value = ng.getAttribute("vCard.Business.StreetAdress");
f.BCity.value = ng.getAttribute("vCard.Business.City");
f.BState.value = ng.getAttribute("vCard.Business.State");
f.BZipcode.value = ng.getAttribute("vCard.Business.Zipcode");
f.BCountry.value = ng.getAttribute("vCard.Business.Country");
f.JobTitle.value = ng.getAttribute("vCard.JobTitle");
f.Department.value = ng.getAttribute("vCard.Department");
f.Office.value = ng.getAttribute("vCard.Office");
f.BPhone.value = ng.getAttribute("vCard.Business.Phone");
f.BFax.value = ng.getAttribute("vCard.Business.Fax");
f.BURL.value = ng.getAttribute("vCard.Business.URL");

// Navigator

f.appCodeName.value = window.clientInformation.appCodeName;
f.appMinorVersion.value =  window.clientInformation.appMinorVersion;
f.appName.value =  window.clientInformation.appName;
f.appVersion.value =  window.clientInformation.appVersion;
f.browserLanguage.value =  window.clientInformation.browserLanguage;
f.cookieEnabled.value =  window.clientInformation.cookieEnabled;
f.cpuClass.value =  window.clientInformation.cpuClass;
f.platform.value =  window.clientInformation.platform;
f.onLine.value =  window.clientInformation.onLine;
f.systemLanguage.value =  window.clientInformation.systemLanguage;
f.userLanguage.value =  window.clientInformation.userLanguage;
f.userAgent.value =  window.clientInformation.userAgent;

// Screen
f.screenHeight.value =  screen.Height;
f.screenWidth.value =  screen.Width;
f.colorDepth.value =  screen.colorDepth;

// Clear the request queue to prepare for future information requests.
navigator.userProfile.clearRequest();

</script>
]]></mt:more>
	<mt:keywords></mt:keywords> 
	<mt:entryID>117</mt:entryID>

	<mt:entryPrev>172</mt:entryPrev>
	<mt:entryNext>2</mt:entryNext>

	<html:link rel="prev" type="application/xml" href="http://www.ideaspace.net/users/wkearney/archives/entries/000172.html.xml" title="How'd he do that?" />
	<html:link rel="next" type="application/xml" href="http://www.ideaspace.net/users/wkearney/archives/entries/000002.html.xml" title="Testing" />
	
	<mt:author>wkearney</mt:author> 
	<mt:authorNickname>Bill Kearney</mt:authorNickname> 
	<mt:authorEmail>wkearney@ideaspace.net</mt:authorEmail>
	<mt:authorURL rdf:resource="http://www.ideaspace.net/users/wkearney" /> 
	
	<foaf:name>wkearney</foaf:name> 
	<foaf:mbox rdf:resource="mailto:wkearney@ideaspace.net" /> 
	<foaf:nick>Bill Kearney</foaf:nick> 
	<foaf:homepage rdf:resource="http://www.ideaspace.net/users/wkearney" />
	
	<rdfs:seeAlso rdf:resource="http://www.ideaspace.net/users/wkearney/xml/index.rdf" />
	<admin:generatorAgent rdf:resource="http://www.movabletype.org/?v=2.64" /> 
</rdf:Description>
</rdf:RDF>