So this could update a different view? Here's a simple example, lets say you have two tables: Fruits Fruitproperties.
In the view for Fruits I show the color of the fruit, which comes from fruitproperties. In fruitproperties I show all the properties. First index view on the page is like this: ============================= Fruit View Fruit Color (From properties) Banana yellow Orange green =========================== Fruit Properties Color Size yellow medium green small ============================ So the way I have it, you can click Fruit name (in the fruit view) or color (in the properties view) and it replaces the current view with the form to edit that item. So if you go to the Fruitproperties section and click green and change that to orange and fix the other properties, it'll display correctly in the fruitproperties view but the fruit view really needs to get refreshed. So what I need is some sort of way to trigger an event that'll trigger a redisplay of the Fruit display. On May 14, 11:13 am, Misplacedme <[email protected]> wrote: > I don't do a lot of ajax, so this may be an over-simplified method of > updating the view. > > setTimeout ( expression, timeout ); > > Add that to the end of the ajax function that updates the views. > Timeout is the amount of time it waits in MS before it runs > expression. > Set expression to the ajax function, and it will update and loop from > then on. > > On May 14, 12:50 pm, Nancy <[email protected]> wrote: > > > This isn't necessarily a Cake question but maybe someone here can give > > me an idea of how to solve this. > > > I have a display with a lot of individual index views being generated > > by ajax. Each of these indexes has a ajax links to forms (related to > > that table) that'll update the DB and then show an updated index. > > However, the issue is that the other index views being displayed are > > going to be out-of-date with respect to the changed view. Is it > > possible to trigger updates of those views somehow? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
