I am using Shining Image jQuery plugin for some images in my project .
when using it with a selector like $('#logo').shiningImage(); i get an error that say:
Object [object Object] has no method ‘shiningImage’
what is problem. please help me if know!
You said you have a reference to it so this is probably the issue:
You are referencing the
JQueryscripts again in the page, thus overriding theShining Imageplugin which declared before the second reference.JQuery plugins extends the
JQueryobject, So if you reference JQuery again it overrides the “extended” JQuery object.Check the rendered HTML, you probably have two references to
JQuerylibraryCheck this question, I adjust my answer a bit, it looks like the same problem
Or you just added the reference to the plugin before add the reference to the
JQueryit self, which explains why you’re having problems…