Hi,
In my loadItemHandler I make a JSON request. I'd like to change the URL of this dynamically, ie; change the query that's made to the database backend and refresh the carousel to reflect this query.
Eg:
On page load:
function loadItemHandler(carousel, start, last, available)
{
if (available) {
// Trigger loaded
carousel.loaded();
return;
}
var cr = carousel;
jQuery.getJSON("/media/foo?cb=bar, function(data) {
appendItemCallback(cr, start, last, data);
});
};
but after either clicking on a a href or entering a search term in a form on the page I'd like to reload the carousel with: /media/foo?cb=bar&query=whatever
It can be done with YUI (see link below) but I'd like to stick to jcarousel - is the above possible?
http://billwscott.com/carousel/carousel_ajax_search.html