<html>
<head>
</head>
<body>
<strong>this is a test</strong>
<script type="text/javascript" src="http://platform.linkedin.com/in.js">
api_key: 42tc6cg8x9ov
onLoad: onLinkedInLoad
authorize: true
</script>
<!--
<script type="in/Login">
Hello, <?js= firstName ?> <?js= lastName ?>.
</script>
-->
<script>
function onLinkedInLoad() {
// Listen for an auth event to occur
IN.Event.on(IN, "auth", onLinkedInAuth);
}
function onLinkedInAuth() {
IN.API.Raw("companies/1463/updates?event-type=status-update&start=0&count=4")
.result(displayCompanyUpdates);
}
function displayCompanyUpdates(result){
var div = document.getElementById("displayUpdates");
div.innerHTML = "<ul>";
var adpLink = '<a href="http://www.adp.com"><span style="font-weight:bold;">ADP</span></a> ';
// Loop through the updates returned
var resValues = result.values;
for (var i in resValues) {
// Look through result to make name and url.
var share= resValues[i].updateContent.companyStatusUpdate.share;
if(share){
var content = "<a href=\""+ share.content.shortenedUrl+"\">" + share.content.title +"</a><br>" +share.content.description ;
div.innerHTML += "<li>"+ adpLink+ share.comment+ "<br>" + content +"</li>"
}
}
div.innerHTML += "</ul>";
}
</script>
<div id="displayUpdates"></div>
</body>
</html>
<head>
</head>
<body>
<strong>this is a test</strong>
<script type="text/javascript" src="http://platform.linkedin.com/in.js">
api_key: 42tc6cg8x9ov
onLoad: onLinkedInLoad
authorize: true
</script>
<!--
<script type="in/Login">
Hello, <?js= firstName ?> <?js= lastName ?>.
</script>
-->
<script>
function onLinkedInLoad() {
// Listen for an auth event to occur
IN.Event.on(IN, "auth", onLinkedInAuth);
}
function onLinkedInAuth() {
IN.API.Raw("companies/1463/updates?event-type=status-update&start=0&count=4")
.result(displayCompanyUpdates);
}
function displayCompanyUpdates(result){
var div = document.getElementById("displayUpdates");
div.innerHTML = "<ul>";
var adpLink = '<a href="http://www.adp.com"><span style="font-weight:bold;">ADP</span></a> ';
// Loop through the updates returned
var resValues = result.values;
for (var i in resValues) {
// Look through result to make name and url.
var share= resValues[i].updateContent.companyStatusUpdate.share;
if(share){
var content = "<a href=\""+ share.content.shortenedUrl+"\">" + share.content.title +"</a><br>" +share.content.description ;
div.innerHTML += "<li>"+ adpLink+ share.comment+ "<br>" + content +"</li>"
}
}
div.innerHTML += "</ul>";
}
</script>
<div id="displayUpdates"></div>
</body>
</html>