Adding JavaScript to a xforms-submit event

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

Adding JavaScript to a xforms-submit event

Ryan Puddephatt

Hi all,

            I am trying to add JavaScript to a Xforms Submit Event, but I don’t really know where to start! I thought it is probably best to add it to a submission/action elements, but I don’t know what element to attach it to. Any ideas?

 

Ryan Puddephatt

Web Developer

TFX Group

1 Michaelson Square

Livingston

West Lothian

Scotand

EH54 7DP

 

* [hidden email]

( 01506 407 110

7  01506 407 108

 

 



--
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: Adding JavaScript to a xforms-submit event

Erik Bruchez
Administrator
Currently there is no such thing in OPS as an XForms event handler
implemented in Javascript, if that's what you are asking for. Could you
detail what you are trying to achieve?

-Erik

Ryan Puddephatt wrote:

> Hi all,
>
>             I am trying to add JavaScript to a Xforms Submit Event, but
> I don?t really know where to start! I thought it is probably best to add
> it to a submission/action elements, but I don?t know what element to
> attach it to. Any ideas?
>
>  
>
> *Ryan Puddephatt*
>
> Web Developer
>
> TFX Group
>
> 1 Michaelson Square
>
> Livingston
>
> West Lothian
>
> Scotand
>
> EH54 7DP
>
>  
>
> * [hidden email]
>
> ( 01506 407 110
>
> 7  01506 407 108


--
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: Adding JavaScript to a xforms-submit event

Ryan Puddephatt
Hi Erik,
        Thanks for the quick response, I am trying to change the mouse
cursor whilst the page is loading, I was going to use JavaScript to change
the cursor to an egg time at the xforms-submit event and then change it back
at the xforms-submit-done event. Is there a better way to achieve this?

Thanks

Ryan Puddephatt
Web Developer
TFX Group
1 Michaelson Square
Livingston
West Lothian
Scotand
EH54 7DP
 
* [hidden email]
( 01506 407 110
7  01506 407 108
 

-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: 22 November 2005 19:47
To: [hidden email]
Subject: Re: [ops-users] Adding JavaScript to a xforms-submit event

Currently there is no such thing in OPS as an XForms event handler
implemented in Javascript, if that's what you are asking for. Could you
detail what you are trying to achieve?

-Erik

Ryan Puddephatt wrote:

> Hi all,
>
>             I am trying to add JavaScript to a Xforms Submit Event, but
> I don't really know where to start! I thought it is probably best to add
> it to a submission/action elements, but I don't know what element to
> attach it to. Any ideas?
>
>  
>
> *Ryan Puddephatt*
>
> Web Developer
>
> TFX Group
>
> 1 Michaelson Square
>
> Livingston
>
> West Lothian
>
> Scotand
>
> EH54 7DP
>
>  
>
> * [hidden email]
>
> ( 01506 407 110
>
> 7  01506 407 108




--
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: Adding JavaScript to a xforms-submit event

Erik Bruchez
Administrator
Ryan,

Do you mean while a new HTML page is loading? I don't think this is
possible at all with a web browser.

If you are talking about Ajax requests that result in updates to the
current page (i.e. while you see the "loading" icon turning), there may
be a possibility, I don't know.

-Erik

Ryan Puddephatt wrote:

> Hi Erik,
> Thanks for the quick response, I am trying to change the mouse
> cursor whilst the page is loading, I was going to use JavaScript to change
> the cursor to an egg time at the xforms-submit event and then change it back
> at the xforms-submit-done event. Is there a better way to achieve this?
>
> Thanks
>
> Ryan Puddephatt
> Web Developer
> TFX Group
> 1 Michaelson Square
> Livingston
> West Lothian
> Scotand
> EH54 7DP
>  
> * [hidden email]
> ( 01506 407 110
> 7  01506 407 108
>  
>
> -----Original Message-----
> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
> Sent: 22 November 2005 19:47
> To: [hidden email]
> Subject: Re: [ops-users] Adding JavaScript to a xforms-submit event
>
> Currently there is no such thing in OPS as an XForms event handler
> implemented in Javascript, if that's what you are asking for. Could you
> detail what you are trying to achieve?
>
> -Erik
>
> Ryan Puddephatt wrote:
>
>>Hi all,
>>
>>            I am trying to add JavaScript to a Xforms Submit Event, but
>>I don't really know where to start! I thought it is probably best to add
>>it to a submission/action elements, but I don't know what element to
>>attach it to. Any ideas?
>>
>>
>>
>>*Ryan Puddephatt*
>>
>>Web Developer
>>
>>TFX Group
>>
>>1 Michaelson Square
>>
>>Livingston
>>
>>West Lothian
>>
>>Scotand
>>
>>EH54 7DP
>>
>>
>>
>>* [hidden email]
>>
>>( 01506 407 110
>>
>>7  01506 407 108
>
>
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> 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: Adding JavaScript to a xforms-submit event

Ryan Puddephatt
Erik,
        I do mean the AJAX events, I tried using <xforms:action>, but didn't
really know where to put the JavaScript, would it be possible to amend the
loading part of the theme.xsl to do it?

Thanks

Ryan Puddephatt
Web Developer
TFX Group
1 Michaelson Square
Livingston
West Lothian
Scotand
EH54 7DP
 
* [hidden email]
( 01506 407 110
7  01506 407 108
 
-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: 23 November 2005 13:40
To: [hidden email]
Subject: Re: [ops-users] Adding JavaScript to a xforms-submit event

Ryan,

Do you mean while a new HTML page is loading? I don't think this is
possible at all with a web browser.

If you are talking about Ajax requests that result in updates to the
current page (i.e. while you see the "loading" icon turning), there may
be a possibility, I don't know.

-Erik

Ryan Puddephatt wrote:
> Hi Erik,
> Thanks for the quick response, I am trying to change the mouse
> cursor whilst the page is loading, I was going to use JavaScript to change
> the cursor to an egg time at the xforms-submit event and then change it
back

> at the xforms-submit-done event. Is there a better way to achieve this?
>
> Thanks
>
> Ryan Puddephatt
> Web Developer
> TFX Group
> 1 Michaelson Square
> Livingston
> West Lothian
> Scotand
> EH54 7DP
>  
> * [hidden email]
> ( 01506 407 110
> 7  01506 407 108
>  
>
> -----Original Message-----
> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
> Sent: 22 November 2005 19:47
> To: [hidden email]
> Subject: Re: [ops-users] Adding JavaScript to a xforms-submit event
>
> Currently there is no such thing in OPS as an XForms event handler
> implemented in Javascript, if that's what you are asking for. Could you
> detail what you are trying to achieve?
>
> -Erik
>
> Ryan Puddephatt wrote:
>
>>Hi all,
>>
>>            I am trying to add JavaScript to a Xforms Submit Event, but
>>I don't really know where to start! I thought it is probably best to add
>>it to a submission/action elements, but I don't know what element to
>>attach it to. Any ideas?
>>
>>
>>
>>*Ryan Puddephatt*
>>
>>Web Developer
>>
>>TFX Group
>>
>>1 Michaelson Square
>>
>>Livingston
>>
>>West Lothian
>>
>>Scotand
>>
>>EH54 7DP
>>
>>
>>
>>* [hidden email]
>>
>>( 01506 407 110
>>
>>7  01506 407 108
>
>
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> 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: Adding JavaScript to a xforms-submit event

Alessandro  Vernet
Administrator
Hi Ryan,

There are no hooks in the JavaScript code do this at this point. Have
a look at xforms.js and modify it as you see fit. The query is started
in function xformsExecuteNextRequest() and the response from the
server received in function xformsHandleResponse(). Feel free to
change the JavaScript code there to change the appearance of the
cursor. If you want to contribute this code, this might be something
that could be integrated in the standard builds.

Alex

On 11/23/05, Ryan Puddephatt <[hidden email]> wrote:

> Erik,
>         I do mean the AJAX events, I tried using <xforms:action>, but didn't
> really know where to put the JavaScript, would it be possible to amend the
> loading part of the theme.xsl to do it?
>
> Thanks
>
> Ryan Puddephatt
> Web Developer
> TFX Group
> 1 Michaelson Square
> Livingston
> West Lothian
> Scotand
> EH54 7DP
>
> * [hidden email]
> ( 01506 407 110
> 7  01506 407 108
>
> -----Original Message-----
> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
> Sent: 23 November 2005 13:40
> To: [hidden email]
> Subject: Re: [ops-users] Adding JavaScript to a xforms-submit event
>
> Ryan,
>
> Do you mean while a new HTML page is loading? I don't think this is
> possible at all with a web browser.
>
> If you are talking about Ajax requests that result in updates to the
> current page (i.e. while you see the "loading" icon turning), there may
> be a possibility, I don't know.
>
> -Erik
>
> Ryan Puddephatt wrote:
> > Hi Erik,
> >       Thanks for the quick response, I am trying to change the mouse
> > cursor whilst the page is loading, I was going to use JavaScript to change
> > the cursor to an egg time at the xforms-submit event and then change it
> back
> > at the xforms-submit-done event. Is there a better way to achieve this?
> >
> > Thanks
> >
> > Ryan Puddephatt
> > Web Developer
> > TFX Group
> > 1 Michaelson Square
> > Livingston
> > West Lothian
> > Scotand
> > EH54 7DP
> >
> > * [hidden email]
> > ( 01506 407 110
> > 7  01506 407 108
> >
> >
> > -----Original Message-----
> > From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
> > Sent: 22 November 2005 19:47
> > To: [hidden email]
> > Subject: Re: [ops-users] Adding JavaScript to a xforms-submit event
> >
> > Currently there is no such thing in OPS as an XForms event handler
> > implemented in Javascript, if that's what you are asking for. Could you
> > detail what you are trying to achieve?
> >
> > -Erik
> >
> > Ryan Puddephatt wrote:
> >
> >>Hi all,
> >>
> >>            I am trying to add JavaScript to a Xforms Submit Event, but
> >>I don't really know where to start! I thought it is probably best to add
> >>it to a submission/action elements, but I don't know what element to
> >>attach it to. Any ideas?
> >>
> >>
> >>
> >>*Ryan Puddephatt*
> >>
> >>Web Developer
> >>
> >>TFX Group
> >>
> >>1 Michaelson Square
> >>
> >>Livingston
> >>
> >>West Lothian
> >>
> >>Scotand
> >>
> >>EH54 7DP
> >>
> >>
> >>
> >>* [hidden email]
> >>
> >>( 01506 407 110
> >>
> >>7  01506 407 108
> >
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> >
> > --
> > 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
>
>
>

--
Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/



--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet