Incidentally, I just tested it in IE7 and it works.

I'm also getting a different error in Firefox now - don't know why,
all I've changed is to move the Carousel startup code into my main JS
file rather than loading it from the ajax-loaded file. This new one is
something about an uncaught exception, canvas not available.

On May 4, 9:46 am, MrTufty <[EMAIL PROTECTED]> wrote:
> Ok, I didn't have var noRotate = false; before, as it wasn't mentioned
> anywhere that it was necessary.
>
> Here's the code that I have for my Carousel - I haven't included the
> main page this comes from, this is just the part that gets loaded with
> Ajax, into a div called #main-area. I've changed the call for it to
> match what you've done for your site, but it still doesn't work. I get
> an error in jquery.js - line 1939 (missing ; before statement). Any
> ideas?
>
> <div id="carousel">
>         <a href="#"><img src="img/alcoholic.png" width="100%" /></a>
>         <a href="#"><img src="img/clouds.png" width="100%" /></a>
>         <a href="#"><img src="img/coffee.png" width="100%" /></a>
>         <a href="#"><img src="img/concentrates.png" width="100%" /></a>
>         <a href="#"><img src="img/emulsions.png" width="100%" /></a>
>         <a href="#"><img src="img/energy.png" width="100%" /></a>
> </div>
>
> <script type="text/javascript">
>
>         jQuery(function() { window.onload = function() {
>
>                 if( noRotate == true ) return false;
>
>                 $('#carousel').Carousel({
>                         itemWidth: 120,
>                         itemHeight: 80,
>                         itemMinWidth: 40,
>                         items: 'a',
>                         reflections: .2,
>                         rotationSpeed: 6
>                 });
>
>         });
>
> </script>
>
> On May 3, 6:05 pm, [EMAIL PROTECTED] wrote:
>
> > > Is it possible to make the carousel work when it's being loaded into a
> > > div via Ajax?
>
> > Can you post some code/link?
>
> > Have you set: var noRotate = false;
>
> > I have it working here:http://www.activespotlight.com/
>
> > *

Reply via email to