You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One would setup a timeout and process much the same way as a form submit or link click even sending the same events upon completion of the ajax request so all the same handler attributes would apply. The other would be the same but allow you to set an interval that repeats.
This would enable you to combine different handles to do things like prepend to a list every 30 seconds, auto-refresh myself every 3 seconds, populate myself on load, etc.
I am pretty sure this covers just about every use case I can imagine.
I haven't decided yet if i'll add a new event in addition to eldarion-ajax:success, in place of it, or pass an extra parameter to the success event so that the handler can know if it's the result of a interval or not. I am inclined to not so as to avoid the coupling.
In many websites there are always some html blocks that load in ajax way to increase site load speed.
And some html blocks need refreshing periodically.
So auto-refresh support may help a lot.
The text was updated successfully, but these errors were encountered: