Using yepnope, getting error in event handler.

Recently discover yepnope and started to implement it into my project to keep common functions in one file. The first set of functions worked fine when I moved them over, but with the last one I'm unable to control a symbol.  It's calling the function fine, it's just wont play the symbol timeline.
-------Here's the function in the external file
//Function for audio button
// Tests the paused attribute and set state.
voButton = function (){
    if ($('#voiceOver')[0].paused) {
        console.log("play");
        $('#voiceOver')[0].play();
        sym.getComposition().getStage().getSymbol("btnSound").stop(1000);
    else {
        console.log("pause");
        $('#voiceOver')[0].pause();
        sym.getComposition().getStage().getSymbol("btnSound").stop(0);
-------Here's the call to the function
Symbol.bindElementAction(compId, symbolName, "${_btnSound}", "click", function(sym, e) {
         voButton();
//Edge binding end
Calling the function plays the audio but doesn't change the symbol. Getting the error message:
functions.js (line 39)
Javascript error in event handler! Event Type = element
I've tried different combinations of getComposition() or getSymbol(), nothing.  I read a post somewhere that said I needed to prefix my function creation with sym. and call it the same way.  This didn't work either and caused the function to stop working, but with a new error: sym is not defined in the external file.
Like I said the function works when I call it, but I can't access the symbol's timeline for some reason.

I'm trying to include a custom js file to an Edge project, and I'm getting the same "sym is not defined" error. have you found a workaround for this problem?
can't we just use "sym" or methods like "getSymbol()" in the js loaded by yepnope?
I can't find any sources about this.
And I can't find an easy way to substitute "sym"...
Thanks in advance

Similar Messages

  • Getting error in event handler method onPlugFromStartView

    Hi,
           I am getting error in event handler method onPlugFromStartView java coding. The error message is u201CThe method wdGetwelcome componentcontroller() is undefined for the IPrivatevieew.
    Plese explain how to resolve this error to deploy the webdynpro application successfully.
    Thanks,
    Kundan.

    Hi
    1.It seems some thing corrupt or some problem .
    2. Do one exercise Create one new Dc --component -View ,In component write one method.
        a)  Open the view and then try to add that component.
    Let us know the result
    Best Regards
    Satish Kumar

  • Javascript error in event handler! Event Type = element [edge.2.0.0.min.js:162]

    I'm doing a little edge project (now in beta version) for my girlfriend (she hates the code), with examples of the animate() method and other functions like setInteval(), but when I run I get the following error in Chrome console:
    Javascript error in event handler! Event Type = element [edge.2.0.0.min.js:162]
    But this library is global for all projects, how is possible that trigger an error?
    Example here:
    https://app.box.com/s/m7nof4al6597gfn47jlu
    Thanks.

    you dont need to import java ease !!
    it's already included in edge animate, remove that yepnope completely your problem will gone
    Zaxist

  • Javascript error in event handler! edge 4.0.0.js, what to do about it?

    Site
    Hello everyone. I get an error in my chrome cosole, what can I do about this?
    I dont have this problem in all browsers, just in chrome, and in some versions of Firefox.
    The problem occurs when I click any label in the iframe (see website, speaks for itself).
    line 5838      window.console.log("Javascript error in event handler! Event Type = " + eventType);
    does anyone know how to fix this?
    And why do I only have this problem in some browsers?

    I basically want the labels in the Iframe to make the parent page animate to a specific anchor tag.
    ps. This is what I posted on the jquery forum as well:
    I tried to do this by letting the iframe .trigger a .click to a button on the .parent page.
    I did this in two ways.
    one: the click is triggerd in (/by) the iframe
    two: the click is triggerd by a script in the parent window, that script is launched by the iframe
    Here's the thing:
    this is what one of the <a>'s that the iframe will click looks like:
    <a class="nonblock nontext anim_swing" id="u185" href="index.html#contact"><!-- simple frame --></a>
    The code is generated by adobe muse which has a function to smoothly scroll to a location on the page, and I am guessing the "anim_swing" class takes care of that.
    I would like the colorful labels in the iframe to do the same thing as the <a> above.
    and it works in some browsers on some computers but somehow not on all of them (with method two the adblocker doesn't seem to be an issue ).
    I also tried to let the parent page scroll directly with the jquery .scrollto function. That did not work either (see the jquery forum).

  • Javascript error in event handler event type = timeline

    Hi,
    I have a small EdgeAnimate projekt with version 1.5.0 and the local export works fine... I must include the package at a CMS and I update all paths to absolute paths and all files are loading...
    but I the animation dont play - I see at the javascript console the follow output
    javascript error in event handler event type = timeline   edge.1.5.0.min.js:143
    Springender Punkt: Rettungswagen - Der springende Punkt
    I dont found any solution... :-((

    Hi Scott,
    I have gone through your shared composition created in older verion of Edge.
    If you open the older composition html page in browser, there already have some of the error messages in the console as you mentioned above like
          Javascript error in event handler! Event Type = timeline.
    And as you said with the latest Edge, when you upgrade the old composition, some new error messages gets added to the existing ones.
    As in the latest Edge, the whole of runtime has been shake-up, some of the attributes has been removed and are added in different way.
    Example: To access timelines of a symbol:
         Old way:           sym.timelines['Default Timeline']
         New way:          sym.data[sym.name].timeline
    You need to make some modifications in index_edgeActions.js file like:
         1. Search & Replace "timelines['Default Timeline']" with "data[sym.name].timeline"
         2. And in the code taken from EdgeCommons.js, replace "getVariable("symbolSelector")" with "_variables["symbolSelector"]".
    Hope, these changes will remove the new JS issues you mentioned.
    hth,
    Vivekuma

  • Help with Javascript error in event handler slowing animation down.

    Hi all--
    I did an animated book cover for my publisher, Baen Books, but an error keeps coming up in my animation.  The actual animating can be viewed here:
    http://baen.com/310x204/A_CallToDuty.html
    As you can see, when the error pops up, the animation grinds to a halt, an it has to recover.  I am not well enough versed in javascript to know what is going on. The error code below repeats over and over again as it plays.
    6Javascript error in event handler! Event Type = timeline edge.3.0.0.min.js:171
    3
    <error> VM26:184
    Javascript error in event handler! Event Type = timeline edge.3.0.0.min.js:1714Javascript error in event handler! Event Type = timeline edge.3.0.0.min.js:1713
    <error>
    If anyone has an idea what is causing this, I would be extremely grateful for  any help.
    David Mattingly

    Hi Hemanth--
    I put it in a dropbox folder for you here:
    Dropbox - EdgeAnimation
    This contains 2 versions--a small one for the preview, and then a larger one when people click on the cover preview. Thanks in advance for your help.\
    David Mattingly

  • In bdc  while transfer data from  itab to db .we get error how to handle ?

    hi guys,
    1.while uploading a data from flat file to internal table .
    We get
        Lifnr   name1   ort01
        123 #    Eswar#    in ##
    But while transfer data from <b>itab to db</b> .we get error how to handle that?
    pls coud u give the logic
    i'm waiting for u r reply.
    Ishwar.

    well without telling us WHAT error message you get noone will be able to help yah.
    please help us to help you. thx

  • Input value given on web page is not getting pickedup in event handler

    Hi friends,
    I have created one simple page in SE80 with program with flow logic option, in which I would like to show business partner details from BUT000 table with the input of partner number. But the thing is the input value(partner no.)which I am giving on web page is not getting picked up in selection in event handler though I am giving input value it is becoming initial while selecting. What could be the reason?
    Below I am mentioning the code which I have written in even handler for OnInputProcessing event.
    CASE EVENT_ID.
    WHEN 'select'.
    NAVIGATION->SET_PARAMETER( 'partner' ).
    SELECT * FROM but000 INTO TABLE I_but000 WHERE partner BETWEEN partner AND partner1.
    WHEN OTHERS.
    ENDCASE.
    Thanks in advance,
    Steve

    Hi Abhinav,
    I tried with the one you posted. But it is giving run time error as shown below.
    Note
    The following error text was processed in the system CRD : Access via 'NULL' object reference not possible.
    The error occurred on the application server crmdev_CRD_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: ONINPUTPROCESSING of program CLO24DDFJW575HVAQVJ89KWHEHC9OCP
    Method: %_ONINPUTPROCESSING of program CL_O24DDFJW575HVAQVJ89KWHEHC9OCP
    Method: DO_REQUEST of program CL_BSP_PAGE===================CP
    Method: ON_REQUEST of program CL_BSP_RUNTIME================CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_HTTP_EXT_BSP===============CP
    Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    Regards,
    Steve

  • Material Master Upload using Bapi getting error "****** not a valid unit of

    Hi Gurus,
    i am uploading material master using BAPI Material_master_save_data , where the volume and Unit of Volume is Blank, Still i am getting error as "****** not a valid unit of volume ".kindly help me to resolve the issue.Many Thanks In advance.

    Jurgen,
    I could able to solve the issue for invalid unit Error ....Now i am getting **** unit of measure is not defined , pls check your entry or else i am getting alternate unit of mesure is same as base unit of measure .
    I have used below logic for Purchase Order Unit and Base Unit of measure .
          if wa_upload-unmsr EQ wa_upload-ord_uom .
            bapi_mara1-base_uom = wa_upload-unmsr.
            bapi_mara1-po_unit = wa_upload-ord_uom .
          elseif wa_upload-unmsr NE wa_upload-ord_uom.
            wa_upload-ord_uom = wa_upload-alt_uom.
            bapi_mara1-po_unit = wa_upload-ord_uom.
          endif.
    Many Thanks for your help.

  • Error in event handler method in window

    Hi,
    I have created configuration in SEFVISU, to receive the workitem i have created a parameter in event handler method in window
    but it is throwing dump The ASSERT condition was violated, if i remove that parameter means application executing properly but i am not able to pass the unique, values please guide me.
    Regards,
    Srini.

    Hello Srini,
    are you talking about the default event handler method of the window? if so then you need to ensure that the parameter name defined in the event and passed in name are same. And also its better to go for the parameter type as STRING.
    other option would be instead of defining the static parameters in the event handler method, you can get the parameters from the WDEVENT itself by accessing WDEVENT->PARAMETERS table.
    hope this helps.
    BR, Saravanan

  • Group by using partition getting error

    select
    code,
    code_value_text
    ext_contact_organization,
    regulatory_group_name,
    sum(spd.case_id) over (partition by code,code_value_text,regulatory_group_name)
    from AERSP.code_list_dtls cdl,
    AERSP.ec_contact_log cntct,
    AERSP.de_suspect_drugs spd
    where cntct.ext_contact_organization=cdl.code
    and code_list_name= 'SP_ORGANIZATION'
    and spd.case_id=cntct.case_id
    I used above SQL to group based on the columns I wanted but when I run that SQL getting error INVALID NUMBER,
    Why Im getting error, Please help.
    Thanks in advance
    Murthy

    select
    code,
    code_value_text
    ext_contact_organization,
    regulatory_group_name,
    sum(spd.case_id) over (partition by
    code,code_value_text,regulatory_group_name)
    rom AERSP.code_list_dtls cdl,
    AERSP.ec_contact_log cntct,
    AERSP.de_suspect_drugs spd
    where cntct.ext_contact_organization=cdl.code
    code_list_name= 'SP_ORGANIZATION'
    and spd.case_id=cntct.case_id
    I used above SQL to group based on the columns I
    wanted but when I run that SQL getting error INVALID
    NUMBER,
    Why Im getting error, Please help.
    Thanks in advance
    MurthyIt's difficult to say 100%, because we know nothing about your data.
    But i can suppose, that problem is in sum(spd.case_id).
    Probably you have any not-numeric data in the column case_id
    Regards
    Dmytro

  • Trying to register 10.2.0.3 db in Rec Catalog using OEM, getting errors

    Hi all,
    I didn't know whether to post this here in the RMAN forum or in the OEM Grid Control forum, but the issue is more related to RMAN, so I'll post it here, and hope someone can help me out!
    I have a new 10.2.0.3 database that I am getting configured to manage using OEM Grid Control. Through the OEM interface, I am trying to register this database with my recovery catalog - the recovery catalog is version 10.02.00.02. When I try to register this new db with the recovery catalog, I am getting this lengthy collection of errors:
    Recovery Manager: Release 10.2.0.3.0 - Production on Wed Jan 30 14:58:36 2008 Copyright (c) 1982, 2005, Oracle. All rights reserved. RMAN> connected to target database: INSIGHT (DBID=4016731035) RMAN> connected to recovery catalog database PL/SQL package RMAN.DBMS_RCVCAT version 10.02.00.02 in RCVCAT database is not current PL/SQL package RMAN.DBMS_RCVMAN version 10.02.00.02 in RCVCAT database is not current RMAN> echo set on RMAN> register database; RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of register command at 01/30/2008 14:58:40 RMAN-06004: ORACLE error from recovery catalog database: ORA-06550: line 1, column 2453: PLS-00302: component 'RESTORECMD_T' must be declared ORA-06550: line 1, column 2424: PL/SQL: Statement ignored RMAN> exit; Recovery Manager complete.
    It sounds like it has something to do with the fact that my recovery catalog database is not at a current version?? In the OEM tool, I went to the page that lists the Recovery Catalog, and tried hitting the Update button, and it succeeded, but the Recovery Catalog version did not change, it is still at 10.02.00.02.
    Can anyone give me some assistance on this one?
    Thanks!
    --Brad                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi,
    please check with
    select comp_name,status,version from dba_registry;
    COMP_NAME
    STATUS VERSION
    Oracle Database Catalog Views
    VALID 10.2.0.3.0
    Oracle Database Packages and Types
    UPGRADED 10.2.0.3.0
    The UPGRADED status is not good. Run utlrp.sql again and then again as rman user the "upgrade catalog". Now it should work fine.
    Bye
    Matthias

  • Cannot update my phone using zune getting error 80...

    Hi, have bin having problems with zune ever since i installed it.all i wont to do is update my phone  but everytime i connect my phone to zune it syncs ok but then says that my phone did not connect to the internet to get updates and if i click on updates on zune it comes up with "zune needs to be installed again..Error 80040154" have reinstalled zune at least 10 times now and have tried the Microsoft fix it to uninstall zune and reinstalled it with that BUT IT STILL DONT WORK am pulling my hair out with this as i only want to update my phone so i can get more battery life out of it........dont want zune and will never use its features so why do i have to use these bloody program when there are so many problems with it?...........BIG  thanks to anyone who can help me with this problem

    @sherpa1967
    To successfully install the Zune software, you need full administrative privileges.
    Right click on the Zune program and go to properties and then to compatibility at the bottom where there should be a check box "Run as Administrator", check it. Then click OK and you should be able to run the program.
    Happy to have helped forum with a Support Ratio = 42.5

  • Copied iTunes to ext. HD-now want NEW bootable HD to use, but get error msg

    OK, I first used HT1449-"iTunes for Mac-Moving your iTunes Media folder". That worked and iTunes is now also on an external drive, which eventually I plan to make the _permanent location for iTunes_. Apple Help via phone told me to name the new folder "ITunes" on the external drive, which I did.
    So now, after doing the above, I have installed a non-migrated new main internal HD with all my apps and OSX 10.6.4, etc. on this new boot drive.
    The new boot drive works fine and as expected, EXCEPT, that when holding down the option key and launching iTunes, then "Choose Library" in the window where it says "iTunes needs a library to continue. You may choose an existing iTune library or create a new one." I pick "Choose Library". I highlight the new external drive name and then highlight the created folder (from steps 6+7 in HT 1449), named "iTunes", I get this error message:
    "An iTunes library file could not be found in the folder "iTunes. Please choose a different file."
    There are about 4 or 5 sub-folders under that newly created folder "iTunes", but only about 2 are accessible to select. One of them has all the albums from my music collection (117GB) and from memory I think another sub-folder has about 4GB in it.
    Maybe I should be selecting one of those, but fear I might really mess things up even more if I pick an incorrect folder at this level.
    Any Genius, kindly help......What am I doing wrong here????

    megrove wrote:
    will doing as you suggest, also duplicate the music content on the copy over. I ask this since my music content is 117GB?
    since you consolidated your library to your external HD, all your media files will be on that. consequently, looking @ the screenshot above, the iTunes music folder inside the iTunes folder on the old internal HD should be empty - unless you didn't clear it out after the consolidation.
    best take a look before you start. if there are any media files inside, trash them. then copy the entire iTunes folder over to <MacintoshHD>/users/<yourname>/music on the new internal HD.
    there will be an iTunes folder in place, so OS X will tell you "a folder called iTunes exists in that location" and will ask you if you "want to replace it with the one you're moving". click yes (or okay).
    make sure your external HD is connected and mounted on your desktop, then launch iTunes. you should be taken to the exact same library you're used to.
    JGG

  • Using Forms_DDL getting error ORA-24374-Any Ideas?

    Hi all,
    I am getting the following error
    ORA-24374: define not done before fetch or execute and fetch
    I am using the forms_ddl built-in and believe that it has something to do with this. I have looked up the error and there is no docs on it. If anyone has information about this error or a possible route I can go about it would be greatly appricitated.
    Thanks
    Sean
    null

    ORA-24374 define not done before fetch or execute and fetch
    Cause: The application did not define output variables for data being fetched before issuing a fetch call or invoking a fetch by specifying a non-zero row count in an execute call.
    Action: Issue OCI define calls for the columns to be fetched.
    null

Maybe you are looking for