Alternative to DOMFocusIn event on a select1 control

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Alternative to DOMFocusIn event on a select1 control

ilango_g
Hi
I am using an DOMFocusIn event on a select1 control as follows:
<xforms:action ev:event="DOMFocusIn" if="not(instance('Response')/item)">
                                        <xforms:message level="modeless">
                                        No xforms:itemset data currently exists, will attempt to load from file
                                        </xforms:message> 
                                        <xforms:send submission="sub-get-data" />



The problem with this is that everytime I mouse over this control, I suspect there are many submissions taking place to the server. I would like to avoid this.

Is there any other event I can use (other than a trigger), on the select1.

thanks
I
Reply | Threaded
Open this post in threaded view
|

Re: Alternative to DOMFocusIn event on a select1 control

Alessandro Vernet
Administrator
On Mon, Jul 21, 2008 at 1:29 PM, ilango_g <[hidden email]> wrote:

> I am using an DOMFocusIn event on a select1 control as follows:
> <xforms:action ev:event="DOMFocusIn" if="not(instance('Response')/item)">
>                                        <xforms:message level="modeless">
>                                        No xforms:itemset data currently exists, will attempt to load from file
>                                        </xforms:message>
>                                        <xforms:send submission="sub-get-data" />
>
>
>
> The problem with this is that everytime I mouse over this control, I suspect
> there are many submissions taking place to the server. I would like to avoid
> this.
Just moving the mouse over a control shouldn't cause a DOMFocusIn
event. You would really need to click on the control for that event to
be fired. If you use Firefox and have Firebug installed, you can
easily see what is going on between the client and the server by
opening the Firebug console.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
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
Reply | Threaded
Open this post in threaded view
|

Re: Alternative to DOMFocusIn event on a select1 control

ilango_g
I would like to do a dynamic XQuery REST submission to the Restful Server that I have been using. This is what I would like to:

pass an xquery within the action
attribute of the xforms:submission, which is:
http://localhost:9001/resfulserver/lists/?_query=for $x in...".

The URL   http://localhost:9001/resfulserver/lists returns XML, but I would like to dynamically append an XQuery to it that will retrieve a subset of this XML.

I cannot use doc('XML') because I am not storing any XML.

Any suggestions are appreciated.


 
Alessandro Vernet wrote
On Mon, Jul 21, 2008 at 1:29 PM, ilango_g <ilangocal@yahoo.com> wrote:
> I am using an DOMFocusIn event on a select1 control as follows:
> <xforms:action ev:event="DOMFocusIn" if="not(instance('Response')/item)">
>                                        <xforms:message level="modeless">
>                                        No xforms:itemset data currently exists, will attempt to load from file
>                                        </xforms:message>
>                                        <xforms:send submission="sub-get-data" />
>
>
>
> The problem with this is that everytime I mouse over this control, I suspect
> there are many submissions taking place to the server. I would like to avoid
> this.

Just moving the mouse over a control shouldn't cause a DOMFocusIn
event. You would really need to click on the control for that event to
be fired. If you use Firefox and have Firebug installed, you can
easily see what is going on between the client and the server by
opening the Firebug console.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet


--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws


-----
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/