LinkedIn Lookup
From All n One's bxp software Wixi
Often it is useful to see where a contact is on LinkedIn. This involves retyping the name into LinkedIn. BE can now with a single button press make looking up the user on LinkedIn far easier. Firstly in the "Notes" section of a Title Block but the following HTML. You will need to tweak the fields to lookup on the correct firstname and surname field.
In this example strCDA_41_field_1_0 contains the firstname and strCDA_41_field_3_0 contains the surname.
<input type=button name=btnLinkedInLookup1 id=btnLinkedInLookup2 class='Master_Button' value='LinkedIn Lookup' onclick='strURL_LinkedIn_Lookup ( "strCDA_41_field_1_0", "strCDA_41_field_3_0" );' />
The in the JavaScript onLoad of the campaign add the following JavaScript
function strURL_LinkedIn_Lookup ( strField_Firstname, strField_Surname ){
//Set up the search variables.
var strLinkedIn_Firstname = ''
var strLinkedIn_Surname = ''
var blProcess = true;
//Ensure the field exists
if (strField_Firstname) {
strLinkedIn_Firstname = document.getElementById(strField_Firstname).value;
}
else { blProcess = false; }
//Ensure the field exists
if (strField_Surname) {
strLinkedIn_Surname = document.getElementById(strField_Surname).value;
}
else { blProcess = false; }
//Now with the fields, we can attempt to do the lookup.
if ( blProcess == true ) {
if ((strLinkedIn_Surname != '') && (strLinkedIn_Surname != '')) {
window.open("http://www.linkedin.com/pub/dir/?first=" + strLinkedIn_Firstname + "&last=" + strLinkedIn_Surname + "&search=Go");
}
else {
alert ( 'Sorry but to search LinkedIn you need a firstname and surname' );
}
}
else {
alert ( 'Sorry but the LinkedIn Lookup has not been set up properly' );
}
}