0

Why? This is driving me nuts???

<script type="text/javascript">
    $(document).ready(function () {
        $('#slides1').bxSlider({
            prev_image: '/Public/Images/btn-arrow-left.jpg',
            next_image: '/Public/Images/btn-arrow-right.jpg',
            wrapper_class: 'slides1_wrap',
            margin: 0,
            auto: true,
            auto_controls: false
        });
    });
</script>
10
  • I have no idea about this, but, maybe its .boxSlider() ? Commented Jul 13, 2010 at 0:05
  • @ Francisco bxSlider is a plugin... @eberswine: Are you sure you are including the plugin? You should have a script tag with the src = jquery.bxslider2.0.1.min.js Commented Jul 13, 2010 at 0:06
  • Are you including jQuery and the plugin? Commented Jul 13, 2010 at 0:08
  • yes, in another file, I have the actual meat and potatoes of the script.. But this is just a small controller... Commented Jul 13, 2010 at 0:09
  • 1
    A working version doesn't really help diagnose what's wrong with a non-working version. Commented Jul 13, 2010 at 1:55

1 Answer 1

2

(posting as answer so I can format/etc.)

I put your code (slightly modified) into jsFiddle and it's working with no errors...

http://jsfiddle.net/mDs4t/

As long as you have the list setup right and you are including jQuery and bxSlider plugin at the top of the page there should be no problems. As stated in my previous comment, the code posted here seems to be bug free.

Sign up to request clarification or add additional context in comments.

4 Comments

I think it might because I am testing it from SVN locally on IE 8.. If I publish the file, then it is fine.. It is just when I am locally testing it??? Thanks so much for the feedback!
@eberswine: When you say you are testing it from SVN, what do you mean? I am not clear on how you could read files directly out of an SVN repository. Perhaps this is commonly done, but I am not familiar with this.
That's odd... Are you using IIS and maybe it's not loading the local script? If you had Firebug or Chrome it would tell you if it can't load one of the plugins. IE8 may have this option as well, but I don't have IE to test with right now.
Sorry, I am just running it from SVN on my asp dev. server (local)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.