I'm trying to embed a LinkedIn profile on my Stage. However, due to the Same Origin policy for browsers, this has been difficult to achieve. However, after researching it, I've found what I believe to be the code that works. The only thing is that I'm having trouble formatting it correctly so that it works in Animate. The line of code is
<script type="IN/FullMemberProfile" data-id="Hv3V1lv4SQ" data-firstName="Eugene" data-lastName="O'Neill"></script>
I got it from this page, and it works there, so I figured it would be my best shot
JavaScript API Developer Console
(Note that it's the example for "Full Profile" in the "Member" section.)
I'm trying to get it to load into a Symbol called LIProfileContainer, so I tried
var liprofile = $("<iframe/>");
sym.$("LIProfileContainer").append(liprofile);
liprofile.attr('type','IN/FullMemberProfile');
liprofile.attr('width','640');
liprofile.attr('height','360');
liprofile.attr('data-firstName','Eugene');
liprofile.attr('data-lastName','ONeill');
liprofile.attr('data-id','Hv3V1lv4SQ');
liprofile.attr('frameborder','1');
liprofile.attr('allowfullscreen','0');
However, that doesn't work. (Since I'm primarily a designer, I apologize for my poor coding skills.) Any help getting this formatted would be appreciated.
Thanks!