Converting a line of code into something recognized by Animate

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!

Looking at your link API, there is a button: "give me the Code". It returns:
It means you have to load a js file ("in.js") and give your api_key.

Similar Messages

  • Many lines of codes into single line

    I want to execute t-sql-query from VB.NET program. I wrote and successfully executed sql query in MANAGMENT-STUDIO-EXPRESS..  But the problem is that. The codes are of 10 lines. And i need single line code to paste in vb.net.. How is that possible
    In qbasic i used to use COLON ":" to merge lines. 
    Is merging lines possible in SQL SERVER. If yes how?? Please help

    Hi,
    Like Rsingh, suggested create Stored Procedure - 
    http://support.microsoft.com/kb/309486
    To combine multi line code -
    http://msdn.microsoft.com/en-us/library/ba9sxbw4.aspx
    http://stackoverflow.com/questions/461714/vb-net-single-statement-across-multiple-lines
    http://blogs.msdn.com/b/bethmassi/archive/2007/10/23/avoid-underscores-in-your-multiline-strings.aspx
    sathya - www.allaboutmssql.com ** Mark as answered if my post solved your problem and Vote as helpful if my post was useful **.

  • Converting PDF Line Drawings back into CAD Formats?

    Hi there
    First of let me say Hi! I'm Ryan Holden, a design engineer working for General Motors Europe in the UK. Sorry to register and come straight at you with a question but I'm at a bit of a loss and I've always found forums the best way to get advice.
    I have an issue at work. I have been sent some drawings by a supplier that I need to make changes to. The drawings have been saved in a PDF format but were generated using the CAD software CATIA V5 R18 (if anyone is familiar with that?).
    Is there a way that I can return/reconvert this PDF file back into the .CATDrawing format that the software package generated, or am I barking up the wrong tree?
    Hope you can help, thanks a lot for your time!
    Kind Regards
    Ryan Holden
    Design Engineer
    GME Engineering Millbrook

    Hi there
    Thanks very much for your help. I must admit I was not optimistic that it was a faesible task and this has pretty much confirmed it. I don't have access to the original CAD file anyway so it makes it a moot point.
    I appreciate you're time!
    Thanks again
    Ryan Holden
    Design Engineer
    GME Engineering Millbrook

  • Dummy Guide needed for converting AS2 code into AS3

    I have to convert my existing AS2 code into AS3, but I might as well be reading chinese. I never even began to learn AS3, it was still fairly new at the time and the class ended before we had an opportunity to even touch on it. My major was not web design, it was the print side of design. I took an additional class, after I graduated, to learn web design and our teacher told us, basically, that we were designers, not coders so we won't be getting much into actionscripting, beyond the basics. At the time I was relieved, but looking back, I really wish we would have gotten more into it. Bottom line, I need to learn now.
    Is there ANYONE that can help me out? I will list my code below, buy I am way beyond lost any help that can be provided, I would be so grateful!!!!
    On the main timeline I have the basic..
    stop(); -- I found the AS3 version, but I don't know what I'm looking at. I get "not_yet_set.stop()" and there are are 8 options I can choose from. I just want the timeline to stop until I tell it where to go next. And what is "not_yet_set"
    Then I have my buttons, which are, basically...
    on (release) {
    gotoAndStop("Home");
    Or "gotoAndPlay("Whatever");"
    I also have buttons for scrolling...
    on (press) {
    play();
    on (release) {
    stop();
    AND
    on (press) {
    _root.AboutMe_Controller.gotoAndPlay(…
    on (release) {
    _root.AboutMe_Controller.gotoAndStop(…
    For the on(release) command, this is what I found as the AS3 version: not_set_yet.dispatchEvent()

    because that's really as1 code, you have steeper learning curve than going from as2 to as3.
    first, remove all code from objects, assign instance names to your buttons and you can then start on as3:
    // so, if you name your home button, home_btn:
    home_btn.addEventListener(MouseEvent.CLICK,homeF);
    function homeF(e:MouseEvent):void{
    gotoAndStop("Home");
    p.s.  the not_yet_set stuff is there because you tried to use script assist or some other actionscript shortcut.

  • Can we convert a T-Code into WebService.

    Dear SOA Gurus,
       Can you please tell me if there is a way to convert a SAP T-Code into a Web-Service. Also, can you please share your thoughts on how I can convert an ABAP report into a WebService and call it from Java stack.
    Thanks!
    Surya.

    It depends on your requirement.  Olivier is right though - there's no direct realtionship or conversion tool.  However, if you are just trying to obtain the data that a particular custom transaction or report provides without rewriting the logic, you can wrap the report or transaction call in a function module and hand-off the data through ABAP memory to the function module interface.  Then, convert the function module or group to a web service.  I do this most often with monster reports that generate PDF's.  Instead of actually rendering the PDF on the desktop as the report would do from SAP, I push the binary data to an external application which opens the PDF in a browser window.

  • Convert .mv4 file into something useable?

    Hey,
    I want to know if I can convert a .mv4 format file into something I can edit on FCP? It keeps telling me to use itunes to view the file but I want to edit it. So can it be done? And how can I do it without losing quality?
    Thanks

    hey, i do video editing and i work with vob files i took the advice and got the mpeg streamclip download as mentioned, works great. But when i import files into final cut for editing the clip is not accompanied by any sound. in the clips window there is know little speaker icon that normally lets you know there is audio for that clip. The clip was converted properly it plays fine outside of final cut, but only the video plays once i import it, why is there no speaker icon after import what can i do.

  • How to convert ascii codes into Strings

    Is it possible to convert integers (ascii codes) into Strings. It cannot be done by casting like:
    int temp = (String)(111)
    Please help me out. I think there is a method for this.

    Something as simple as String.valueOf((char) 111) comes to mind...

  • How can long lines of code be cut / separated into multiple short

    In Java, How can long lines of code be cut / separated into multiple short lines?
    Example
    System.out.printf( "%d\t%d\t%s\t%s\t%s\t%s\t\t%s\n", arrayIndex ,  part[ arrayIndex ], name[arrayIndex], units[arrayIndex], price[arrayIndex], units[arrayIndex] * price[arrayIndex], total[ arrayIndex ]   );Thanks

    System.out.printf( "%d\t%d\t%s\t%s\t%s\t%s\t\t%s\n",
    arrayIndex , 
    part[ arrayIndex ],
    name[arrayIndex],
    units[arrayIndex],
    price[arrayIndex],
    units[arrayIndex] * price[arrayIndex],
    total[ arrayIndex ]   );P.S. It looks to me like you have an array for each attribute of something. This is not OO and you should consider creating a class holding the information about each 'Part' or whatever it is. You will then just need a collection of Parts.

  • Converting vi's to lines of code

    All,
    In order to review and grade our code we would like to use 'lines of code'
    as a basis of measurement (ex. 2 defects per 1000 lines of code). Since
    labview is graphical this provides an obstacle. Is there a standard for
    converting labview vi's into lines of code for measuring quality?
    Dan Troutt
    Note : Remove 'nospam' from email address to email. Thanks.

    The URL for the Manual is: http://www.ni.com/pdf/manuals/321393b.pdf and
    the VI Metrics Tool section of the manual is chapter 8.
    Most manuals for NI products are available on the web at : https://digital.natinst.com/manuals.nsf/web/byproductcurrent
    I hope that this helps,
    Bob Young
    National Instruments
    "Kevin B. Kent" wrote:
    >Dan Troutt wrote>> All,>> In order to review and grade our code we would
    like to use 'lines of code'>> as a basis of measurement (ex. 2 defects per
    1000 lines of code). Since>> labview is graphical this provides an obstacle.
    Is there a standard for>> converting labview vi's into lines of code for
    measuring quality?>>>> Dan Troutt>> Note : Remove 'nospam' from email address
    to email. Thanks.>>There is a
    VI package (I believe it is the Pro G Developers
    Toolkit)>that has VI Metrics. This shows number of nodes, wires, etc etc.>I
    believe that this is similar to current SW metrics (maybe not Lines of>code).>I
    cant find the manual right now, but this may be what you are looking for.>
    Kevin Kent>
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • Convert a line read from text file into string

    how to convert a line from text file into string?
    i know how to convert to numbers,
    private int  parseLine1(String line) {
              StringTokenizer tokenizer = new StringTokenizer(line);
                  value1 = Integer.valueOf(tokenizer.nextToken()).intValue();
                  value2 = Integer.valueOf(tokenizer.nextToken()).intValue();
                 return value1;
                     }but what about charactrs?

    ok, here is my problem, i have a file with a bunch of Xs in it but position function doesn't return a correct value, what's going wrong?
    private int positioni(){
           int i=0;
           int j=0;
           int b=0;
           String line="";
            while(line!= null){
                for(int a=0; a<line.length(); a++){
                    if(line.charAt(a)=='X'){
                        i=a;}
                b++;
                j=b;
                t=line.length();
                line=read(gridFileN);
           return i;
    private String read(String ggridFileN){
             TextStreamReader ggridFile = new TextStreamReader(ggridFileN);
             return ggridFile.readLine();

  • Convert vbs code into a standard template

    Appreciate if anyone can guide/show me on how to convert or copy the original vbs code into a standard template. I have tried copy and paste all the code into Sub Main but been getting errors. FYI, i have taken out all the function section and placed it
    outside Sub Main but still getting error. Appreciate some help here. Thanks in advance.

    Sorry, but you can't just copy and paste code between scripts and expect things to just somehow work.
    You have to understand what the code is doing and how to write in that language.
    What you are asking still doesn't make sense. We don't know what your "agreed format" is, and even if we did, it is not the purpose of this forum to merge your scripts for you.
    If this is critical work you need to complete, you need to study how to write scripts or hire a consultant.
    Bill

  • Convert java code into UML

    hello,
    anybody knows a software convert java code into UML? Classes Diagram.
    for example JBuilder do that.
    // i use Netbeans.

    its not a speed issue although sometimes it can be painfully slow (but now slower that sun one). I constantly found myself getting into infinite error message loops (e.g. "incorrect input"... click ok... "incorrect input"... errr click ok.... "incorrec..." etc etc), and also it (relatively) regularly falls over. I tried to export diagrams as GIFs, and when I imported them into Word they looked ok, but when I printed them they printed negative!! I used about 100g of toner before I realised, and had to go thru all diagrams changing them to JPGs. Plus, I think the interface for 6 is a lot less intuitive than 4.2, and it's trying to be too feature rich. Personally I would never use it as a code editor as it's too big and lumbering. For me, it's a diagramming tool, but it doesn't even put pretty pictures as nodes on deployment diagrams!! I want pictures of workstations, PDAs and databases!! Only kidding...

  • How do I convert a .ced format into something that imovie can recognize?

    Anyone now how to convert a .ced file into something that imovie can recognize?

    Just google.
    http://www.google.com/search?client=safari&rls=en&q=.ced+file+converter&ie=UTF-8 &oe=UTF-8

  • Can aperture 3 convert a gray scale photo into a line drawing?

    can aperture 3 convert a gray scale photo into a line drawing?

    I have a B.F.A. degree in painting which educated me in the "history of art" with appreciation of the old masters. I agree with your statement that, "anyone mistaking photos converted to "line drawings, watercolors,or paintings" is simply ignorant" and that, "line art is to drawing what clip art is to painting."
    I appreciate your passion and love for keeping "visual creativity" true to its inherant nature. Expressing your views however, in regard to my question in this thread, is irrelevant to the question asked. I am not ignorant.  My question has nothing to do with the philosophy of art. You have no idea what project I have in mind for asking my original question. I suggest that perhaps you have chosen the wrong forum to express your views.  Sticking to the question asked, as the other participants have, has been most helpful to me and I appreciate their response.
    Thanks for your attention.

  • When I hit the Connect button on my droid phone a message comes up that says" Cannot Setup Sync " instead of giving me the 3 lines of codes I need to enter into my Desktop Computer.. Thanks, Joe

    Question
    When I hit the Connect button on my droid phone a message comes up that says" Cannot Setup Sync " instead of giving me the 3 lines of codes I need to enter into my Desktop Computer.. Thanks, Joe

    The Cannot Setup Sync message indicates that you don't have internet access. Check that you can get your phone online (3g or wifi) and then try to connect again.

Maybe you are looking for

  • 311 Movement Type not in Budget

    Hi All, At present, we have different storage locations within a plant maintained by different departments like operations and projects. And so, we have made the derivation strategy based on storage locations. But now, when we make an 311 inter-plant

  • Canon Pixma Pro9000. A4 paper doesn't feed properly.

    Canon Pixma Pro 9000.  A4 paper doesn't feed correctly.  It feeds in on the right but not on the left, so that it crumples as it feeds and jams.  A5 and 4x6 seem OK.

  • PE 13 on PC.  Photos in Organizer appear pixelated.

    My photos appear pixelated in Organizer.  This is a new, spontaneous change from earlier when they appeared ok.

  • Error message 805a0194 when trying to DL Drive+ to...

    Any ideas why I can not get Drive+ on my Lumia 720? BTW, I do love the battery life on this device, I think Nokia may have it figured out, finally. Anyway, Drive and Drive + have been giving me FITS! I deleted Drive figuring it would allow me to get

  • I just can't believe - there is no possible salvation for my old Jukebox

    My son broke the LCD display of my (now his) old old 6MB Jukebox everything works fine except the display that now presents a nice black spot on one side but the portuguese assistance answered me that there was no possible repair!!! so is my old Juke