|
Hello everybody,
I am working on a soccer formation module for the European Championship, which incudes the UI Carousel.
The idea is that you can select the home team and check the formation of the coming match. Also you can see who is sitting on the bench. That is where the carousel is coming in. There are 5 players displayed, but more on the bench. So you have to use the previous / next buttons to check the rest. Besides checking the home team you can also check the away team. I get the XML in via prototype.
The first time you arrive on the page a carousel object is made. If you click on the away team, the carousel should be cleared and a new one should be initiated. It seems to be working fine, but if you play a little with changing teams and using the previous and next there I get the next JavaScript error message: ‘style is empty or not an object’. I have been trying to find out the reason for this for the last day, but I can’t seem to find it. I think it doesn’t clear the first instance of the carousel correct and that conflicts with the newly made when you change team.
The link to the test page is: http://www.factor12.com/klant/Oy/OnsOranje/opst…
Someone here who has experience with this?
Regards, Jordi
|