Thank you Thiago and Richard.


-----Original Message-----
From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] 
Sent: 10 December 2010 11:14
To: Tapestry users
Subject: Re: T5: Progress indicator and AJAX example?

On Fri, 10 Dec 2010 09:04:49 -0200, Newham, Cameron <cameron.new...@bl.uk>  
wrote:

> Hi,

Hi!

> I imagine that if I wanted just a simple field on a page that updated
> with a % then I would have Javascript make an AJAX get and obtain a
> value from the server. However, as I'm a complete newbie to AJAX, an
> example of how to do this would be extremely helpful.

The AJAX part itself is completely Tapestry-unrelated and there are many  
examples in the Internet, maybe even in this mailing list archives. I  
answered something similar yesterday. The AJAX Prototype documentation is  
here: http://api.prototypejs.org/ajax/Ajax/Request/.

> Example silly
> questions: does my field have to be in a Zone?

No, as long as you write your own JavaScript code to do and handle an AJAX  
request and then update the page DOM.

> Also, would the % value updated by my process just be held in a @Persist
> field?

Absolutely no. Just get the % value when handling the request. You don't  
even need a field for that.

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to