Johannes Hansen


Take the following simple mashup... A [Timer] connected to a [Live Image Search] (query: "birds", count: "9") which finally connects to a [PhotoTiles] display block.

How would you go about clearing the [PhotoTiles] block of all its content on the [Timer]'s tick so that the number of items in it never exceeds 9 I've tried manipulating the various result arrays, calling initialize() and such but nothing "good" happens. It seems to me that all the display blocks are missing some "clearItems()" and "removeItem(item)" functions Is it just me who's missing these functions

Kind regards,
Johannes Hansen
frontAvenue A/S




Re: How to use timer to load images into display block after it's content has been cleared?

AndyS


Thanks for the post, unfortunatley your right, most of the display blocks don't have functions to remove items a few of them have a max items setting which will remove old ones when new items are added past the limit.

There might be a way of doing it, which involves a bit more javascript work, will have a look at on Tuesday when we're back in the office Smile.





Re: How to use timer to load images into display block after it's content has been cleared?

Johannes Hansen

Thanks for the reply... Looking forward to see if you find a solution.






Re: How to use timer to load images into display block after it's content has been cleared?

AndyS

Sorry for being slow in getting back to you, I haven't had a chance to look into this yet :-(. Will make sure I get time tomo.




Re: How to use timer to load images into display block after it's content has been cleared?

Johannes Hansen

Don't worry about finding a solution... Its really not that important to me. I just wanted to confirm if it was a general problem or not. And it seems that people are already aware of it so take it easy and forget about the solution for now. Enjoy your weekend! Smile