Customer Portal

Get Involved. Join the Conversation.

Topic

    mattia caputo
    "YAHOO not defined" exception in the logic.js of a...Answered
    Topic posted October 13, 2017 by mattia caputoRed Ribbon: 250+ Points 
    141 Views, 2 Comments
    Title:
    "YAHOO not defined" exception in the logic.js of a custom widget
    Content:

    Hi all,

    I am trying to create a new event listener, in the logic.js file, for a custom widget by the using the following expression:

    YAHOO.util.Event.addListener(this._inputField,"change", this._selectionChange,null,this);

    However, I experience a Javascript exception stating that "YAHOO is not defined".

    Could you please shad a light on this ?

    Thank you.

    Best regards,

    Mattia

     

     

    Version:
    Oracle Service Cloud May 2017 (Build 267 SP 4, CP 333) Framework Version 3.6
    Image:
    Code Snippet:

    Best Comment

    Suresh Thirukoti

    In latest CP Versions, YAHOO is no longer declared....instead its Y

    Older CP Versions

    YAHOO.util.Event.addListener("demo", "click", helloWorld);

    Newer CP Versions

    Y.on("click", helloWorld, "#demo");

    http://www.yvoschaap.com/yui2yui3/

    ~Suresh

    Comment