Thread: [Xsltforms-support] Delay before firing events?
Brought to you by:
alain-couthures
From: Grégoire C. <gco...@gm...> - 2010-03-10 08:29:51
|
Hi, I noticed the following message on "What's happening?" screen at SF : *Hello, I'm trying an incremental search like the one you show in http://en.wikibooks.org/wiki/XForms/Incremental_Find. When the user write the first char in the xf:input , the event is fired and the request sent and during that time we loose one or more typed chars. Is there any mean to introduce a small delay before sending the request ? Cordialement. Benoit VINCENT.* I have exactly the same issue. Is there a solution? Grégoire |
From: Grégoire C. <gco...@gm...> - 2010-05-12 17:04:28
|
Hi, I'm still working on a XForm with a "autocomplete" field. Is there a way, with XSLTForms, to only submit a form if no "key pressed" event is received during a few milliseconds? I've seen in XForms 1.1 that there's a "dispatch" element with the "delay" attribute, which could be the solution : http://www.w3.org/TR/xforms11/#action-dispatch Has anyone used it? Thanks a lot for your help! Grégoire Le 10 mars 2010 10:29, Grégoire Colbert <gco...@gm...> a écrit : > Hi, > > I noticed the following message on "What's happening?" screen at SF : > > *Hello, I'm trying an incremental search like the one you show in > http://en.wikibooks.org/wiki/XForms/Incremental_Find. When the user write > the first char in the xf:input , the event is fired and the request sent and > during that time we loose one or more typed chars. Is there any mean to > introduce a small delay before sending the request ? Cordialement. Benoit > VINCENT.* > > I have exactly the same issue. Is there a solution? > > Grégoire > > |
From: Klotz, L. <Lei...@xe...> - 2010-05-12 20:19:05
|
XForms doesn't specify what @incremental=true means in detail. Many choose to implement a per-character event, but that's not necessarily what everyone wants. The delay attribute doesn't seem to me to be a good fit for this use, given its definition. How about if Alain or you consider an xsltforms specific attribute for giving finer control over event timing with textarea or input/@incremental=true? <mailto:input/@incremental=true? Experience> Experience with thsi implementation would be good feedback to the Forms WG. Leigyh. ________________________________ From: Grégoire Colbert [mailto:gco...@gm...] Sent: Wednesday, May 12, 2010 9:51 AM To: support xsltforms Subject: Re: [Xsltforms-support] Delay before firing events? Hi, I'm still working on a XForm with a "autocomplete" field. Is there a way, with XSLTForms, to only submit a form if no "key pressed" event is received during a few milliseconds? I've seen in XForms 1.1 that there's a "dispatch" element with the "delay" attribute, which could be the solution : http://www.w3.org/TR/xforms11/#action-dispatch Has anyone used it? Thanks a lot for your help! Grégoire Le 10 mars 2010 10:29, Grégoire Colbert <gco...@gm...> a écrit : Hi, I noticed the following message on "What's happening?" screen at SF : Hello, I'm trying an incremental search like the one you show in http://en.wikibooks.org/wiki/XForms/Incremental_Find. When the user write the first char in the xf:input , the event is fired and the request sent and during that time we loose one or more typed chars. Is there any mean to introduce a small delay before sending the request ? Cordialement. Benoit VINCENT. I have exactly the same issue. Is there a solution? Grégoire |
From: COUTHURES A. <ala...@ag...> - 2010-05-15 14:55:08
|
Grégoire and Leigh, I have just basically implemented the delay feature for the dispatch element so you could use a custom event for that but it wouldn't be that easy with focus management. Adding a delay with @incremental="true" sounds much more simple for developers and I have also implemented this for tests: http://www.agencexml.com/jsoncallback/wikipediasearch.xml It is nicer with this extension! Thanks for your feedbacks! -Alain > XForms doesn't specify what @incremental=true means in detail. Many > choose to implement a per-character event, but that's not necessarily > what everyone wants. > > The delay attribute doesn't seem to me to be a good fit for this use, > given its definition. > > How about if Alain or you consider an xsltforms specific attribute for > giving finer control over event timing with textarea or > input/@incremental=true? > <mailto:input/@incremental=true?%20Experience>Experience > <mailto:input/@incremental=true?%20Experience> with thsi > implementation would be good feedback to the Forms WG. > > Leigyh. > > ------------------------------------------------------------------------ > *From:* Grégoire Colbert [mailto:gco...@gm...] > *Sent:* Wednesday, May 12, 2010 9:51 AM > *To:* support xsltforms > *Subject:* Re: [Xsltforms-support] Delay before firing events? > > Hi, > > I'm still working on a XForm with a "autocomplete" field. Is there a > way, with XSLTForms, to only submit a form if no "key pressed" event > is received during a few milliseconds? > > I've seen in XForms 1.1 that there's a "dispatch" element with the > "delay" attribute, which could be the solution : > http://www.w3.org/TR/xforms11/#action-dispatch > Has anyone used it? > > Thanks a lot for your help! > > Grégoire > > Le 10 mars 2010 10:29, Grégoire Colbert <gco...@gm... > <mailto:gco...@gm...>> a écrit : > > Hi, > > I noticed the following message on "What's happening?" screen at SF : > > /Hello, I'm trying an incremental search like the one you show in > http://en.wikibooks.org/wiki/XForms/Incremental_Find. When the > user write the first char in the xf:input , the event is fired and > the request sent and during that time we loose one or more typed > chars. Is there any mean to introduce a small delay before sending > the request ? Cordialement. Benoit VINCENT./ > > I have exactly the same issue. Is there a solution? > > Grégoire > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > |