I'm just starting to wrap my head around jquery/javascript/drupal.behaviours in Drupal and thought this might be an easy answer for someone else.

Is there a way to call the carousel in javascript instead of the php jcarousel_add();?

thanks,

Comments

quicksketch’s picture

If you're asking if you can make the jCarousel JavaScript load on the page without adding it first, then the answer is no. But if the jcarousel.jquery.js file is already on the page, you can of course use the carousel library directly. See http://sorgalla.com/jcarousel/ for examples.

scothiam’s picture

Yes, that was my question, thanks. I was curious if I there was a way to call that function via javascript. I'll quit beating my head against that wall now!
cheers,

quicksketch’s picture

Status: Active » Closed (fixed)