TypeError: jQuery.notyRenderer is undefined #184

Closed
h4k1m0u opened this Issue Jan 28, 2014 · 15 comments

Projects

None yet

10 participants

@h4k1m0u
h4k1m0u commented Jan 28, 2014

I get this error with jquery v 1.10 I dont know how to resolve it?

@h4k1m0u
h4k1m0u commented Jan 28, 2014

I fixed the issue by replacing jquery by $ on the last line of jquery.noty.js:
replace this:
// Helpers
window.noty = function noty(options) {
return jQuery.notyRenderer.init(options);
};

by this:
// Helpers
window.noty = function noty(options) {
return $.notyRenderer.init(options);
};

@shyam334

I'm having the same issue as well. It doesn’t seem to work for me even after replacing the snippet @h4k1m0u mentioned above. What am I missing?

@h4k1m0u
h4k1m0u commented Jan 29, 2014

@shyam334 Im using jquery version 1.10.1. Try to update your version of jquery.
You should clear your browser cache too.

@needim
Owner
needim commented Jan 29, 2014

Thanks for reporting. I will check this issue asap.

@h4k1m0u
h4k1m0u commented Jan 29, 2014

@needim This modification is needed for me inside a joomla project, when noty is called on the root body context, but not inside of an iframe (in iframe context).

@needim
Owner
needim commented Dec 29, 2014

A lot of times and so many releases, can you try with latest release? And if problem still exist can you create a new issue with jsfiddle example?

@needim needim closed this Dec 29, 2014
@flouthoc

Same here how do i fix it ?

@elpollitodiablo

I have that exact same Issue. My head:

<!-- jQuery --> 
<script src="/public/js/jquery/jquery.min.js"></script> <!-- jQuery v1.10.2 -->
<!-- Noty -->
<script src="/public/js/jquery/jquery.noty.packaged.min.js"></script>

My Call:

<script type="text/javascript">
    $(function(){
        $("#contact_form").on("submit", function(e){
            e.preventDefault();
            var n = noty({text: 'noty - a jquery notification library!'});
        });
    });
</script>

EDIT: replacing jQuery with a $ was no use

@villian
villian commented Apr 2, 2015

I have the same problem, it makes me crazy (

@v2k-rongjun

Hi, any news about this issue?

@villian
villian commented Apr 8, 2015

Bug still exists

@v2k-rongjun

Thanks for the reply

@SargerasWang

top.noty({...})

@nroe
nroe commented Aug 15, 2015

if you use noty in $(function() { noty({...}) }); tag. you mush change the source code in $(function() { ... });

files: jquery.noty.js, themes/default.js, layouts/topRight.js(which you are use layout)

@penwon
penwon commented Sep 18, 2015

That is not a bug. Try to include a jquery.noty.packaged.min.js file in your html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment