I'm looking for a way to disable the focus events for a repeat
section. In a grid/table with potentially many items this could save
some bandwidth as the user tabs/clicks through the fields. I
originally found this post
(http://n4.nabble.com/Stopping-Events-for-Repeats-td26526.html#a26526)
which was looking for pretty much the same functionality. Has there
been any changes in the last 4+ years that would expose this type of
functionality within Orbeon? I did try the below code but it did not
succeed in disabling the events.
.. <xforms:repeat..> <xforms:action ev:event="#all" ev:propagate="stop" ev:defaultAction="cancel" /> ... </xforms:repeat> Thanks for the help --
Jeremy Nix Senior Application Developer Cincinnati Children's Hospital Medical Center -- 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 |
Administrator
|
Jeremy,
You can filter the DOMFocusIn and DOMFocusOut events, which can create a lot of unless Ajax traffic and CPU use on the server, especially as users tab through fields or click around without necessarily changing any value. This of course if you know that your form doesn't depend on those events. See: http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-xforms#TOC-Filtering-Events Would this work for you? Alex On Wed, Mar 10, 2010 at 8:13 AM, Jeremy Nix <[hidden email]> wrote: > I'm looking for a way to disable the focus events for a repeat section. In > a grid/table with potentially many items this could save some bandwidth as > the user tabs/clicks through the fields. I originally found this post > (http://n4.nabble.com/Stopping-Events-for-Repeats-td26526.html#a26526) which > was looking for pretty much the same functionality. Has there been any > changes in the last 4+ years that would expose this type of functionality > within Orbeon? I did try the below code but it did not succeed in disabling > the events. > > .. > <xforms:repeat..> > <xforms:action ev:event="#all" ev:propagate="stop" > ev:defaultAction="cancel" /> > ... > </xforms:repeat> > > > Thanks for the help > -- > ________________________________ > Jeremy Nix > Senior Application Developer > Cincinnati Children's Hospital Medical Center > > > -- > 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 |
Alex,
I actually found that article a few hours after the post. The change has succeeded in significantly cutting down the ajax requests. The only minor annoyance now is that when I add elements in the repeat, the setindex gets called (i'm assuming) and the new element(s) get highlighted. Similarly, when I remove an element in the repeat, the previous element gets highlighted. I think if I could disable the highlighting feature, then all my problems are solved. Is there a way of doing this? Thanks for your help, Jeremy Nix Senior Application Developer Cincinnati Children's Hospital Medical Center On 03/11/2010 10:51 PM, Alessandro Vernet wrote: Jeremy, You can filter the DOMFocusIn and DOMFocusOut events, which can create a lot of unless Ajax traffic and CPU use on the server, especially as users tab through fields or click around without necessarily changing any value. This of course if you know that your form doesn't depend on those events. See: http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-xforms#TOC-Filtering-Events Would this work for you? Alex On Wed, Mar 10, 2010 at 8:13 AM, Jeremy Nix [hidden email] wrote:I'm looking for a way to disable the focus events for a repeat section. In a grid/table with potentially many items this could save some bandwidth as the user tabs/clicks through the fields. I originally found this post (http://n4.nabble.com/Stopping-Events-for-Repeats-td26526.html#a26526) which was looking for pretty much the same functionality. Has there been any changes in the last 4+ years that would expose this type of functionality within Orbeon? I did try the below code but it did not succeed in disabling the events. . <xforms:repeat..> <xforms:action ev:event="#all" ev:propagate="stop" ev:defaultAction="cancel" /> ... </xforms:repeat> Thanks for the help -- ________________________________ Jeremy Nix Senior Application Developer Cincinnati Children's Hospital Medical Center -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] OW2 mailing lists service home page: http://www.ow2.org/wws -- 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 |
Administrator
|
Jeremy,
Yes, you can do this with CSS: .xforms-repeat-selected-item-1 { background-color: transparent } Alex On Fri, Mar 12, 2010 at 4:54 AM, Jeremy Nix <[hidden email]> wrote: > Alex, > > I actually found that article a few hours after the post. The change has > succeeded in significantly cutting down the ajax requests. The only minor > annoyance now is that when I add elements in the repeat, the setindex gets > called (i'm assuming) and the new element(s) get highlighted. Similarly, > when I remove an element in the repeat, the previous element gets > highlighted. I think if I could disable the highlighting feature, then all > my problems are solved. Is there a way of doing this? > > Thanks for your help, > > ________________________________ > Jeremy Nix > Senior Application Developer > Cincinnati Children's Hospital Medical Center > > On 03/11/2010 10:51 PM, Alessandro Vernet wrote: > > Jeremy, > > You can filter the DOMFocusIn and DOMFocusOut events, which can create > a lot of unless Ajax traffic and CPU use on the server, especially as > users tab through fields or click around without necessarily changing > any value. This of course if you know that your form doesn't depend on > those events. See: > > http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-xforms#TOC-Filtering-Events > > Would this work for you? > > Alex > > On Wed, Mar 10, 2010 at 8:13 AM, Jeremy Nix <[hidden email]> wrote: > > > I'm looking for a way to disable the focus events for a repeat section. In > a grid/table with potentially many items this could save some bandwidth as > the user tabs/clicks through the fields. I originally found this post > (http://n4.nabble.com/Stopping-Events-for-Repeats-td26526.html#a26526) which > was looking for pretty much the same functionality. Has there been any > changes in the last 4+ years that would expose this type of functionality > within Orbeon? I did try the below code but it did not succeed in disabling > the events. > > . > <xforms:repeat..> > <xforms:action ev:event="#all" ev:propagate="stop" > ev:defaultAction="cancel" /> > ... > </xforms:repeat> > > > Thanks for the help > -- > ________________________________ > Jeremy Nix > Senior Application Developer > Cincinnati Children's Hospital Medical Center > > > -- > 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 > > > > > > > -- > 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 |
Free forum by Nabble | Edit this page |