Basically the page I have renders a filesystem tree, which the user can
browse and select nodes in. It's built completely dynamically in
javascript, within a Tap zone.

When a user has finished browsing and clicks "Save" I need to a) fire
back any selected nodes and b) update the zone. 

What I send back is just a JSON. So I need a way of submitting my own
JSON and updating a zone simultaneously.






On Wed, 2011-02-23 at 05:31 -0800, LLTYK wrote:
> The wiki examples aren't terribly different, just change RenderSupport to
> JavaScriptSupport. And the addScript method may have changed slightly as
> well.
> 
> var SomeMixin = Class.create();
> SomeMixin.prototype = {
>       initialize : function(element,zone) {
>                       Event.observe($(element), 'click',
> this.onclick.bindAsEventListener(this));
>                       this.zone =$(zone);
>       },
>       onclick : function(e) {
>               //etc
>       }
> };
> 
> 
> As for how to POST the depends on what you're trying to do. Where's this
> data you want to send coming from? Is it an entire form, or a field, or
> what? Is this zone loading form elements?



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

Reply via email to