Re: Re: Re: Re: Re: Incremental request delay

Posted by Alessandro Vernet on
URL: https://discuss.orbeon.com/Incremental-request-delay-tp3009080p3017563.html

Hi Ralf,

OK, I get it. I don't think you can implement this behavior of waiting
x ms after the last rather than the first keystroke to send an Ajax
request with your own <xxforms:script>, without resorting to huge
hacks :). The reason we implemented it this way is that if users type
continually, if we wait for x ms after the last keystroke, we might
not sent a request for a long time, which might not give the
impression that the field is "incremental enough". I.e. imagine those
two use cases:

1. Auto-translate content of a text area, or auto-rendering of
Markdown: users will have to stop typing to see the result.
2. Auto-save: here again, data won't be saved until after users stop typing.

This is not to say that there are no use cases for waiting until users
are "done" typing. I think the best way would be to implement this
alternate behavior in xforms.js, an trigger it based on a property.

Alex

On Wed, Oct 27, 2010 at 5:04 AM, Ralf Jung <[hidden email]> wrote:

> Hi,
>
>> I am not sure what the "this" refers to when you say "Is this possible
>> with the built-in settings?", and I don't really see how using
>> <xxforms:script> can be used to work around this.
> "this" = "to update the form not some fixed time span after the first key press,
> but some time span after the last. So, pressing a key every 100ms, 10 times in
> a row, should only result in one update after the last keystroke"
>
> Kind regards,
> Ralf Jung
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet