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?
-- 
View this message in context: 
http://tapestry-users.832.n2.nabble.com/T5-2-mixin-example-tp6056074p6056309.html
Sent from the Tapestry Users mailing list archive at Nabble.com.

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

Reply via email to