Skip to main content

Modifying Carousel

1 reply [Last post]
Joined: 2006-06-21
Points: 0

I'm trying to modify the carousel component to read a different source then flickr.

The following line (added in component.js) seems to have no effect and I was wondering how listeners were affected when using Carousel through jmaki. Any help would be greatly appreciated.

YAHOO.util.Event.addListener(window, 'load', self.pageLoad);


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2003-07-31
Points: 0

Do you want to manually specify the images to load?

I think it would be better to add a page load listener but rather update the widget to allow for a values array.

Basically in the component.js of the widget remove the lines 10 - 57

The give an array of object formatted as :

{id:itemId , name: name, thumbnailURL: thumbURL, imageURL: imageURL, description: description}

to the init method of the widget.

Like the following:

// load items items

Let us know if this does not work.