Hi Cameron, For an example of how to make an ajax call from your own js see the mail I sent yesterday.
Richard. On Fri, 2010-12-10 at 09:14 -0200, Thiago H. de Paula Figueiredo wrote: > 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. > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org