[support] refreshing jcarousel item list without page reload
Aldo Martinez Selleras
aldo at caonao.cu
Thu Nov 18 21:34:51 UTC 2010
Could be something like that ?
function mycarousel_itemLoadCallback(carousel, state, classification)
{
var classification = $('#award-type-filter').val();
jQuery.get(
'/classification/' + classification,
function(xml) {
mycarousel_itemAddCallback(carousel, carousel.first,
carousel.last, xml);
},
'xml'
);
};
function carousel() {
jQuery(document).ready(function() {
$('#profile-carousel').jcarousel({
vertical: true,
itemLoadCallback: mycarousel_itemLoadCallback
});
});
}
function trigger() {
carousel();
}
In the select I declare onchange=javascript:trigger();
But, the carousel isn't regenerating :(
And the URL /classification/$val() it is generating and changing, instead
the XML result are OK, but the carousel not render again :(
More information about the support
mailing list