Is it possible to launch a function from a hyperlink?

I have a footer with two links text, I want to launch a function to the click.
It looks like this:

© 2015 contact |  Privacy policy

I can pass the links using html formatting, but I can't seem to start a function.

My code is up to present this and the function is on the privacy policy:

sym. $(' texte-1 ") .html (" 2015 © | ") < a style = "text-decoration: none;" "color: inherit;" href = "http://www.google.com" target = "_blank" > contact < /a > | < a style = "text-decoration: none;" "color: inherit;" " onclick = ' sym.myFunction) "(> Privacy policy < /a > ');"

sym.myFunction = function() {}

SYM.$("text-2"). Show();

}

Any ideas on what I am doing wrong?
Thank you!

Here's another idea:

SYM. $(«texte-1'). HTML (' © 2015 |) Contact | Privacy policy ");"

SYM. $(«#link1»). link ("click", function() {window.open ("http://www.google.com", "_blank")});

SYM. $(«#link2»). link ("click", function() {sym.$("Text-2").show ;})) ;

SYM. $(«#link1, #link2»). CSS ({'cursor': 'pointer', 'text-decoration': 'none', 'color': 'inherit'});

Tags: Edge Animate

Similar Questions

  • Launch the javascript from a plugin C++ function

    Hello

    I managed to run a javascript from my c code file ++ but I want to go directly to a specific function.

    I used IScriptUtils to get a result Oracle

    WideString scriptPath ("/ path/myscript.jsx ');

    ScriptFile (scriptPath) IdFichier ;

    InterfacePtr<IScriptRunner> scriptRunner (Utils<IScriptUtils> ()->QueryScriptRunner(scriptFile));

    if (scriptRunner)

    {

    ScriptRecordData arguments;

    ScriptID aID;

    ScriptData script (scriptFile);

    ScriptData resultData;

    PMString errorString;

    result = Utils<IScriptUtils> ()->DispatchScriptRunner(scriptRunner, script, arguments, errorString, resultDatakFalse);

    ...

    ScriptData:ScriptDataType aType = resultData. GetType();

    }

    I would like to know if someone has managed to launch a function javascript with arguments and a result.

    Kind regards

    David

    Simple solution: create another script that simply work calls for the second.

  • Is it possible to launch a pop-up window

    I tried all sorts of code snippets, but so far nothing not working, is it possible to launch a pop-up window of a transparent button in Adobe Captivate 4.  Or any other way to have a learner to click on a link or a graphic to open a pop-up window?

    Thank you-

    Manola

    Hi all

    This is possible, but not without using JavaScript to do it. You're better off if you insert the script into the HTML code of the wrapper file that Captivate creates. You'll probably need to declare a function and insert the script into the function. Then inside Captivate, insert a click box or a Button object and set it to run JavaScript. From there, you must insert the name of function that you created in the HTML wrapper file.

    What was mentioned in the last post has been using open URL or file. This might work, but you'd probably need to make sure that the option has been chosen to open the link in a new window.

    See you soon... Rick

  • Is possible an application on Macbook from a sd card?

    Is possible an application on Macbook from a sd card?

    Hello

    Yes the theory.

    For example a lot of background are functions of the operating system is of applications from disk hard/system/library/Core Services

    This means that applications must be located in the Applications folder.

    The Applications/Utilities folder also has more available apps which are used from time to time.

    After that it depends on the type of application and what it may require is also installed to function.

    Some applications have elements in support of the request

    As said way bars are in Library/Application Support.

    There is another user only App in ~/Library/Application Support.

    In some cases, additional frames are added.

    For example only only three of those used by Messages

    After that, it comes down to how this App tip then to these extra bits.

    Some explicitly the path to the file they need.  Others assume they are in the 'right' place and give simple instructions "upward both files and then give a path."

    If the application is not where it is expected that he can not get updated.

    If iChat in previous versions of OS and the message is moved to another folder in Applications, say it is called Instant Messages and contains all mail applications, then the update process will not see.

    It is true of several other Apple applications.

    In the case of iTunes and Photos concerned libraries can be moved somewhere else so that the application has need of. (your library is not in the app itself, it refers to points of storage in music or photos)

    Small simple applications could be run from an insert SD card or a USB key

    Realistically the answer is not that simple.

    Try it and see the probably the best advice.

    21:16 Tuesday. June 7, 2016

     iMac 2.5 Ghz i5 2011 (El Capitan)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro (Snow Leopard 10.6.8) 2 GB
     Mac OS X (10.6.8).
     iPhone and iPad (2)

  • G8D94PA #ACJ: is it possible to change the function of the FN keys?

    Hello

    I sometimes use windows 7 32-bit due to my software dependency. in some software I have to use fn keys (F1 to F12) frequently with the combination of other keys. It is possible to enable the functionality of the fn keys as from now on if I have to use F5, so I use FN + F5 combination. So in this software I have to use F2 to F7 & I have to press CTRL + ALT + FN + F2 to F7.

    Please share any solution...

    Hello

    Shut down the laptop.  Tap away at the esc you key start Notepad to open the Start Menu.  Select the Bios ( f10 ) option, and then change the figure in the document at the following link.

    http://support.HP.com/us-en/document/c02035108

    Kind regards

    DP - K

  • calling functions from c ++ JavaScript

    It seems to me that only the functions Q_SLOT can be called from an external javascript file. For example

    ButtonID.Clicked () works, while buttonid.isEnabled () does not work. How to call functions like this from javascript?

    Hello
    "Buttonid.enabled" work? (enabled is a property)

    It should also be possible to call the functions marked Q_INVOKABLE.

  • Is it possible to download a file from the client flex on the server?

    In my plugin I would ask the user to provide me with a local of files I need to upload to the server (server blank when my Java code is running). Since flex is launched in the sandbox inside the browser, they provide an API for downloading files the from/to the URL of the server built-in. Is it possible to define my own servlet (or something like that) inside the Virgo vSphere server to listen for the event upload? Y at - it another possibility to upload a file from the client flex on the server?

    Thank you

    Valeria

    Yes it is possible, but it is not recommended to download the large amount of data to the client Web server.  Don't forget that your java plugin is just a transmission in your own background when real business logic and/or data sources are provided.  You might as well send the file directly to your back-end, there is no reason to keep it on the server of the Web client.

  • Is it possible to try the function "send for Signature" before ordering?

    Is it possible to try the function "send for Signature" before ordering?

    Hi daves.

    I'm sorry for the delay in answering your question. You are welcome to download a free trial of 30 days of Acrobat Pro DC, if you want to see how sending the Signature feature. You can download the trial from this page: Download Adobe Acrobat free trial version | Acrobat Pro DC.

    Best,

    Sara

  • Is it possible to call the function Document disinfect since a JavaScript?

    Hi, I hope that this should be easy, but a link back are not the results of the research in the SDK from Adobe live. Is it possible to call the functions Document disinfect or remove hidden information of in a javascript script? Here pointers would be GREATLY appreciated.

    This command opens the dialog window Document disinfect, but you will still need to run it manually, and you will also need to run it from a context of trust.

    app.execMenuItem("DIGSIG:SanitizeDocument")

  • Is it Possible to use a function when you create a table?

    Hello

    Is it possible to use a function during the construction of a table?

    I would like to browse my data returned from the db and call a function. The part where I call the function "myFunction [i]" doesn't seem to work. How can I solve this problem? I need to put the function call results in the table.

    var i: uint;

    for (i = 0; i < dataArray.Length; i ++)

    {

    dgArray = [{name: dataArray [i] .name, Type: myFunction [i]}];

    }

    Thank you!
    -Laxmidi

    Hi laxmi,

    Yes of course it is quite possible to use a function when you create a table... In your code, you made some mistakes...

    You used hooks to call the function myFunction [i]... where you are supposed to use parentheses... myFunc (i)... and other you must push the object in the dgArray but yous hould not not attribute...

    dgArray = [{name: dataArray [i] .name, Type: myFunction [i]}]; This will result in only the last table iterates in dgArray...

    So you should write dgArray.push ({name: dataArray [i] .name, Type: (i) myFunction});

    Check out the code below...


    http://www.Adobe.com/2006/mxml"layout ="absolute"creationComplete ="init (); » >

      private var dgArray:Array = new Array();
    private var myDataArray:Array = [{data: '1', name: 'Robert'}, {data: '2', name: 'Nicolas'}, {data: '3', name: "Bika"}]
     
    private function init (): void
    {
    for (var i: int = 0; i
    {
    dgArray.push ({name: dataArray [i] .name, Type: (i) myFunction});
    }
    }
      
    private void myFunction(i:int):String
    {
    Return 'Type' + i;
    }
    ]]>

    If this post answers your question or assistance, please mark it as such.

    Thank you

    Jean Claude Chari

  • Is it possible to remove pictures/videos from the iphone and have yet to back them up in the iCloud?

    Is it possible to remove pictures/videos from the iphone and have yet to back them up in the iCloud?

    At the moment the iCloud synchronizes only with what is already on my iPhone.

    This article should help you remove photos from my photo - Apple Support stream

  • Is it possible to launch the media player 11 reduced to a minimum?

    Hello

    Is it possible to launch the media player 11 reduced to a minimum.

    Thank you

    Paul UK

    Hi ratchet.

    It is certainly possible to run Windows Media Player mini mode, to so, try the following steps

    · Click the Windows 'Start' menu, then click on "Windows Media Player" to launch the media player. Right click on any part of the Windows taskbar, and then point to "Toolbars."

    · Select "Windows Media Player." Click "Reduce" to start the media player in mini mode.

    · Right-click the task bar if you want to return to the default display. Select "Toolbars" and click on "Windows Media Player."

    In addition, please let me know the operating system you are using.

  • Is it possible to automatically send emails from a specific sender to the junk mail folder?

    move to junk, but not to block the sender

    is it possible to automatically send emails from a specific sender to the junk mail folder? I don't want to block.

    Any Hotmail questions belong to http://windowslivehelp.com/product.aspx?productid=1

  • Is it possible to trigger a function Javascript C++ QML?

    Is it possible to trigger a function Javascript C++ QML?

    Just look at the section of signals and slots that documentation for examples of how to define and send signals of C++. Then in your QML, where you have exposed your C++ object as a property of context (named, for example, "foo"), you would foo.signalName.connect (myJsFunction) in a certain place like maybe onCreationCompleted. Connects the signal to the function, and when it is executed will be called the JS function.

    In short, the real connection between the two is trivial, as long as you already have all the side "C++ object and signal and exhibitors being C++" processed things.

  • Is it possible to transfer the license from one computer to another by e-mail

    Is it possible to transfer the license from one computer to another by e-mail

    OS: Windows 7 Home Premium

    No, you transfer the license by ensuring its removed from the current computer. Continue to install on the new machine and reactivate by phone:

    Activate Windows 7 manually:
    1. click on start and in the search for box type: slui.exe 4

    2. press enter on your keyboard

    3. Select your country.
    4. Select the telephone activation option and brace yourself for a real person.

    Releasing it's easy: with Windows | ActiveWin | Laptops | Microsoft MVP

Maybe you are looking for