We help IT Professionals succeed at work.

Adding localScroll plugin stops the rest of my javascript plugh

soujohn
soujohn asked
on
Greetings,

This is the first time I've posted anything to Experts Exchange. I hope my form of asking questions is too difficult or frustrating. The issue I'm having is that I would like to nest a series of panels that scroll using localScroll into a container that scrolls using CodaSlider. I have gotten the structure all correct, but once I try to call the localScroll function for the nested panels all of my scripts stop working. Have I called the plugin incorrectly? Or is this something that is not possible using these two scripts together. I really hope I can do this. It just seem that I'm calling something incorrectly. Here is a link to the page with the issue.
http://www.soujohn.com/clients/sil/test/index-work.html

If you remove this section of code from the header everything else works fine, but then the content inside of the Work section won't scroll.

                                                $('#section-work').localScroll({
                                                            target:'.section'
                                                            axis:'xy'
                                                            queue:true
                                                            hash:false
                                                });

Thanks for any help you can provide.
Comment
Watch Question

Commented:
Trz to debug your code, check for error messages. Actually as I see you missed the commas...
$('#section-work').localScroll({
    target : '.section',
    axis : 'xy',
    queue : true,
    hash : false
});

Open in new window

Author

Commented:
gyogreg,

Thank you very much. Your solution resolved my issue. I just had to change the target to get the animation to function properly once the page was loading correctly. Thank you very much.