• I am attempting to manually set up the coda-slider 2.0 jQuery plugin on my site.

    It appears that the PHP generation and appropriate HTML are correct, but I can tell the JS isn’t working for two reasons. First, the panels of the slider all load at once (visible) on top of each other. Second, the Chrome Inspector is giving me the following two JS errors:

    Uncaught TypeError: Property '$' of object [object DOMWindow] is not a function

    in the coda-slider js script, and:

    Uncaught TypeError: Object [object Object] has no method 'codaSlider'
    in my own script. This second error also has the following reported callback errors in the actual jquery script, which is version 1.7.1:

    f.Callbacks.n
    f.Callbacks.o.fireWith
    e.extend.ready
    c.addEventListener.B

    My script is as follows:

    jQuery(document).ready(function($) {
           $('#coda-slider-1').codaSlider({
               autoSlide: true,
               autoSlideInterval: 4000,
               autoSlideStopWhenClicked: true
           });
       });

    I have enqueued all of these scripts according to the appropriate WP methods.

    Questions: Is this a conflict between coda-slider and the enqueued version of jquery? Is this a noConflict issue, because I thought I had accounted for that? If it’s neither of these, what could possibly be the issue? I have no other scripts on the site so far.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Scroot

    (@scroot)

    I fixed this by changing the $ to jQuery in the two outer-most functions of the coda-slider plugin, though there has to be some better way to do this.

    i have the same problem but i still can’t fix it

    <script type="text/javascript">
    			$().ready(function() {
    				$(#coda-slider-3).codaSlider({
    					dynamicArrows: false
    					});
    			});
    		 </script>

    plz tell me what i have to do ..!!

    Thread Starter Scroot

    (@scroot)

    Try:
    jQuery().ready(function($) {

    at the beginning instead.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Manual Coda-Slider (not plugin) jQuery Issue/Errors’ is closed to new replies.