Prevent Next and Prev buttons

View: New views
1 Messages — Rating Filter:   Alert me  

Prevent Next and Prev buttons

by bgcks123 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Can anyone tell me if I'm doing something wrong in the way I'm trying to stop the creation of the prev and next buttons.
According to the documentation, you should be able to include:

buttonPrevHTML: null and buttonNextHTML: null

in the carousel initialization script. That should stop the auto generation of the buttons.
When I try this, it doesn't work, though. Here's my init script:


        jQuery(document).ready(function() {
                jQuery('#mycarousel').jcarousel({
                        visible: 3,
                        buttonNextHTML: null,
                        buttonPrevHTML: null
                });
        });

If anyone can help, I'd appreciate it.

From my own research, it looks like there is code for defaults in the jcarousel library, that calls an "extend" function (which I believe is in jQuery) in order to replace the default "options" values with the values specified in the initialization script. If that's the case, and I may be wrong here, the jQuery extend function specifically ignores an attempt to overwrite a default value with a null value, so using null in the init script won't work. As I said, I may be wrong.

I'm using version 1.2.1 of jQuery and 0.2.2 of jcarousel.