Home    Articles


Noty Js - Uncaught TypeError: Cannot read property 'options' of undefined


A hard problem with a simple sollution :)

A week ago i had the same problem, my designer said that he include NOTY but isn't working.

When i've tried to see what happend i saw that he didn't included all required files. He included only one: jquery.noty.js. In my case i use topCenter layout becouse that is the position where i want to display notifications and the default theme.

So i had to include another two files: layouts/topCenter.js and  themes/default.js. 

On my way for a sollution to solve this i saw on other websites that that they have included layouts/inline.js and the problem was solved. This didn't worked for me, maybe for you it will.

That should be all.