Storing the value of the click in a variable

Hello!

Not a very good programmer, I have this project I'm working on which I create in the edge animate. Here it goes.

I have a few labels that act as small clips, for example, 'Clip 'Clip 'Clip 'Clip 04' 03' 02' 01'.

Basically, I have something like a menu bar. If I click on ' Clip 01', the Clip corresponding to he plays, as "" Clip 04' 02', ' Clip 03', buttons play their respective clips. »»

Here's what I want to do instead, if I click on ' Clip 01', the value of the click event for a click on what could be 1 and 0 for clicked not be stored in a variable. "

Before "01 Clip' actually starts to play, he must check the value if it is 1 or 0.» If it is 1, while it should play something else he should do nothing.

The above is just an example of what I'm trying to create. In other words, if I try to explain what I am actually to create or the case, there is really a lot of time explaining from the short example above.

Thanks in advance

If you have several buttons here are 2 ways to do it:

If you can use jquery use this group all your buttons in a div and the Group of call buttons.

var buttons = sym.$("buttons").children ();

$.each (buttons, function (i) {})

$(this) .one ("click", function() {}

code here

SYM.$("images"). CSS({"Opacity":0.00});)

SYM. $("images").animate({"opacity":1.00},700) .attr ('src', ' images / "images [i] +".png"');

});

})

If this is not the case, use this:

function useButtons (element) {}

{sym. $(element) .bind ("Click", Function ()}

This example shows how to change a picture

SYM.$('image').Attr('src','images/'+element+'.PNG'). CSS({"Opacity":1.00});)

});

}

Add here the names of button

["," "," "] .forEach (useButtons);

Tags: Edge Animate

Similar Questions

  • By the way the CF soap request variables

    Hello

    I managed to get a return from a third party API. Now, I need to use that return (session key) on other soap requests in their API to retrieve information. I am storing the session as a variable key and was hoping to use it in subsequent calls to the API, however, it does not work. "I get an error telling me that the session key is ' invalid and is outside the bounds of the array. Anyone know if it is possible to store and pass variables in susbsequest soap requests? Any help would be greatly appreciated!

    <!--> WSDL
    "< cfset wsdl_url ="http://someurl?wsdl">."

    <! - dial SOAP message to send to the Web Service - >
    < cfsavecontent variable = "SOAP" > <? XML version = "1.0" encoding = "UTF-8"? >
    "" < soapenv:Envelope xmlns:soapenv = "http://schemas.xmlsoap.org/soap/envelope/" container ="http://www.w3.org/2001/XMLSchema" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" > ".
    < soapenv:Body >
    "< login xmlns ="http://www.siretechnologies.com/">."
    licenseKey < LicenseKey > < / LicenseKey >
    the user < username > < / username >
    Col < password > < / password >
    < LicenseType > 2 < / LicenseType >
    APIKey < APIKey > < / APIKey >
    < SiteKey > < / SiteKey >
    < CryptKey > < / CryptKey >
    < WebOnly > false < / WebOnly >
    < / login >
    < / soapenv:Body >
    < / soapenv:Envelope >
    < / cfsavecontent >


    <! - invoke web service to send message - >
    < cfhttp url = "" #wsdl_url # "method ="post">"
    < cfhttpparam type = "header" name = "content-type" value = "text/xml" >
    "< cfhttpparam type ="header"name ="SOAPAction"value ="http://www.siretechnologies.com/Login">."
    < cfhttpparam type = "header" name = "content-length" value = "#len (soap) #" >
    < cfhttpparam type = "header" name = "charset" value = "utf-8" >
    < cfhttpparam type = "xml" name = "message" value = "#trim (soap) #" >
    < / cfhttp >
    < p > < cfoutput > #xmlFormat (cfhttp.fileContent) # < / cfoutput > < / p >
    < cfset MyXml = XmlParse (cfhttp.fileContent) >

    < cfdump var = "#MyXml #" >

    < cfset responseNodes = xmlSearch (MyXml, "/ / * [local = 'LoginResponse']") >
    < cfdump var = "#responseNodes #" >

    < cfoutput >
    < = cfloop '1' to = "#arraylen (responseNodes) ' # ' index 'i' = >"
    < cfset BookXML = xmlparse (responseNodes [i]) >
    < cfset SesKey = ' #BookXML.LoginResponse.LoginResult.XmlText # ' >
    < b > SessionKey: #BookXML.LoginResponse.LoginResult.XmlText # < /b > < br >
    < b > Session key: #SesKey #.
    < / cfloop >
    < / cfoutput >

    <! - GETUserId, next call to the API - >
    "< cfset wsdl_url ="http://someurl/sire.asmx?wsdl">."

    < cfset sesKey2 = "#SesKey #" >

    <! - dial SOAP message to send to the Web Service - >
    < cfsavecontent variable = "SOAP" > <? XML version = "1.0" encoding = "UTF-8"? >
    "" < soapenv:Envelope xmlns:soapenv = "http://schemas.xmlsoap.org/soap/envelope/" container ="http://www.w3.org/2001/XMLSchema" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" > ".
    < soapenv:Body >
    "< GetUserId xmlns ="http://www.siretechnologies.com/">."
    sesKey2 < SessionKey > < / SessionKey >
    the user < username > < / username >
    < / GetUserId >
    < / soapenv:Body >
    < / soapenv:Envelope >
    < / cfsavecontent >

    Emily LaMunyon wrote:

    When I run the script you provided the necessary credentials. I get a page that reads:

    "1 API call has not returned in XML.

    Also, I don't get any other errors.

    Hi Emily,.

    You are welcome, and that the message indicates that the 1st call even does not return correctly.  So, we can neglect the 2nd call for now.  Could you try this and let us know what is the output?

    http://someUrl/sirewebsvc/sire.asmx?WSDL">

    http://schemas.xmlsoap.org/SOAP/envelope/"container ="http://www.w3.org/2001/XMLSchema"" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" > ""

    http://www.siretechnologies.com/">

    licenseKey

    survweb

    survweb

    2

    API

    fake

    http://www.siretechnologies.com/login">

    Thank you!

    -Aaron

  • How can I get the classic report value when I click on the record?

    Hi all

    I have a simple classic report and I want to get the empno when I click on record. For example, when I click on record 1, and I'll go '7369', if I click on the 3 card, and I'll go '7521'. How can I do this? Please help, thanks!

    Hi jane.kuang,

    Jane.Kuang wrote:

    Thank you very much!!! Your message is useful for me. But this javascript has something wrong. When I click on the first time, the empno appears only once, but when I click on the other record, empno appear twice, and I click on the third time, it appears three times... I'm new to JS, I don't know how to fix it. Thank you!

    Use instead the dynamic action to that effect.

    Here are the steps:

    • Change your region classic report-> section 'Attributes'-> 'ID' static-> give an id say myempregion static
    • Create a dynamic action with the following attributes:

    Event: click on

    Selection type: jQuery Selector

    jQuery Selector:

    #myempregion table.uReportStandard tbody tr
    

    Action: Run the JavaScript Code

    Code:

    var empno = $(this.triggeringElement).find('td[headers="EMPNO"]').text();
    alert(empno);
    $('#P21_X').val(empno);
    

    Items concerned: keep it unselected

    • Change once created, your dynamic action-> go to section 'Advanced'-> set 'Extended event', 'dynamic'.

    This will fix the following in the code of the Para:

    • The jQuery Selector used by Para to trigger the click event is bad. This will fix the multiple alerts.
    • Para code won't work on loading the page, but if there are many rows in the table and pagination for the report is in place, and then when you paginate your report, it will not work. But it will work with dynamic action 'Scope of the event' the 'Dynamic' value even when you paginate the report.
    • Finally, most of the dynamic interactions page must be converted to dynamic actions, this will help the maintainability of the code, instead of stacking the javascript in your page.

    Kind regards

    Kiran

  • Management while changing the value or by clicking on the button events

    Hi all

    I'm working on Jdeveloper 11.1.1.5.
    I have a necessary requirement where I have a textbox and a button.
    Now, if a user changes the value of the text box then I need to display a dialog to the user for confirmation if he wants to continue or not.
    And when the click on the button that I perform my logic and engage in the database.
    NOTE:-I'm going to open this dialog box on the valueChangeEvent of the text box.

    Case 1: -.

    User displayed on the dialog page and enter a value in the textbox control, and a tab on the ground, the value change occurs. -> OK

    Case 2: -.

    The user enter a value into the textbox control and do not tab on the field and directly click the button. In this case, actually valueChange and button code both runs at the same time. I mean, the user clicks the button, the dialog box get, but my logic is also performed. -> INCORRECT (ISSUE)

    How should I limit the logic of the button should be executed until the dialog box has been established and the user has confirmed.
    Please suggest!
    Kind regards
    Shah

    Hi Shah,

    You can try something like this:

    
      
    
    
    

    AP

  • on change of value event I'm shooting adf Faces error message but its getting recorded during the click on save

    Hi Experts,

    JDEV 11.1.1.7.0

    On valueChangeEvent I throw adfFacesErrorMessage but its economy during the click on save.

    Because I can't do validation in my OE. So I can use validator instead of valuechange evnt. ? While it will not allow something to save.

    autoSubmit = "true" validator = "#{backingBeanScope.myBean.checkValidation}" >

    On valueChangeEvent I throw adfFacesErrorMessage but its economy during the click on save.

    Message is just to what is expected.

    So can I use instead of evnt valuechange validator.

    Yes, you must use the validator to implement validation

    Dario

  • Shares advanced with effect applies on the click boxes

    Hello!

    I could use some help troubleshooting one of my projects.

    I use a couple of clickboxes that perform distinct advanced actions - by clicking on the first clickbox (CB1) shows a picture, a text caption and click box (CB2) that appear with a fade-in effect apply (see the + ApplyEffect). Then, once everything is displayed, CB2 makes all melted (ApplyEffect only). It's like a pop - up glorified that fades in and out. It works very well... once!

    The problem is that if CB2 hides everything stated by CB1, I can open and close until the cows come home. However, as soon as I replace Hide to apply effects (fadeout) in advanced actions, he won't again. I click on CB1 but nothing happens.

    What I think is that CB2 is not hiding anything (only fades them out of sight) and when I click on CB1 the second time, it displays them, but I don't see it because they are always made disappear.

    I tried to add assign rdcmndGotoFrameAndResume with v_startframe at the end of advanced action of CB2, but nothing helped. Simply, he jumps the fadeout and go to the first image.

    Is it possible to delay my last action? Or maybe I do not have that sense. just started using advanced actions.

    Thank you!

    First define the variables two user I've been using: v_start and v_fadeout. No need to give them a default value.

    On the slide, in the properties, Action on enter, accordion panel you choose entitled and in the drop-down list, you select v_start and then you will need to type in the system variable $$rdinfoCurrentFrame$ $. I find it easier to make a standard advanced trigger action on enter, because in the dialog shares advanced, you can also select this variable system instead of having to type it. With this action, the value in the v_start variable will be the first image of the slide number.

    For buttons, unlike the click boxes, you can time the point of suspension in the properties, timing Accordion Panel. Here, you can type in 6 to "Pause after '... You can display two buttons during the rest of the slide (CTRL-E).

    It will automatically return to the first image, that's what makes the rewind button: assign rdcmndGotoFrameAndResume with v_start.

    There is no possibility of time in a tip action.

    Explanation of Expressions: in the first expression, I calculate the number of frames corresponding to 6 seconds. the variable rdinfoFPS system automatically gives the number of frames per second, default value is 30. If the first expression will result in 180 frames. But I have to navigate to the absolute number of this framework from the beginning of the project. That's why I add the number of the first frame of the slide that is stored in v_start.

    Lilybiri

  • Is there a file where are stored the data pause & rewind live TV in Windows Media Center?

    Is there a file where are stored the data pause & rewind live TV in Windows Media Center? More to the point - how can I save the time shift buffer in WMC?

    I would like to know if it is possible to find the data that Windows Media Center is to store during her watch TV Online. I don't speak data WMC stores by itself to allow the use of the function of pause & rewind live TV, how to find files that you have saved yourself by pressing the Red record button.

    For example, I often live TV playing on the computer in the background while I do something else. Can I see or hear a brief fact/clip/segment of interest that flashes by and I think, ' I wish I had recorded that. " If I go back to the bit I wanted to capture and hit record, it will not capture the part I want, it will start recording from the point, the program has achieved in real time.

    Does anyone know where the actual data of the TV are kept so that I can retrieve these clips that interest me, but were never recorded by me manually? I found the "TempRec" in the folder "Recorded TV" - anyone know how to convert this video (if indeed it is the location where you store temporary data for pause & rewind live TV)?

    If not, is it possible to enable a feature in WMC, which automatically starts the recording of TV channels as soon as you go to them? This way I can record everything, then just cut all the scenes of interest using Movie Maker. If not, are there other Win7 compatible programs that will do this?

    Thank you.

    Apparently, there is a way to achieve the goal.

    A nice gentleman from the Germany wrote dll that create a "time-shift buffer recording" add-in for WindowsMedia Center (for Vista and XP only) which can be found at:

    http://thegreenbutton.com/forums/p/3...83.aspx#162083

    For Windows 7, there would currently be via a 3rd party of program, i.e. PowerCinema 6, which records from any point in the time shift buffer zone - I don't know why Microsoft has not also incorporated this feature into WMC for have other programs third 3rd (including EyeTV for the Mac).

    Unfortunately, suggestions from another forum to change file extensions in .tmp .dvr-ms TempSBE and double-click on the file to read the file of time lag in WMC, does not work in Windows 7 x 64 (the message in this forum has been regarding the Vista x 64), however, I have not tried with other versions of Windows - I would like to know if anyone has had some luck using this method.

    Even if it had worked, I think I would have always preferred the usability and features of a program that does the job for me, like Power Cinema - damage, it could not have been WMC. What do you think?

    Thank you.

  • Capture the click event of the button 'back' on DateTimePicker

    How to capture the click event of the button "return" on the DateTimePicker control.

    Show us in the form DateTimePicker.doModal)

    I know that this response is late, but if someone else is asking about this.

    doModal() returns a Boolean value and returns false if the user clicks Cancel.

    I hope this helps.

  • lov automatic setting of null at the click of a button.

    Hi Experts ADF,

    JDeveloper 12.1.3.0.0

    I have a read-only VO as below which is dragged as a selectone choice. Do autosubmit = 'true '. I also have a valueChangeListener. In the valueChangeListner value, I'll put in an instance variable.

    And I have an Add button that partial shipment is set to true. But when the click on the Add button, inside actionListener, I get the value null for the instance variable.

    When I select a value, select a choice, I am able to see the value of valueChangeListener. The valueChangeListener inside I'll highlight selectedValue = valueChangeEvent.getNewValue;

    After I click on the Add button, in the actionListener I get selectedValue as null.

    Note: -.

    selectedValue is a variable instance with the getter and setter.

    The taskflow scope is backingbeanscope.

    Read only Vo:-select DepartmentId, DepartmentName from departments dragged like a selectonechoice.

    Thank you

    Roy

    Instead of the instance variable, save the value of the variable def page, as described here:

    http://andrejusb.blogspot.com/2011/10/page-definition-variables-to-store.html

    on this path, the value will survive another request

  • AF:train - Enable to train at the click of a button

    JDeveloper version - 11.1.1.7.0


    By default, when you use a component to train on a page, the 2nd train stop is enabled by default. Is there a possibility to disable and enable the same after the click of a button to the 1 train stop.

    JDev 11.1.2.3.0, you can bind the property 'Skip' of your activity to stop 2 train at a property in your bean (make you your TF).

    And then you can set the value of your property from bean according to the requirement, you need the button click.

    I don't know if you can do the same in 11.1.1.7.0

    Kind regards

    Elias.

  • Impossible to delete previously selected items from the drop-down lists at the click of the button Reset on a page of the screen.

    Hello

    I'm unable to clear previously selected items from the drop-down lists at the click of the button Reset on a page of the screen. The code I did to clear the previous value when the click on the button Reset is as below.

    {} public void onReinitialize (ActionEvent actionEvent)

    System.out.println ("onReinitialize is called ::");

    UIComponent uiComp = actionEvent.getComponent ();

    If (uiComp is nothing)

    {

    otherwise we use the button that we linked to that bean

    uiComp = getButtonResetByBean ();

    _logger.info ("reset fields: buttonID =" + uiComp.getId ());

    }

    on the other

    {

    _logger.info ("reset fields: CompID =" + uiComp.getId ());

    }

    Pass the component inside the uniforms, UIXForm, UIXSubform, UIXRegion, UIXPopup, RichCarousel

    or RichPanelCollection that contains the components to reset

    getTextIDLOV () .setValue (null);

    ResetUtils.reset (uiComp);

    }

    ---

    Using this code Iam able to clear the entrance to the text box but can not clear previously selected items from the drop-down lists when the reset button is clicked

    Can anyone please help on this issue.

    It's simple, you can set GenerateIsNullClauseForBindVars = "false" in the viewCriteria who created in EmployeeView

    After doing that it will fill the list of employees only after the Department selection

    Again check the enclosed application

    Ashish

  • selection of the first column of the clicked row data

    All,

    Ive a report with a custom template and I want to return / select the first value in the column of the clicked folder, how can I get this data by using javascript code in DA or jquery?

    I did some research but couldn't do something similar.

    Classic report

    Apex 4.2

    Scott,

    I used the expression below, but it works only when the column ID/first appears, but if you set a column to not show IE uncheck the show of the column attribute, then it cannot read this value.

    $(this.triggeringElement) .find ('td:first').text())

    is there a way to always get that ID/first column when figure is not on the report?

    concerning

  • Stage Variable may also be called on the click event?

    Good day, I just started using on board and would like to know if the variable I put on the creation of complete scene can also be called on a click event?

    something like this:

    creating scene complete:

    var x = function()

    {

    Console.log ("x");

    }

    on the click event:

    var y = function() {}

    Console.log (x + y);

    }

    Hello

    You have:

    (1) within of the same symbol:

    SYM. value Variable ("variable name", value); ==> as shown (together), you set a value. For example: sym.setVariable ("x", 3). This means that x = 3.

    SYM. get Variable ("variable name"); ==> as shown (get) it returns. In your case: sym.getVariable ("x") returns 3.

    For example:

    creationComplete: sym.setVariable ('x', 3);

    Click event: var y = sym.getVariable("x"); now y = 3;

    (2) between the symbols.

    You add before: sym.getComposition () .getStage ().

    sym.getComposition () .getStage (). the value Variable ("variable name", value);

    sym.getComposition () .getStage (). get Variable ("variable name");

    For example:

    'Stage' symbol/compositionReady: sym.setVariable ("x", "Hello World!");

    "symbole1" / click event: sym.getComposition () .getStage () .getVariable ("x") returns "Hello World!"

    Dashboard API: http://www.adobe.com/devnet-docs/edgeanimate/api/current/index.html#symbolinstance

    Are you stuck?

  • Assign a value of "dynamically created the sequence" to a variable

    in my procedure I am creating a sequence on the fly, I prepare the name with some parameters passes as below

    .
    .
    v_seq_name: = "seq_". loadid | v_table_name;
    run immediately 'CREATE SEQUENCE'. v_seq_name | "MINVALUE 1 MAXVALUE 999999999999999999999999999 START WITH 1 increment of 1 hiding 20';
    .
    .

    and now after doing some operations I need to assign the current value of the sequence to a variable number, I tried but does not subsequently

    (1) v_curr_value: = v_seq_name.currval;
    (2) select v_seq_name |'. nextval' in double v_curr_value;

    can you please suggest me how can I get the value in plsql block.

    And what is - this?

    v_curr_value: = v_seq_name.currval;

    Of course, it will fail. If you want to get currval in a sequence whose name is stored in a variable, you must use dynamic SQL:

    SQL> declare
      2      v_seq_name varchar2(30);
      3      loadid number := 1;
      4      v_table_name varchar2(10) := 'tbl';
      5      v_curr_value number;
      6  begin
      7      v_seq_name := 'seq_' || loadid || v_table_name;
      8      execute immediate 'CREATE SEQUENCE ' || v_seq_name ||
      9                        ' MINVALUE 1 MAXVALUE 999999999999999999999999999 START WITH 1 increment
    by 1 cache 20';
     10      for i in 1..5 loop
     11        execute immediate 'select ' || v_seq_name || '.nextval from dual'into v_curr_value;
     12        dbms_output.put_line(v_curr_value);
     13      end loop;
     14  end;
     15  /
    1
    2
    3
    4
    5
    
    PL/SQL procedure successfully completed.
    
    SQL> 
    

    SY.

  • Subform is hid during the click on check &amp; send process SAP HCM

    Hello

    I am posting this here because it is more the problem of form to Adobe.

    Here is my requirement, I've been struggling with.

    I have 3 subforms of the same type (contains 8 fields each) to add the members of the family. Subform 1 is mandatory and is always visible. Subform 2 and 3 are hidden when the form is loaded. I have a JavaScript on the initialize event to hide.

    this.resolveNode("subform_name").presence = 'hidden ';

    When the user decides to add more details, click on the Add button that makes the subform 2and 3 visible, one at a time. Script under the click event for the Add button is:

    If (this.resolveNode("subform2").presence == 'hidden') {}

    this.resolveNode("subform2").presence = "visible";

    this.resolveNode "(PRI_DES2. PRI_FLAG2") .rawValue ="X ";      «I'm too add a flag on a field on the Add button.»

    }

    On the event ready subform2 form: I've got the code for the visible subform2 below.

    If ($record. PRI_FLAG2 == 'X') then

    .its presence $ = 'visible '.

    endif

    Everything works well up to this point.

    When the user fills in the data and click on check and send, the subform2 disappears; Note that the values in the fields are still there, I can see it when I click on the Add button. I am sure that the initialize event fires again on the cheque and send, taking the form of the initial phase.

    I tried different ways to restrict it. I use not responsible for instance, just make subforms hidden / visible. I have FORMCALC and Javascript on the form.

    Please help with any suggestions / ask me for more details.

    Many thanks - Raj

    Hi reda,.

    I don't know if I understand you right...

    1. Subform 2 and 3 do not need a script in initialization - go to object. Subform. Presence | Hidden (Exclude..)
    2. If the user click on the Add button you need not the If Condition
    3. I would write
      1. this.resolveNode("subform2").presence = "visible";  OR xfa.resolveNode("subform2").presence = 'visible '; OR subform2.presence = 'visible ';
      2. this.resolveNode "(PRI_DES2. PRI_FLAG2") .rawValue ="X ";   OR xfa.resolveNode ("PRI_DES2. PRI_FLAG2") .rawValue ="X "; OR PRI_DES2. PRI_FLAG2. RawValue = "X";
    4. The last script I would not write in the form ready event. Why use this event?
    5. If you make the subform 2 a 3 hidden, you must reset the entries in my opinion. You can use the following script: xfa.host.resetData ("xfa.form.fomr1.subform2");

    Sorry, my English isn't the best. I hope I could help a little,

    Mandy

Maybe you are looking for

  • App store, Safari and iTunes does not connect to the Internet after installing macOS Sierra

    App store, Safari and iTunes does not connect to the Internet after installing macOS Sierra After upgrade 'OS X El Capitan' to "macOS Sierra" window only empty "App store" and page "Safari" made its appearance, no error message shows. store "iTunes"

  • How can I find Textarea Cache for Android?

    I use this wonderful point on my laptop and need for Android now.

  • Problems T2130CS PCMCIA

    Hi all I have a old T2130CS, I just relaoded Win95 on it and im having a problem with the PCMICA driver\s. If I go to the properties the syetem, then Device Manager, then open tht PCMCIA socket, (by clicking on the +) offshoot of that is 'control PCM

  • Switch default behavior - PXI2503

    Good afternoon I have a few questions about the behavior of my 2503 PXI switch module.   When I close a relay on my switch I hear the click predicted.   Therefore, it leads me to think that something in the breast could wear out over time... I want t

  • 4540 proBook s: several users to reinstall windows

    Initially, I had windows 8 is installed in my laptop. I installed hp protecttools n set up personalized account where I WD use fingerprint to unlock my pc. all ws works great until my laptop started to slow down. I decided to reinstall windows, this