• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[SOLVED] Re: Ajax UpdateContainer stop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SOLVED] Re: Ajax UpdateContainer stop


  • Subject: [SOLVED] Re: Ajax UpdateContainer stop
  • From: Altera WO Team <email@hidden>
  • Date: Fri, 04 Apr 2014 10:14:49 +0200

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@hidden> 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@hidden> 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@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: Request failed on ERXRouteController
  • Next by Date: MySQL connection problem
  • Previous by thread: Re: Development on Linux
  • Next by thread: MySQL connection problem
  • Index(es):
    • Date
    • Thread