Alternative to DOMFocusIn event on a select1 control

View: New views
3 Messages — Rating Filter:   Alert me  

Alternative to DOMFocusIn event on a select1 control

by ilango_g :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Re: Alternative to DOMFocusIn event on a select1 control

by Alessandro Vernet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Jul 21, 2008 at 1:29 PM, ilango_g <ilangocal@...> 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@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
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

Re: Alternative to DOMFocusIn event on a select1 control

by ilango_g :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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/
LightInTheBox - Buy quality products at wholesale price