Code Monkey home page Code Monkey logo

Comments (1)

PaulNieuwelaar avatar PaulNieuwelaar commented on May 26, 2024

Hi, it sounds like the JQuery file isn't being loaded. One of the first things that gets declared inside the alert.js file is the Alert._jQuery variable. This uses window.$ or parent.$ depending on whether jQuery is defined in the current window. If it's not defined, it tries to get parent.$, and if there is no parent of your web resource, parent will be undefined, so parent.$ will give you that error.

Couple of things to try:
Check the jQuery reference is correct. I notice there's no ".js" on the end, but this may be the actual file name. And I notice the prefix is mag_new_ but again this may be what it actually is, just might pay to double check it is correct.

Secondly, when you load ClientGlobalContext, I believe it will load in jQuery for you as well - however you're loading this in after alert.js, so the error would've already happened (this might be why it looks like jQuery is being loaded correctly). You should be able to just move the alert.js reference to be below Context, if you find your jquery reference is not the problem.

Let me know if either of those work.

-Paul

from alertjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.