After a lot of time, and for a totally different issue i managed to find a way to stop an AjaxUpdateContainer. It's more a note to me but it might help somebody out there.
So, for example suppose you have an <wo:AjaxUpdateContainer id="AutoContainer" frequency = "1" stopped = "$containerStopped"> The way to stop it is to insert (maybe inside a WOConditional when a certain condition is reached) <script>AutoContainerStop();</script> Why this works goes completely beyond my understanding of javascript but actually, I'm really terrible in JavaScript. Hope this helps! Matteo On 28 Nov 2011, at 17:12, Matteo Centro <[email protected]> wrote: > Unfortunately no, I'm stuck with this layout... > The problem is that I'm editing a bunch of records, and the records could be > edited by another app which communicates via Direct Actions, so I need to > continue refreshing a big part of the page to see if the other app changes > something in my records. For example if the app changes a particular state of > the record I have to disable the TextField, that's why it must be inside. > > Matteo > On Fri, Nov 25, 2011 at 1:50 AM, Paul Hoadley <[email protected]> wrote: > Hi Matteo, > > On 24/11/2011, at 10:11 PM, Matteo Centro wrote: > > > Looking in the Prototype documentation i saw that there are > > Ajax.PeriodicalUpdater#stop and Ajax.PeriodicalUpdater#start > > The idea was calling stop in the onFocus of the textfield and start on the > > onBlur but I don't know how to call those methods, I'm really terrible in > > JavaScript. > > That might work, but first: can you just take the textfields out of the > AjaxUpdateContainer? > > > -- > Paul. > > http://logicsquad.net/ > > > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/mcentro%40altera.it > > This email sent to [email protected]
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
