Not working with JCarousel Lite

brady53 - July 17, 2008 - 18:23
Project:AJAX Views
Version:5.x-1.5
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Ajax Views seems like a great module and we'd love to use it on our site. However, we are having problems getting it to work with JCarousel Lite. We have followed the instructions in the Ajax Views doc, creating a view with both page and block and with the block type set to Ajax Paging View Block and the argument set correspondingly. The Ajax views works on normal views and the JCarousel Lite also does; but when we combine them, we only get the normal view output, no JCarousel magic.

We have overridden theme_views_ajax_page() and inserted the following code, which gets appended to the $output before printing:

$(function() {
$(".item_list").jCarouselLite({
// $(".ajax_views_body").jCarouselLite({
btnNext: ".next",
btnPrev: ".prev",
circular: false
});
});

This code is enclosed in "srcipt" tags and we have btnNext and btnPrev buttons on the page. We have checked that this code is getting appended by using dprint_r($output) at the end of our phptemplate_views_ajax_page().

Do you have any suggestions?

Thanx in advance.

#1

febbraro - July 21, 2008 - 16:12

Are you getting any JS errors?

 
 

Drupal is a registered trademark of Dries Buytaert.