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,
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
Comment #1
quicksketchIf 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.
Comment #2
scothiam commentedYes, 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,
Comment #3
quicksketch