I've built an application that displays various data inside a repeater.
The repeater's data comes from a xml generated by a php script that connects to a mysql database.
My problem is that I would like to be able to refresh this data without having to click a button "refresh" that will send the HTTPservice.
In my dreams, I'd like to display the data in near real time (every 3 or 5 seconds would be fine...).
question 1: Is there a way to do this with a kind of timer?
question 2: What's the best way to display mysql data in real time (inside a repeater)?
Thank you for your help!
Anytime you update a repeater's dataProvider collection object the repeater should refresh.
So call the HTTPService (or equivalent) send() using a Timer, and update the repeater dataProvider in the result handler.
This ChikaraDev sample program and links should answer your question:
If this post answers your question or helps, please mark it as such.
Flex Development and Support Services
Thanks a lot Greg, the timer is working well...
Now, I have a "display" problem as my data that is displayed within panels and button bars refreshes the entire panels and content.
Is it possible to refresh only values within the repeater instead of the entire repeater?
For example, my repeater contains a panel with a title and a slider within the panel.
The panel's title and the slider's value should be updated but the quantity of panels and sliders will remain the same... so I should not refresh it.
I hope this is clear enough to get some help...