我知道这个问题问了很多次,但我的问题有所不同。
我有 3 个 html 页面,例如apply.html
, personal_info.html
, resume info.html
.
在 apply.html 页面中:-
我使用一个 LinkedIn 按钮进行 LinkedIn 登录。当用户单击该按钮并填写登录信息时,它会从 LinkedIn 获取用户数据。并在同一页面上显示(apply.html)。在personal_info.html 中:-
我需要分别显示TextField
我们从LinkdIn 获取的个人信息。在 Resume_info.html 中:-
这里我需要显示我们使用 LinkedIn 在 apply.html 页面上获取的职业信息。
我不明白该怎么做?我很新Html,JavaScript
。
这是我的代码供您参考。
Apply.html 我在其中获取 LinkedIn 日期
<html>
<head>
<script type="text/javascript">
function loadData() {
IN.API.Profile("me")
.fields(["id", "firstName", "lastName", "pictureUrl","headline","industry","location:(name)","positions:(title)","emailAddress"])
.result(function(result) {
profile = result.values[0];
profHTML = "<p><a href=\"" + profile.publicProfileUrl + "\">";
profHTML += "<img class=img_border align=\"left\" src=\"" + profile.pictureUrl + "\"></a>";
profHTML += "<a href=\"" + profile.publicProfileUrl + "\">";
profHTML += "<h2 class=myname>" + profile.firstName + " " + profile.lastName + "</a> </h2>";
profHTML += "<span class=myheadline>" + profile.headline + "</span>";
profHTML += "<h3>" + profile.industry + "</h3>";
profHTML += "<h3>" + profile.location.name + "</h3>";
profHTML += "<h3>" + profile.positions.values[0].title + "</h3>";
profHTML += "<h3>" + profile.positions.values[1].title + "</h3>";
profHTML += "<h3>" + profile.emailAddress + "</h3>";
$("#profiles").html(profHTML);
});
}
</script>
</head>
<body>
<script type="IN/Login" data-onAuth="loadData"></script>
<div id="profiles"></div>
<div id="profiles1"></div>
</body>
personal_Info.html 我需要在其中显示 LinkedIn 数据。
<body>
<div id="container">
<section>
<div class="results">
<div class="results-head">
Personal Info
<div class="pagecount">1/6</div>
</div>
<div class="job-des">
<div class="row">
<input name="textfield2" type="text" id="textfield1" value="First Name" class="input-field" onblur="if (this.value == '')">
</div>
<div class="row">
<input name="textfield" type="text" id="textfield2" value="Last Name" class="input-field">
</div>
<div class="row">
<input name="textfield" type="text" id="textfield3" value="Street Address" class="input-field">
</div>
<div class="row">
<input name="textfield" type="text" id="textfield4" value="City" class="input-field">
</div>
<div class="row">
<select name="select2" id="select2" class="input_list2">
<option value=""> Country </option>
</select>
</div>
<div class="row">
<select name="select2" id="select3" class="input_list2">
<option>State</option>
</select>
</div>
<div class="row">
<select name="select2" id="select4" class="input_list2">
<option>Region</option>
</select>
</div>
<div class="row">
<input name="textfield" type="text" id="textfield5" value="Zip/Postal Code" class="input-field">
</div>
<div class="row">
<input name="textfield" type="text" id="textfield6" value="Email Address" class="input-field">
</div>
<div class="row">
<input name="" type="checkbox" value="" checked align="bottom">
Authorization to work in U.S.
</div>
</div>
</div>
<div class="input-btn-panel">
<div class="input-btn-wrap"><input type="submit" name="button" id="button" value="Next" class="blue-btn" onClick="updateTxt()"></div>
<div id="profiles"></div>
</div>
</body>
请给我一些提示。我不明白该怎么做?