-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: $(...).nyroModal is not a function #251
Comments
Did you load jQuery and complete nyroModal scripts BEFORE you load your script.js? |
Same error for me, using Jquery 1.9 |
Did you load jQuery and complete nyroModal scripts BEFORE calling nyroModal? |
For some obscure reason $.fn.extend is called after. I guess what happen is 1- Page load However, your plugin is the only one to crash with the scheme. I can't provide an example because the app is too huge and we're using the plugin on a private page. |
Without an example or a way to reproduce the bug, I won't be able to fix it... |
I bumped into this same issue. In my case the problem was caused either by upgrading jQuery, or by putting jQuery into noconflict mode. The problem is caused the way that the NyroModal functions are defined:
These functions are executing after I was able to resolve the error by replacing each instance of:
with an anonymous function:
Now those functions execute immediately instead of after document ready. |
My application in rails says me this error on firebug:
TypeError: $(...).nyroModal is not a function
beforeShowCont: function() {
When I call Script.js:
var width = 1152;
var height = 864;
$('.modal').nyroModal({
sizes: {
initW: width, initH: height,
minW: width, minH: height,
w: width, h: height
},
callbacks: {
beforeShowCont: function() {
width = $('.nyroModalCont').width();
height = $('.nyroModalCont').height();
$('.nyroModalCont iframe').css('width', width);
$('.nyroModalCont iframe').css('height', height);
}
}
});
I change "$('.modal').nyroModal({"
to $(".nyroModal").nm({ but it doesn't works.
What can I do?
Thanks.
The text was updated successfully, but these errors were encountered: