DOMActivate

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

DOMActivate

Ryan Puddephatt
All,
    Am I right in thinking that a DOMActivate event on an input is fired when the enter button is pressed? If not is there an event I could use for this. My use-case is a criteria field in a search page

Thanks

Ryan
--

Ryan Puddephatt
Software Engineer
 
Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: DOMActivate

Marcus-2
Hi Ryan,
ich think you are right with that :-)
Here you find more information on that. Other events you could use are:
 
xforms-value-changed
xforms-select
xforms-deselect Events
 
Hope that will help you!
 
By the way, do you work with the exist-db? I'm urgent searching for an example search page and how i can build xquery statements out of the xforms. Can you help me with that?
I would be pleased,
 
Marcus
 
 
----- Original Message -----
Sent: Sunday, April 08, 2007 2:15 AM
Subject: [ops-users] DOMActivate

All,
    Am I right in thinking that a DOMActivate event on an input is fired when the enter button is pressed? If not is there an event I could use for this. My use-case is a criteria field in a search page

Thanks

Ryan
--

Ryan Puddephatt
Software Engineer
 
Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: DOMActivate

Marcus-2
In reply to this post by Ryan Puddephatt
Hi Ryan,
me again. Another option are the both events:
 
DOMFocusIn Event
DOMFocusOut Event
 
That should work for you, when leaving the crteria field, the event is fired!
Good luck :-)
 
 
----- Original Message -----
Sent: Sunday, April 08, 2007 2:15 AM
Subject: [ops-users] DOMActivate

All,
    Am I right in thinking that a DOMActivate event on an input is fired when the enter button is pressed? If not is there an event I could use for this. My use-case is a criteria field in a search page

Thanks

Ryan
--

Ryan Puddephatt
Software Engineer
 
Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: DOMActivate

Ryan Puddephatt
Marcus,
    The xforms-select and xforms-deselect are only fired on xforms:select/xforms:select1 controls. xforms-value-changed is only fired after the control have lost its focus every time. I only need it fired when the user explicitly presses the enter key. So I'll wait until OF supports this.

On the exist-db issue, I don't use it much, but to create a query I would submit the instance containing the search criteria to an XPL which would create the query in XSLT and use one of the exist processors to get the results. Does this sound like it would work in your case?

Ryan

Ryan Puddephatt
Software Engineer
 
Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com



Marcus wrote:
Hi Ryan,
me again. Another option are the both events:
 
DOMFocusIn Event
DOMFocusOut Event
 
That should work for you, when leaving the crteria field, the event is fired!
Good luck :-)
 
 
----- Original Message -----
Sent: Sunday, April 08, 2007 2:15 AM
Subject: [ops-users] DOMActivate

All,
    Am I right in thinking that a DOMActivate event on an input is fired when the enter button is pressed? If not is there an event I could use for this. My use-case is a criteria field in a search page

Thanks

Ryan
--

Ryan Puddephatt
Software Engineer
 
Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: DOMActivate

Marcus-2
Hi Ryan,
 
With the first Events you are right, i read the W3C myself ones more, after i send you the first Mail and mantioned that. Because of that i snet you another mail with: DOMFocusIn and DOMFocusOut. That could help, but when explicit press the "Enter-Key", you may have to use DOMActivate. But I'am interested in the official answer from OF too.
 
And for my case, XPL and XSLT may work, but at the moment i'm not so experienced with them. That is exactly the reason why i'm searching for some examples doing such things! May you send me a working code example from yours that does that?
 
@ALL: Or does anyone else, reading this my help me with that problem and has a waorking example, creating xquery out of some xform? I would be thankful for every help!!!
 
Thanxs,
Marcus
 
 
----- Original Message -----
Sent: Sunday, April 08, 2007 2:40 PM
Subject: Re: [ops-users] DOMActivate

Marcus,
    The xforms-select and xforms-deselect are only fired on xforms:select/xforms:select1 controls. xforms-value-changed is only fired after the control have lost its focus every time. I only need it fired when the user explicitly presses the enter key. So I'll wait until OF supports this.

On the exist-db issue, I don't use it much, but to create a query I would submit the instance containing the search criteria to an XPL which would create the query in XSLT and use one of the exist processors to get the results. Does this sound like it would work in your case?

Ryan

Ryan Puddephatt
Software Engineer
 
Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com



Marcus wrote:
Hi Ryan,
me again. Another option are the both events:
 
DOMFocusIn Event
DOMFocusOut Event
 
That should work for you, when leaving the crteria field, the event is fired!
Good luck :-)
 
 
----- Original Message -----
Sent: Sunday, April 08, 2007 2:15 AM
Subject: [ops-users] DOMActivate

All,
    Am I right in thinking that a DOMActivate event on an input is fired when the enter button is pressed? If not is there an event I could use for this. My use-case is a criteria field in a search page

Thanks

Ryan
--

Ryan Puddephatt
Software Engineer
 
Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.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
ObjectWeb mailing lists service home page: http://www.objectweb.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: DOMActivate

Ryan Puddephatt
Marcus,
    Thanks for your help. I've sent you a piece of code, privately that should provide a good basis for example

Ryan

Ryan Puddephatt
Software Engineer
 
Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com



Marcus wrote:
Hi Ryan,
 
With the first Events you are right, i read the W3C myself ones more, after i send you the first Mail and mantioned that. Because of that i snet you another mail with: DOMFocusIn and DOMFocusOut. That could help, but when explicit press the "Enter-Key", you may have to use DOMActivate. But I'am interested in the official answer from OF too.
 
And for my case, XPL and XSLT may work, but at the moment i'm not so experienced with them. That is exactly the reason why i'm searching for some examples doing such things! May you send me a working code example from yours that does that?
 
@ALL: Or does anyone else, reading this my help me with that problem and has a waorking example, creating xquery out of some xform? I would be thankful for every help!!!
 
Thanxs,
Marcus
 
 
----- Original Message -----
Sent: Sunday, April 08, 2007 2:40 PM
Subject: Re: [ops-users] DOMActivate

Marcus,
    The xforms-select and xforms-deselect are only fired on xforms:select/xforms:select1 controls. xforms-value-changed is only fired after the control have lost its focus every time. I only need it fired when the user explicitly presses the enter key. So I'll wait until OF supports this.

On the exist-db issue, I don't use it much, but to create a query I would submit the instance containing the search criteria to an XPL which would create the query in XSLT and use one of the exist processors to get the results. Does this sound like it would work in your case?

Ryan

Ryan Puddephatt
Software Engineer
 
Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com



Marcus wrote:
Hi Ryan,
me again. Another option are the both events:
 
DOMFocusIn Event
DOMFocusOut Event
 
That should work for you, when leaving the crteria field, the event is fired!
Good luck :-)
 
 
----- Original Message -----
Sent: Sunday, April 08, 2007 2:15 AM
Subject: [ops-users] DOMActivate

All,
    Am I right in thinking that a DOMActivate event on an input is fired when the enter button is pressed? If not is there an event I could use for this. My use-case is a criteria field in a search page

Thanks

Ryan
--

Ryan Puddephatt
Software Engineer
 
Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: DOMActivate

Erik Bruchez
Administrator
In reply to this post by Ryan Puddephatt
Ryan,

The spec doesn't mandate this explicitly, this firing DOMActivate on
input fields when you press enter is arguably compatible with the
semantics of DOMActivate so we do fire it.

-Erik

Ryan Puddephatt wrote:

> All,
>     Am I right in thinking that a DOMActivate event on an input is fired
> when the enter button is pressed? If not is there an event I could use
> for this. My use-case is a criteria field in a search page
>
> Thanks
>
> Ryan
> --
>
> Ryan Puddephatt
> Software Engineer
>  
> Teleflex Group - IT UK
> 1 Michaelson Square
> Livingston
> West Lothian
> Scotland
> EH54 7DP
>  
> e> [hidden email] <mailto:[hidden email]>
> t> +44(0)1506 407 110
> f> +44(0)1506 407 108
> w> www.teleflex.com <http://www.teleflex.com>
>

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: DOMActivate

Ryan Puddephatt
Erik,
    I tried a different way and it worked, probably just a syntax error on my part.

Thanks

Ryan

Ryan Puddephatt
Software Engineer
 
Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com



Erik Bruchez wrote:
Ryan,

The spec doesn't mandate this explicitly, this firing DOMActivate on input fields when you press enter is arguably compatible with the semantics of DOMActivate so we do fire it.

-Erik

Ryan Puddephatt wrote:
All,
    Am I right in thinking that a DOMActivate event on an input is fired when the enter button is pressed? If not is there an event I could use for this. My use-case is a criteria field in a search page

Thanks

Ryan
-- 

Ryan Puddephatt
Software Engineer
 
Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email] [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com <http://www.teleflex.com>




-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws