It appears that the jCarousel project is obselete. The forum for it has halted in 2008. This is frustrating as I'm trying to look for a carousel that does dynamic loading.
here's the json [{"ImageTag":"<img src="http://www.xxx.com/image/515.jpg" alt="">"},{"ImageTag":"<img src="http:// www.xxx.com/image/426.jpg" alt="">"}] On Jun 29, 1:01 pm, Mean Mike <mcgra...@gmail.com> wrote: > ohh yeah can we see the json result ? > > On Jun 29, 1:49 pm, expresso <dschin...@gmail.com> wrote: > > > I borrowed this function > > fromhttp://sorgalla.com/projects/jcarousel/examples/dynamic_flickr_feed.html > > > function mycarousel_decodeEntities(s) { > > return s.replace(/&/g, "&") > > .replace(/"/g, '"') > > .replace(/'/g, "'") > > .replace(/</g, "<") > > .replace(/>/g, ">"); > > > }; > > > and I'm trying to use it in my code here: > > > function mycarousel_itemLoadCallback(carousel, state) { > > > $.getJSON("http://localhost:59396/xxx/xxxHandler.ashx? > > action=cjson", > > function(data) { > > $.each(data, function(i, item) { > > carousel.add(i, mycarousel_decodeEntities(item)); > > if (i == 3) return false; > > }); > > }); > > > }; > > > for some reason I get an error in firebug saying this: > > > s.replace is not a function > > [Break on this error] return s.replace(/&/g, "&") > > > I know I've used this very same code before and the only difference > > was that I changed some JSON that is returned but it's valid json.