Hello there. I have a question - is it possible to autorefresh content of specified element (such as div) in given time interval (for example: 10 seconds)? I need AJAX to do this, because refreshing should result in fetching the data from database.
I have an CakePHP app, let's call it online store with loyalty program. If user buys products, he/she receives so called bonus points which he/she can later spend on next shopping. These bonus points are temporary and they expire after one month. The point I need this auto-refresh option is to prevent this kind of situation: - user gathered X points which are about to expire soon - user places an order in which he/she exploits gathered points - on the order details page there is a form which directs to outside payment system - automatic function checks if there are any expired points in system and remove them - function updates the orders at the same time (if user used X points on his order and they expire - number of used points in specified order is turned to NULL and the value of order is properly increased - if the user does stays at the order details page and does not refresh it (after the automatic function updates value of order and deletes used point) - he/she can proceed to payment system with the "old" value of order (not updated). So, I want to place script on a order details page which will autoupdate the div with form to payment system and value of order which should be settled. Is it possible? Is it the right solution for that kind of matter? I would be really appriciate for any help. Thanks in advance! -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
