treehouse : what would you like to learn today?
Web Design Web Development iOS Development

AnythingSlider in ASPx

  • I can't seem to get AnythingSlider to load properly when using ASPx. I checked out FireBug and it appears that all scripts are loading but the slider will not generate so all I get is an unordered list of slides.

    I think it may have something to do with the loading of the slider setup function

    	
    <script>
    $(function () {
    $('#slider1').anythingSlider({
    width : 800, // Override the default CSS width
    easing: 'easeInOutExpo'
    });
    });
    </script>


    I know it will work because I have it functioning in HTML on the same site at this location.

    HTML with working AnythingSlider

    The layout that is not working can be found at this location.

    Broken Page

    I feel like the setup content is largely identical but the ASPx configuration fails.

    Anyone have any ideas?

    Thanks...
  • Hi BigAl!

    jQuery is being loaded after (line 60) the easing and AnythingSlider scripts (lines 27-28), so this will cause an error.

    The easiest solution would be to move the jQuery script tag from line 60 to line 26.