Re: T4: Async submit client side listeners

2008-06-04 Thread Paul Stanton

Thanks, event.connect should work.

Andreas Andreou wrote:

I think tapestry.form.submit(formId, submitName, parms)
is called for async submit

you can dojo.event.connect on it and do stuff when it finishes

On Tue, Jun 3, 2008 at 7:19 AM, Paul Stanton
[EMAIL PROTECTED] wrote:
  

Hi all,

I've got a form which is submitted asynchronously as follows:

form jwcid=[EMAIL PROTECTED] listener=listener:process async=true
  input jwcid=[EMAIL PROTECTED] selected=ognl:selected tag=tag
value=go/
/form

I can add javascript handling before the form is submitted by adding an
onclick handler to the submit button, but is there a way to call javascript
after the form is submitted - ie directly after async request has been made?

Thanks, Paul.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T4: Async submit client side listeners

2008-06-03 Thread Kalle Korhonen
cycle.getResponseBuilder().addInitializationScript(this,
myJavascriptFunction(););

Kalle


On Mon, Jun 2, 2008 at 9:19 PM, Paul Stanton [EMAIL PROTECTED]
wrote:

 Hi all,

 I've got a form which is submitted asynchronously as follows:

 form jwcid=[EMAIL PROTECTED] listener=listener:process async=true
   input jwcid=[EMAIL PROTECTED] selected=ognl:selected tag=tag
 value=go/
 /form

 I can add javascript handling before the form is submitted by adding an
 onclick handler to the submit button, but is there a way to call javascript
 after the form is submitted - ie directly after async request has been made?

 Thanks, Paul.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: T4: Async submit client side listeners

2008-06-03 Thread Andreas Andreou
I think tapestry.form.submit(formId, submitName, parms)
is called for async submit

you can dojo.event.connect on it and do stuff when it finishes

On Tue, Jun 3, 2008 at 7:19 AM, Paul Stanton
[EMAIL PROTECTED] wrote:
 Hi all,

 I've got a form which is submitted asynchronously as follows:

 form jwcid=[EMAIL PROTECTED] listener=listener:process async=true
   input jwcid=[EMAIL PROTECTED] selected=ognl:selected tag=tag
 value=go/
 /form

 I can add javascript handling before the form is submitted by adding an
 onclick handler to the submit button, but is there a way to call javascript
 after the form is submitted - ie directly after async request has been made?

 Thanks, Paul.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-- 
Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



T4: Async submit client side listeners

2008-06-02 Thread Paul Stanton

Hi all,

I've got a form which is submitted asynchronously as follows:

form jwcid=[EMAIL PROTECTED] listener=listener:process async=true
   input jwcid=[EMAIL PROTECTED] selected=ognl:selected tag=tag 
value=go/

/form

I can add javascript handling before the form is submitted by adding an 
onclick handler to the submit button, but is there a way to call 
javascript after the form is submitted - ie directly after async request 
has been made?


Thanks, Paul.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]